WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/14/2016 08:05:06 PM (5 years ago)
Author:
swissspidy
Message:

Allow searching for 0 throughout the admin.

Fixes #31025.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugins.php

    r35997 r36302  
    482482if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
    483483 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
    484 <?php }
    485 if ( $s )
    486     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
     484<?php
     485}
     486
     487if ( strlen( $s ) ) {
     488    /* translators: %s: search keywords */
     489    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
     490}
     491?>
    487492</h1>
    488493
Note: See TracChangeset for help on using the changeset viewer.