X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/0459461f9ea42e0b090759ff6fe5f48360bef750..refs/tags/wordpress-4.5:/wp-admin/edit.php?ds=sidebyside
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index 62c70e2b..27d8f689 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -303,8 +303,11 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
echo esc_html( $post_type_object->labels->name );
if ( current_user_can( $post_type_object->cap->create_posts ) )
echo ' ' . esc_html( $post_type_object->labels->add_new ) . '';
-if ( ! empty( $_REQUEST['s'] ) )
- printf( ' ' . __('Search results for “%s”') . '', get_search_query() );
+
+if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
+ /* translators: %s: search keywords */
+ printf( ' ' . __( 'Search results for “%s”' ) . '', get_search_query() );
+}
?>