WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/14/2016 08:05:06 PM (6 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/upload.php

    r34891 r36302  
    221221    <a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php
    222222}
    223 if ( ! empty( $_REQUEST['s'] ) )
    224     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
     223if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
     224    /* translators: %s: search keywords */
     225    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
     226}
     227?>
    225228</h1>
    226229
Note: See TracChangeset for help on using the changeset viewer.