From 3c4acda8a29e718819bb42d6d3a32ef409f01803 Mon Sep 17 00:00:00 2001 From: "Rafasashi\\Raphael" Date: Wed, 28 Jun 2023 19:43:47 +0545 Subject: [PATCH] skip save metaboxes on quick edit --- includes/lib/class-wordpress-plugin-template-admin-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/lib/class-wordpress-plugin-template-admin-api.php b/includes/lib/class-wordpress-plugin-template-admin-api.php index 9dc5c34..77349cc 100644 --- a/includes/lib/class-wordpress-plugin-template-admin-api.php +++ b/includes/lib/class-wordpress-plugin-template-admin-api.php @@ -342,7 +342,7 @@ public function display_meta_box_field( $field = array(), $post = null ) { */ public function save_meta_boxes( $post_id = 0 ) { - if( !$post_id || wp_verify_nonce($_POST['_inline_edit'],'inlineeditnonce') ){ + if( !$post_id || ( isset($_POST['_inline_edit']) && wp_verify_nonce($_POST['_inline_edit'],'inlineeditnonce') ) ){ return; }