Remove 'Search Results filter from ms themes. fixes #15872
git-svn-id: https://develop.svn.wordpress.org/trunk@17050 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e30b3ef70c
commit
b209dadc63
@ -204,9 +204,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||||||
case 'upgrade':
|
case 'upgrade':
|
||||||
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count );
|
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count );
|
||||||
break;
|
break;
|
||||||
case 'search':
|
|
||||||
$text = _n( 'Search Results <span class="count">(%s)</span>', 'Search Results <span class="count">(%s)</span>', $count );
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $this->is_site_themes )
|
if ( $this->is_site_themes )
|
||||||
@ -214,11 +211,13 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||||||
else
|
else
|
||||||
$url = 'themes.php';
|
$url = 'themes.php';
|
||||||
|
|
||||||
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
if ( 'search' != $type ) {
|
||||||
add_query_arg('theme_status', $type, $url),
|
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
||||||
( $type == $status ) ? ' class="current"' : '',
|
add_query_arg('theme_status', $type, $url),
|
||||||
sprintf( $text, number_format_i18n( $count ) )
|
( $type == $status ) ? ' class="current"' : '',
|
||||||
);
|
sprintf( $text, number_format_i18n( $count ) )
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $status_links;
|
return $status_links;
|
||||||
|
@ -91,7 +91,10 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
|
|||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon('themes'); ?>
|
<?php screen_icon('themes'); ?>
|
||||||
<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2>
|
<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
|
||||||
|
if ( $s )
|
||||||
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<form method="get" action="">
|
<form method="get" action="">
|
||||||
<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
|
<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user