Skip to content

Commit

Permalink
skip save metaboxes on quick edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasashi committed Jun 28, 2023
1 parent c83a736 commit 3c4acda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/lib/class-wordpress-plugin-template-admin-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3c4acda

Please sign in to comment.