Changeset 23800 for trunk/wp-includes/general-template.php
- Timestamp:
- 03/26/2013 09:08:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r23798 r23800 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. … … 154 154 */ 155 155 function get_search_form( $echo = true ) { 156 do_action( ' get_search_form' );156 do_action( 'pre_get_search_form' ); 157 157 158 158 $format = apply_filters( 'search_form_format', 'xhtml' ); … … 176 176 } 177 177 178 $result = apply_filters( 'get_search_form', $form ); 179 if ( null === $result ) 180 $result = $form; 181 178 182 if ( $echo ) 179 echo apply_filters( 'get_search_form', $form );183 echo $result; 180 184 else 181 return apply_filters( 'get_search_form', $form );185 return $result; 182 186 } 183 187
Note: See TracChangeset
for help on using the changeset viewer.