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:
parent
dfed4a90c2
commit
29bca3d957
|
@ -131,7 +131,8 @@ $messages[5] = __('Category not updated.');
|
||||||
|
|
||||||
<div class="wrap nosubsub">
|
<div class="wrap nosubsub">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
|
|
|
@ -86,7 +86,8 @@ $search = attribute_escape( $search_dirty ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
|
if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
|
||||||
|
|
|
@ -61,7 +61,8 @@ $messages[6] = __('Categories deleted.'); ?>
|
||||||
|
|
||||||
<div class="wrap nosubsub">
|
<div class="wrap nosubsub">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
|
|
|
@ -104,7 +104,8 @@ require_once('admin-header.php'); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?>
|
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?>
|
||||||
<div id="message" class="updated fade"><p>
|
<div id="message" class="updated fade"><p>
|
||||||
|
|
|
@ -130,7 +130,8 @@ $messages[6] = __('Tags deleted.'); ?>
|
||||||
|
|
||||||
<div class="wrap nosubsub">
|
<div class="wrap nosubsub">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
|
|
|
@ -96,7 +96,8 @@ else
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
||||||
|
|
|
@ -71,7 +71,8 @@ switch ($order_by) {
|
||||||
|
|
||||||
<div class="wrap nosubsub">
|
<div class="wrap nosubsub">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['deleted']) ) {
|
if ( isset($_GET['deleted']) ) {
|
||||||
|
|
|
@ -164,7 +164,8 @@ if ( isset($_GET['message']) && (int) $_GET['message'] ) {
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($message) ) { ?>
|
if ( isset($message) ) { ?>
|
||||||
|
|
|
@ -239,7 +239,8 @@ if ( ! empty($messages) ) {
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : ''; ?>
|
||||||
|
<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
|
||||||
|
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<form id="list-filter" action="" method="get">
|
<form id="list-filter" action="" method="get">
|
||||||
|
|
Loading…
Reference in New Issue