: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Render the view navigation items on the ad list.
* @var array $views_new list of views.
* @var bool $show_trash_delete_button if the trash delete button is visible.
<ul class="advanced-ads-ad-list-views">
<?php foreach ( $views_new as $class => $view ) : ?>
<li class="button <?php echo esc_attr( $class ); ?>">
'span' => [ 'class' => [] ],
<?php if ( $show_trash_delete_button ) : ?>
<button type="submit" name="delete_all" id="delete_all" class="button advads-button-primary">
<span class="dashicons dashicons-trash"></span><?php esc_html_e( 'Empty Trash', 'advanced-ads' ); ?>