Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Quick edit clearing the meta data of registered metaboxes #103

Description

@rafasashi

Since "Quick Edit" triggers the save_post hook the following function might end up clearing the meta data of registered metaboxes that are not included in the Quick Edit form:

$fields = apply_filters( $post_type . '_custom_fields', array(), $post_type );

This issue is referenced here:

https://wordpress.stackexchange.com/questions/4931/quick-edit-update-clears-out-my-custom-meta-values

I suggest replacing

if( !$post_id )

by

if( !$post_id || isset($_POST['_inline_edit']) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions