• There appears to be a fault in the plugin that prevents draft posts being previewed. The bug causes any attempt to preview a draft post to redirect to a site’s homepage.

    This fault first happened on upgrade to WP 4.9.7. The Collective Bias plugin was last updated 5 months ago (the installed version is the latest version).

    In use in a multilingual site with content managed with WPML with each language in its own directory (e.g. English is at domain root and Spanish is at domain/es/) the fault only triggers when the previews are of posts in the default language version.

    Tested with and without WPML enabled. Appears the preview page redirect to the homepage only happens at domain root e.g. example.com/?p=NUM&preview=true.

    Could it be your GDPR script causing issues?

Viewing 1 replies (of 1 total)
  • Thread Starter Lee Hodson (VR51)

    (@leehodson)

    Still no answer?

    This needs to be fixed in the core plugin.

    Please adjust the plugin to change line 32 to disable the plugin’s frontend script output when administrators are previewing posts, thus:

    if ( !empty( $uid ) && !empty( $template ) && !current_user_can('administrator') ) {

    You might even change it to editor or implement a check at that line to prevent script output in page previews.

Viewing 1 replies (of 1 total)
  • The topic ‘Compatibility with WP 4.9.7: Post Previews Blocked’ is closed to new replies.