From d4b9ce883fa5e999c9d8212236ef86057057f3cd Mon Sep 17 00:00:00 2001 From: Divya Dhiman Date: Mon, 12 Jan 2026 22:19:07 +0530 Subject: [PATCH] Add clarification comment for nonce verification ignore --- classic-editor.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classic-editor.php b/classic-editor.php index 293d362..90a19a8 100644 --- a/classic-editor.php +++ b/classic-editor.php @@ -323,7 +323,11 @@ private static function is_classic( $post_id = 0 ) { } } - if ( isset( $_GET['classic-editor'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended + if ( isset( $_GET['classic-editor'] ) ) { + // The 'classic-editor' GET parameter is used only to determine editor preference. + // No data is stored or modified here, so nonce verification is not required. + // phpcs:ignore WordPress.Security.NonceVerification.Recommended + return true; }