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: http://svn.automattic.com/wordpress/trunk@17311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49887cdd9a
commit
e13ae352eb
|
@ -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