• Resolved clarkstudios

    (@clarkstudios)


    Hi,

    I have just made the migration to this new plugin and have come across a bug which is killing our workflows. I use the custom editor and when I “Add a new post” all the statuses appear as expected.

    As soon as the post, is saved as draft, scheduled or published I no longer see the other statuses.

    Before:

    After:

    Is there a hot fix for this in functions.php I can add?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter clarkstudios

    (@clarkstudios)

    Some further investigation

    line 41 on PostEditClassic.php

     if (!empty($post)) {
    
                if (\PublishPress_Statuses::isUnknownStatus($post->post_status)
                || \PublishPress_Statuses::isPostBlacklisted($post->ID)
                ) {
                    return;
                }
            }

    The post status is empty when I print_r($post) which is where I expect the issue is coming from – I have checked the database and the post_status is “pending” in this example. It is as if the post status is being filtered out.

    Plugin Author Kevin Behrens

    (@kevinb)

    @clarkstudios What version of the plugin are you running? That is not line 41 in the current version.

    Thread Starter clarkstudios

    (@clarkstudios)

    Update: The issue seems to be with ShortPixel Critical CSS plugin. Disabling this has bought the statuses back. I will dive into that plugin and see what the issue is.

    Plugin Author Kevin Behrens

    (@kevinb)

    @clarkstudios Based on my troubleshooting, you can prevent the ShortPixel Critical CSS conflict by adding this snippet to functions.php:

    add_filter('shortpixel_critical_css_manual_term_css', function($val) {return false;});
    Plugin Author Kevin Behrens

    (@kevinb)

    Plugin Author Kevin Behrens

    (@kevinb)

    @clarkstudios Statuses 1.0.6.6 hooks into that ShortPixel Critical CSS filter to prevent this conflict. I’ll remove this workaround if they fix the issue on their end.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Post Status Dissapear once Saved’ is closed to new replies.