Changeset 29294
- Timestamp:
- 07/25/2014 12:19:21 AM (10 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
r29206 r29294 344 344 * @since 3.1.0 345 345 * @access protected 346 */ 347 protected function bulk_actions() { 346 * 347 * @param string $which The location of the bulk actions: 'top' or 'bottom'. 348 */ 349 protected function bulk_actions( $which ) { 348 350 if ( is_null( $this->_actions ) ) { 349 351 $no_new_actions = $this->_actions = $this->get_bulk_actions(); … … 370 372 return; 371 373 372 echo "<select name='action$two'>\n"; 374 echo "<label for='bulk-action-selector-" . esc_attr( $which ) . "' class='screen-reader-text'>" . __( 'Select Bulk Action' ) . "</label>"; 375 echo "<select name='action$two' id='bulk-action-selector-" . esc_attr( $which ) . "'>\n"; 373 376 echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n"; 374 377 … … 639 642 $html_current_page = $current; 640 643 } else { 641 $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='paged' value='%s' size='%d' />", 644 $html_current_page_label = "<label for='current-page-selector'>" . __( 'Select Page' ) . "</label>"; 645 $html_current_page = $html_current_page_label . sprintf( "<input class='current-page' id='current-page-selector' title='%s' type='text' name='paged' value='%s' size='%d' />", 642 646 esc_attr__( 'Current page' ), 643 647 $current, … … 899 903 900 904 <div class="alignleft actions bulkactions"> 901 <?php $this->bulk_actions( ); ?>905 <?php $this->bulk_actions( $which ); ?> 902 906 </div> 903 907 <?php -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r29226 r29294 299 299 } 300 300 301 public function bulk_actions( ) {301 public function bulk_actions( $which ) { 302 302 global $status; 303 303 … … 305 305 return; 306 306 307 parent::bulk_actions( );307 parent::bulk_actions( $which ); 308 308 } 309 309
Note: See TracChangeset
for help on using the changeset viewer.