From 4b4bd9d0b2b7d5765de07e5066a9e6b54a269a47 Mon Sep 17 00:00:00 2001 From: laoyang Date: Mon, 20 Jun 2022 11:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=88=B0php8=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=86=99=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E6=97=B6=E7=9A=84=E8=AD=A6=E5=91=8A=E3=80=82=E8=AF=A6?= =?UTF-8?q?=E6=83=85=EF=BC=9Ahttps://yangyq.net/2022/06/wordpress-warning-?= =?UTF-8?q?metaboxes-nonce.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/theme-article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/theme-article.php b/inc/theme-article.php index 56b0000..c67e7b0 100644 --- a/inc/theme-article.php +++ b/inc/theme-article.php @@ -423,7 +423,7 @@ function post_seo_callback( $post ) { function wpdocs_save_meta_box( $post_id ) { global $new_meta_boxes; - if ( !wp_verify_nonce( $_POST['metaboxes_nonce'], plugin_basename(__FILE__) )) + if ( empty( $_POST['metaboxes_nonce'] )||!wp_verify_nonce( $_POST['metaboxes_nonce'], plugin_basename(__FILE__) )) return; if ( !current_user_can( 'edit_posts', $post_id ))