@@ -473,10 +473,10 @@ public function evaluate() {
473473 };
474474
475475 // Test 1: Try to update a non-whitelisted option (should FAIL with fix).
476- $ original_admin_email = \get_option ( 'admin_email ' );
477- $ _POST ['nonce ' ] = \wp_create_nonce ( 'progress_planner ' );
478- $ _POST ['setting ' ] = 'admin_email ' ; // Not in whitelist.
479- $ _POST ['value ' ] = 'hacker@evil.com ' ;
476+ $ original_admin_email = \get_option ( 'admin_email ' );
477+ $ _POST ['nonce ' ] = \wp_create_nonce ( 'progress_planner ' );
478+ $ _POST ['setting ' ] = 'admin_email ' ; // Not in whitelist.
479+ $ _POST ['value ' ] = 'hacker@evil.com ' ;
480480 $ _POST ['setting_path ' ] = '[] ' ;
481481
482482 \ob_start ();
@@ -690,13 +690,13 @@ public function evaluate() {
690690 };
691691
692692 $ critical_options = [
693- 'admin_email ' => 'admin@example.com ' ,
694- 'siteurl ' => 'https://example.com ' ,
695- 'home ' => 'https://example.com ' ,
696- 'users_can_register ' => '0 ' ,
697- 'active_plugins ' => [],
698- 'default_role ' => 'subscriber ' ,
699- 'wp_user_roles ' => [],
693+ 'admin_email ' => 'admin@example.com ' ,
694+ 'siteurl ' => 'https://example.com ' ,
695+ 'home ' => 'https://example.com ' ,
696+ 'users_can_register ' => '0 ' ,
697+ 'active_plugins ' => [],
698+ 'default_role ' => 'subscriber ' ,
699+ 'wp_user_roles ' => [],
700700 ];
701701
702702 foreach ( $ critical_options as $ option => $ malicious_value ) {
0 commit comments