Ticket #28555: 28555.diff
File 28555.diff, 1.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-list-table.php
371 371 372 372 echo "</select>\n"; 373 373 374 submit_button( __( 'Apply' ), 'action', false, false, array( 'id' => "doaction$two" ) );374 submit_button( __( 'Apply' ), 'action', 'bulk_action', false, array( 'id' => "doaction$two" ) ); 375 375 echo "\n"; 376 376 } 377 377 … … 384 384 * @return string|bool The action name or False if no action was selected 385 385 */ 386 386 public function current_action() { 387 if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] )388 return $_REQUEST['action'];387 388 if ( ! empty( $_REQUEST['bulk_action'] ) ) { 389 389 390 if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) 391 return $_REQUEST['action2']; 390 // Bulk Actions drop-down above the list table. 391 if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) { 392 return $_REQUEST['action']; 393 } 392 394 395 // Bulk Actions drop-down below the list table. 396 if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) { 397 return $_REQUEST['action2']; 398 } 399 } 400 393 401 return false; 394 402 } 395 403