Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion classic-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down