Ticket #19321: 19321.2.patch
File 19321.2.patch, 1.0 KB (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
141 141 * form into the sidebar and also by the search widget in WordPress. 142 142 * 143 143 * There is also an action that is called whenever the function is run called, 144 * ' get_search_form'. This can be useful for outputting JavaScript that the144 * 'pre_get_search_form'. This can be useful for outputting JavaScript that the 145 145 * search relies on or various formatting that applies to the beginning of the 146 146 * search. To give a few examples of what it can be used for. 147 147 * … … 151 151 * @return string|null String when retrieving, null when displaying or if searchform.php exists. 152 152 */ 153 153 function get_search_form( $echo = true, $format = 'xhtml' ) { 154 do_action( ' get_search_form' );154 do_action( 'pre_get_search_form' ); 155 155 156 156 $search_form_template = locate_template( 'searchform.php' ); 157 157 if ( '' != $search_form_template ) {