branching example


    public function establish_loaded_changeset() {
        global $pagenow;

        if ( empty( $this->_changeset_uuid ) ) {
            $changeset_uuid = null;

            if ( ! $this->branching() && $this->is_theme_active() ) {
                $unpublished_changeset_posts = $this->get_changeset_posts(
                    array(
                        'post_status'               => array_diff( get_post_stati(), array( 'auto-draft', 'publish', 'trash', 'inherit', 'private' ) ),
                        'exclude_restore_dismissed' => false,
                        'author'                    => 'any',
                        'posts_per_page'            => 1,
                        'order'                     => 'DESC',
                        'orderby'                   => 'date',
                    )
                );
                $unpublished_changeset_post  = array_shift( $unpublished_changeset_posts );
                
Home | Imprint | This part of the site doesn't use cookies.