Changeset 38146
- Timestamp:
- 07/23/2016 10:58:23 AM (8 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r38028 r38146 336 336 337 337 /** 338 * Display the search box.339 * 340 * @since 3.1.0 341 * @access public 342 * 343 * @param string $text The search button text344 * @param string $input_id The search input id338 * Displays the search box. 339 * 340 * @since 3.1.0 341 * @access public 342 * 343 * @param string $text The 'submit' button label. 344 * @param string $input_id ID attribute value for the search input field. 345 345 */ 346 346 public function search_box( $text, $input_id ) { … … 360 360 ?> 361 361 <p class="search-box"> 362 <label class="screen-reader-text" for="<?php echo $input_id?>"><?php echo $text; ?>:</label>363 <input type="search" id="<?php echo $input_id?>" name="s" value="<?php _admin_search_query(); ?>" />364 <?php submit_button( $text, 'button', '', false, array( 'id' => 'search-submit') ); ?>362 <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label> 363 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" name="s" value="<?php _admin_search_query(); ?>" /> 364 <?php submit_button( $text, 'button', '', false, array( 'id' => 'search-submit' ) ); ?> 365 365 </p> 366 366 <?php -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r38141 r38146 343 343 344 344 /** 345 * Display the search box.345 * Displays the search box. 346 346 * 347 347 * @since 4.6.0 348 348 * @access public 349 349 * 350 * @param string $text The search button text351 * @param string $input_id The search input id350 * @param string $text The 'submit' button label. 351 * @param string $input_id ID attribute value for the search input field. 352 352 */ 353 353 public function search_box( $text, $input_id ) { … … 366 366 ?> 367 367 <p class="search-box"> 368 <label class="screen-reader-text" for="<?php echo $input_id?>"><?php echo $text; ?>:</label>369 <input type="search" id="<?php echo $input_id?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/>370 < input type="submit" id="search-submit" class="button hide-if-js" value="<?php echo esc_attr( $text ); ?>">368 <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label> 369 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/> 370 <?php submit_button( $text, 'button hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?> 371 371 </p> 372 372 <?php
Note: See TracChangeset
for help on using the changeset viewer.