Make WordPress Core

Changeset 10660


Ignore:
Timestamp:
02/27/2009 05:46:13 PM (14 years ago)
Author:
westi
Message:

Put search string into <title> of search results page. Fixes #9103 props DD32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r10646 r10660  
    386386    $monthnum = get_query_var('monthnum');
    387387    $day = get_query_var('day');
     388    $search = get_query_var('s');
    388389    $title = '';
    389390
     
    456457        $term = $term->name;
    457458        $title = "$tax$t_sep$term";
     459    }
     460   
     461    //If it's a search
     462    if ( is_search() ) {
     463        $title = sprintf(__('Search Results %s %s'), $t_sep, strip_tags($search));
    458464    }
    459465
Note: See TracChangeset for help on using the changeset viewer.