Switch to REQUEST so the search always shows up when no-js not just when you have an old GET request in the url too. Fixes #14927 props ocean90
git-svn-id: https://develop.svn.wordpress.org/trunk@17311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6227ef5aa2
commit
4f1ab301db
@ -163,7 +163,7 @@ require_once('./admin-header.php');
|
|||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php
|
<h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php
|
||||||
if ( isset($_GET['s']) && $_GET['s'] )
|
if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user