mirror of https://github.com/vtrois/kratos
fix: undefined array key
parent
a1708f792a
commit
b53d609f8b
|
@ -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 ))
|
||||
|
|
Loading…
Reference in New Issue