Search query string tweaks for net plugins. Props PeteMall. see #15872
git-svn-id: http://svn.automattic.com/wordpress/trunk@17038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5fa861493b
commit
26129ad9a1
|
@ -232,7 +232,7 @@ class WP_List_Table {
|
|||
|
||||
echo "<ul class='subsubsub'>\n";
|
||||
foreach ( $views as $class => $view ) {
|
||||
$views[ $class ] = "\t<li class='$class'>$view";
|
||||
$views[ $class ] = "\t<li class='$class'>$view";
|
||||
}
|
||||
echo implode( " |</li>\n", $views ) . "</li>\n";
|
||||
echo "</ul>";
|
||||
|
|
|
@ -232,16 +232,15 @@ class WP_Plugins_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;
|
||||
}
|
||||
|
||||
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
||||
add_query_arg('plugin_status', $type, 'plugins.php'),
|
||||
( $type == $status ) ? ' class="current"' : '',
|
||||
sprintf( $text, number_format_i18n( $count ) )
|
||||
);
|
||||
if ( 'search' != $type ) {
|
||||
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
||||
add_query_arg('plugin_status', $type, 'plugins.php'),
|
||||
( $type == $status ) ? ' class="current"' : '',
|
||||
sprintf( $text, number_format_i18n( $count ) )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $status_links;
|
||||
|
|
|
@ -384,7 +384,10 @@ if ( !empty($invalid) )
|
|||
<h2><?php echo esc_html( $title );
|
||||
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
|
||||
<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
|
||||
<?php } ?></h2>
|
||||
<?php }
|
||||
if ( $s )
|
||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
||||
</h2>
|
||||
|
||||
<?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue