Make WordPress Core


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

    r35875 r36302  
    312312<div class="wrap nosubsub">
    313313<h1><?php echo esc_html( $title );
    314 if ( !empty($_REQUEST['s']) )
    315     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
     314if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
     315    /* translators: %s: search keywords */
     316    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
     317}
     318?>
    316319</h1>
    317320
Note: See TracChangeset for help on using the changeset viewer.