Allow searching for 0 throughout the admin.

Fixes #31025.
Built from https://develop.svn.wordpress.org/trunk@36302


git-svn-id: http://core.svn.wordpress.org/trunk@36269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler
2016-01-14 20:06:25 +00:00
parent d4b30f47bf
commit aaa11d6207
12 changed files with 53 additions and 27 deletions

View File

@@ -191,7 +191,7 @@ if ( $post_id ) {
_e( 'Comments' );
}
if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) {
if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {
echo '<span class="subtitle">';
/* translators: %s: search keywords */
printf( __( 'Search results for &#8220;%s&#8221;' ),