← All changes
|
modules/api-backups/classes/class-api-backups-handler.php
+3
-0
6.2.2
→
6.3
View file →
| @@ -70,8 +70,11 @@ | ||
| 70 | 70 | * |
| 71 | 71 | * @return void |
| 72 | 72 | */ |
| 73 | 73 | public function ajax_backups_selected_websites() { |
| 74 | + Api_Backups_Helper::authorize_ajax_action( 'execute_backups', 'websiteId' ); | |
| 75 | + // Create workers prefer website_id over the authorized websiteId argument. | |
| 76 | + unset( $_POST['website_id'], $_REQUEST['website_id'] ); | |
| 74 | 77 | Api_Backups_Helper::security_nonce( 'mainwp_api_backups_selected_websites' ); |
| 75 | 78 | static::backups_selected_site( true ); |
| 76 | 79 | wp_die( esc_html__( 'Error: backup', 'mainwp' ) ); |
| 77 | 80 | } |