mirror of https://github.com/vtrois/kratos
fix: debug mode undefined error
parent
f14d7aeafa
commit
b0301b3329
|
@ -423,7 +423,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']), plugin_basename(__FILE__) ))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( !current_user_can( 'edit_posts', $post_id ))
|
if ( !current_user_can( 'edit_posts', $post_id ))
|
||||||
|
|
Loading…
Reference in New Issue