Skip to content

Commit

Permalink
Bulk action handler: Make sure action2 isn't empty too so that it d…
Browse files Browse the repository at this point in the history
…oesn't throw a notice. Fixes Automattic#20.
  • Loading branch information
Viper007Bond committed Jul 15, 2015
1 parent ba366a0 commit 45a2fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regenerate-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function add_bulk_actions_via_javascript() {
* Handles the submission of the new bulk actions entry and redirects to the admin page with the selected attachment IDs.
*/
public function bulk_action_handler() {
if ( empty( $_REQUEST['action'] ) || ( 'bulk_regenerate_thumbnails' != $_REQUEST['action'] && 'bulk_regenerate_thumbnails' != $_REQUEST['action2'] ) ) {
if ( empty( $_REQUEST['action'] ) || empty( $_REQUEST['action2'] ) || ( 'bulk_regenerate_thumbnails' != $_REQUEST['action'] && 'bulk_regenerate_thumbnails' != $_REQUEST['action2'] ) ) {
return;
}

Expand Down

0 comments on commit 45a2fe9

Please sign in to comment.