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/network/themes.php

    r35997 r36302  
    240240<div class="wrap">
    241241<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
    242 if ( $s )
    243     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
     242if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
     243    /* translators: %s: search keywords */
     244    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
     245}
     246?>
    244247</h1>
    245248
Note: See TracChangeset for help on using the changeset viewer.