From b4627f141cbc2dcfe3ea7bfc73d705a7bf765e13 Mon Sep 17 00:00:00 2001 From: Faisal Ahammad Date: Thu, 11 Jun 2026 14:16:48 +0600 Subject: [PATCH] [PCP] Phase 2: DeprecatedFunctions.add_option_whitelistFound (line 380) Add phpcs:ignore comment explaining this is the intentional WP 4.9 fallback. add_option_whitelist() is only called when add_allowed_options() doesn't exist. --- classic-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classic-editor.php b/classic-editor.php index 4e78df1..39c2871 100644 --- a/classic-editor.php +++ b/classic-editor.php @@ -377,7 +377,7 @@ public static function register_settings() { if ( function_exists( 'add_allowed_options' ) ) { add_allowed_options( $allowed_options ); } else { - add_option_whitelist( $allowed_options ); + add_option_whitelist( $allowed_options ); // phpcs:ignore WordPress.WP.DeprecatedFunctions -- 4.9 fallback, only called when add_allowed_options() doesn't exist } $heading_1 = __( 'Default editor for all users', 'classic-editor' );