Make WordPress Core


Ignore:
Timestamp:
12/07/2008 05:09:47 AM (16 years ago)
Author:
ryan
Message:

get_search_form() fixes from juergen. fixes #8512

File:
1 edited

Legend:

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

    r9813 r10100  
    109109        return;
    110110
    111     $form = '<form method="get" id="searchform" action="' . get_option('siteurl') . '/" >
     111    $form = '<form method="get" id="searchform" action="' . get_option('home') . '/" >
    112112    <label class="hidden" for="s">' . __('Search for:') . '</label>
    113     <div><input type="text" value="' . the_search_query() . '" name="s" id="s" />
     113    <div><input type="text" value="' . attribute_escape(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" />
    114114    <input type="submit" id="searchsubmit" value="'.attribute_escape(__('Search')).'" />
    115115    </div>
Note: See TracChangeset for help on using the changeset viewer.