WP_Customize_Manager::_filter_revision_post_has_changed PHP Method

_filter_revision_post_has_changed() public method

Note that this will not be called while a changeset post remains in auto-draft status.
Since: 4.7.0
public _filter_revision_post_has_changed ( boolean $post_has_changed, WP_Post $last_revision, WP_Post $post ) : boolean
$post_has_changed boolean Whether the post has changed.
$last_revision WP_Post The last revision post object.
$post WP_Post The post object.
return boolean Whether a revision should be made.
    public function _filter_revision_post_has_changed($post_has_changed, $last_revision, $post)
    {
        unset($last_revision);
        if ('customize_changeset' === $post->post_type) {
            $post_has_changed = $this->store_changeset_revision;
        }
        return $post_has_changed;
    }
WP_Customize_Manager