Make WordPress Core


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

    r35376 r36302  
    304304if ( current_user_can( $post_type_object->cap->create_posts ) )
    305305    echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    306 if ( ! empty( $_REQUEST['s'] ) )
    307     printf( ' <span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() );
     306
     307if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
     308    /* translators: %s: search keywords */
     309    printf( ' <span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );
     310}
    308311?></h1>
    309312
Note: See TracChangeset for help on using the changeset viewer.