Make WordPress Core

Changeset 10034


Ignore:
Timestamp:
12/04/2008 09:20:52 AM (17 years ago)
Author:
azaozz
Message:

Add search string to H2s, fixes #8373

Location:
trunk/wp-admin
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r9969 r10034  
    132132<div class="wrap nosubsub">
    133133<?php screen_icon(); ?>
    134 <h2><?php echo wp_specialchars( $title ); ?></h2>
     134<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
     135<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    135136
    136137<?php
  • trunk/wp-admin/edit-comments.php

    r9914 r10034  
    8787<div class="wrap">
    8888<?php screen_icon(); ?>
    89 <h2><?php echo wp_specialchars( $title ); ?></h2>
     89<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
     90<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    9091
    9192<?php
  • trunk/wp-admin/edit-link-categories.php

    r10020 r10034  
    6262<div class="wrap nosubsub">
    6363<?php screen_icon(); ?>
    64 <h2><?php echo wp_specialchars( $title ); ?></h2>
     64<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
     65<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    6566
    6667<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
  • trunk/wp-admin/edit-pages.php

    r9999 r10034  
    105105<div class="wrap">
    106106<?php screen_icon(); ?>
    107 <h2><?php echo wp_specialchars( $title ); ?></h2>
     107<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : ''; ?>
     108<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    108109
    109110<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?>
  • trunk/wp-admin/edit-tags.php

    r9969 r10034  
    131131<div class="wrap nosubsub">
    132132<?php screen_icon(); ?>
    133 <h2><?php echo wp_specialchars( $title ); ?></h2>
     133<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
     134<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    134135
    135136<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
  • trunk/wp-admin/edit.php

    r10004 r10034  
    9797<div class="wrap">
    9898<?php screen_icon(); ?>
    99 <h2><?php echo wp_specialchars( $title ); ?></h2>
     99<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : ''; ?>
     100<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    100101
    101102<?php
  • trunk/wp-admin/link-manager.php

    r10012 r10034  
    7272<div class="wrap nosubsub">
    7373<?php screen_icon(); ?>
    74 <h2><?php echo wp_specialchars( $title ); ?></h2>
     74<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( stripslashes($_GET['s']) ) ) : ''; ?>
     75<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    7576
    7677<?php
  • trunk/wp-admin/upload.php

    r9967 r10034  
    165165<div class="wrap">
    166166<?php screen_icon(); ?>
    167 <h2><?php echo wp_specialchars( $title ); ?></h2>
     167<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : ''; ?>
     168<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    168169
    169170<?php
  • trunk/wp-admin/users.php

    r9912 r10034  
    240240<div class="wrap">
    241241<?php screen_icon(); ?>
    242 <h2><?php echo wp_specialchars( $title ); ?></h2>
     242<?php $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : ''; ?>
     243<h2><?php echo wp_specialchars( $title ) . $h2_search; ?></h2>
    243244
    244245<div class="filter">
Note: See TracChangeset for help on using the changeset viewer.