Changeset 30053 for trunk/src/wp-content/themes/twentyfifteen/functions.php
- Timestamp:
- 10/28/2014 06:13:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r30046 r30053 312 312 313 313 /** 314 * Add a `screen-reader-text` class to the search form's submit button 315 * 316 * @since Twenty Fifteen 1.0 317 * 318 * @param string $html Search form HTML 319 * 320 * @return string Modified search form HTML 321 */ 322 function twentyfifteen_search_form_modify( $html ) { 323 return str_replace( 'class="search-submit"', 'class="search-submit screen-reader-text"', $html ); 324 } 325 add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' ); 326 327 /** 314 328 * Implement the Custom Header feature. 315 329 *
Note: See TracChangeset
for help on using the changeset viewer.