WordPress.org

Make WordPress Core

Changeset 17038


Ignore:
Timestamp:
12/17/2010 11:47:40 PM (7 years ago)
Author:
ryan
Message:

Search query string tweaks for net plugins. Props PeteMall. see #15872

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r17006 r17038  
    233233        echo "<ul class='subsubsub'>\n";
    234234        foreach ( $views as $class => $view ) {
    235              $views[ $class ] = "\t<li class='$class'>$view";
     235            $views[ $class ] = "\t<li class='$class'>$view";
    236236        }
    237237        echo implode( " |</li>\n", $views ) . "</li>\n";
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r17033 r17038  
    233233                    $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count );
    234234                    break;
    235                 case 'search':
    236                     $text = _n( 'Search Results <span class="count">(%s)</span>', 'Search Results <span class="count">(%s)</span>', $count );
    237                     break;
    238             }
    239 
    240             $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
    241                 add_query_arg('plugin_status', $type, 'plugins.php'),
    242                 ( $type == $status ) ? ' class="current"' : '',
    243                 sprintf( $text, number_format_i18n( $count ) )
    244             );
     235            }
     236           
     237            if ( 'search' != $type ) {
     238                $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
     239                    add_query_arg('plugin_status', $type, 'plugins.php'),
     240                    ( $type == $status ) ? ' class="current"' : '',
     241                    sprintf( $text, number_format_i18n( $count ) )
     242                    );
     243            }
    245244        }
    246245
  • trunk/wp-admin/plugins.php

    r17036 r17038  
    385385if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
    386386<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
    387 <?php } ?></h2>
     387<?php }
     388if ( $s )
     389    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
     390</h2>
    388391
    389392<?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
Note: See TracChangeset for help on using the changeset viewer.