From b53d609f8b1216898caaee96fafaef1cec186996 Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Wed, 2 Dec 2020 11:29:13 +0800 Subject: [PATCH] fix: undefined array key --- 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 e08c6bb..cc15559 100644 --- a/inc/theme-article.php +++ b/inc/theme-article.php @@ -426,7 +426,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 ( !wp_verify_nonce( isset($_POST['metaboxes_nonce']) ? $_POST['metaboxes_nonce'] : null , plugin_basename(__FILE__) )) return; if ( !current_user_can( 'edit_posts', $post_id ))