fix: debug mode undefined error

pull/287/head
Seaton Jiang 2020-08-09 14:50:10 +08:00
parent f14d7aeafa
commit b0301b3329
No known key found for this signature in database
GPG Key ID: FC3D886E252D902B
1 changed files with 1 additions and 1 deletions

View File

@ -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 ( !wp_verify_nonce( isset($_POST['metaboxes_nonce']), plugin_basename(__FILE__) ))
return;
if ( !current_user_can( 'edit_posts', $post_id ))