Remove 'Search Results filter from ms themes. fixes #15872
git-svn-id: http://svn.automattic.com/wordpress/trunk@17050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e6282fa608
commit
09a2d27d5e
|
@ -204,9 +204,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
case 'upgrade':
|
||||
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count );
|
||||
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 )
|
||||
|
@ -214,12 +211,14 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
|||
else
|
||||
$url = 'themes.php';
|
||||
|
||||
if ( 'search' != $type ) {
|
||||
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
||||
add_query_arg('theme_status', $type, $url),
|
||||
( $type == $status ) ? ' class="current"' : '',
|
||||
sprintf( $text, number_format_i18n( $count ) )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $status_links;
|
||||
}
|
||||
|
|
|
@ -91,7 +91,10 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
|
|||
|
||||
<div class="wrap">
|
||||
<?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="">
|
||||
<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
|
||||
|
|
Loading…
Reference in New Issue