fix: undefined array key

pull/306/head
Seaton Jiang 2020-12-02 11:29:13 +08:00
parent a1708f792a
commit b53d609f8b
No known key found for this signature in database
GPG Key ID: C1086BAE716FF138
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ function post_seo_callback( $post ) {
function wpdocs_save_meta_box( $post_id ) { function wpdocs_save_meta_box( $post_id ) {
global $new_meta_boxes; 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; return;
if ( !current_user_can( 'edit_posts', $post_id )) if ( !current_user_can( 'edit_posts', $post_id ))