Make WordPress Core

Ticket #46872: 46872.2.diff

File 46872.2.diff, 948 bytes (added by garrett-eclipse, 4 years ago)

Updated to avoid breaking installs/activations from the plugin repository.

  • src/wp-admin/includes/class-wp-list-table.php

     
    473473
    474474                echo "</select>\n";
    475475
    476                 submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two" ) );
     476                submit_button( __( 'Apply' ), 'action', "doaction$two", false, array( 'id' => "doaction$two" ) );
    477477                echo "\n";
    478478        }
    479479
     
    489489                        return false;
    490490                }
    491491
     492                if ( isset( $_REQUEST['doaction2'] ) && isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
     493                        return $_REQUEST['action2'];
     494                }
     495
    492496                if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
    493497                        return $_REQUEST['action'];
    494498                }
    495499
    496                 if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
    497                         return $_REQUEST['action2'];
    498                 }
    499 
    500500                return false;
    501501        }
    502502