Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Add comment about why there is no nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-day committed Mar 16, 2023
1 parent f9677eb commit bed77a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wp-modules/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ function disable_autosave() {
* Receive pattern id in the URL and display its content. Useful for pattern previews and thumbnails.
*/
function display_block_pattern_preview() {
// Nonce not required as the user is not taking any action here.
if ( ! isset( $_GET['pm_pattern_preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
return;
}
Expand Down

0 comments on commit bed77a2

Please sign in to comment.