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";
|
echo "<ul class='subsubsub'>\n";
|
||||||
foreach ( $views as $class => $view ) {
|
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 implode( " |</li>\n", $views ) . "</li>\n";
|
||||||
echo "</ul>";
|
echo "</ul>";
|
||||||
|
|
|
@ -232,16 +232,15 @@ class WP_Plugins_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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
if ( 'search' != $type ) {
|
||||||
add_query_arg('plugin_status', $type, 'plugins.php'),
|
$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
|
||||||
( $type == $status ) ? ' class="current"' : '',
|
add_query_arg('plugin_status', $type, 'plugins.php'),
|
||||||
sprintf( $text, number_format_i18n( $count ) )
|
( $type == $status ) ? ' class="current"' : '',
|
||||||
);
|
sprintf( $text, number_format_i18n( $count ) )
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $status_links;
|
return $status_links;
|
||||||
|
|
|
@ -384,7 +384,10 @@ if ( !empty($invalid) )
|
||||||
<h2><?php echo esc_html( $title );
|
<h2><?php echo esc_html( $title );
|
||||||
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
|
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>
|
<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'] ) ?>
|
<?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue