Add search string to H2s, fixes #8373

git-svn-id: https://develop.svn.wordpress.org/trunk@10034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-12-04 09:20:52 +00:00
parent dfed4a90c2
commit 29bca3d957
9 changed files with 18 additions and 9 deletions

View File

@@ -239,7 +239,8 @@ if ( ! empty($messages) ) {
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : ''; ?>
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
<div class="filter">
<form id="list-filter" action="" method="get">