• Hi there, WP Engine recently made an update to their staging sites that is incompatible with RSA. I’ve gone through their support and they won’t fix it, so I thought I’d let you know in case you were willing to put in a fix on your end.

    What broke it was a filter they put on ‘pre_option_blog_public’. The symptom it creates is that when if you set the site visibility option to restrict access, once you save it goes right back to ‘discourage indexing’, thereby preventing users from making the site private. The problem is only on their staging sites.

    Here’s the code they gave me for removing it:

    if ( function_exists( 'is_wpe_snapshot' ) ) {
         if ( is_wpe_snapshot() ) {
              if ( has_filter( 'pre_option_blog_public', 'wpe_filter_privacy_option' ) ) {
                   remove_filter( 'pre_option_blog_public', 'wpe_filter_privacy_option' );
              } elseif ( has_filter( 'pre_option_blog_public', '__return_zero' ) ) {
                   remove_filter( 'pre_option_blog_public', '__return_zero' );
              }
         }
    }

    I can implement it site by site, but it would be easier for me if you could just build it into the plugin 🙂

    http://wordpress.org/extend/plugins/restricted-site-access/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m also getting this behavior on a WP Engine staging site.
    Does anyone have an alternative pswd protection plugin that works on WP Engine without special code?
    The most popular one “Password Protected” does not work with them. Neither does “Password Protect WordPress”….

    The filter offered above does work, but RSA’s redirect features do not. Any chance someone might update or fork this plugin? It’s a good one.

    As an alternative I use Karen Mag’s “Private Only Custom Login” plugin. It’s a little more limited, but it’s actively supported and works with WPE staging sites. It lets you create one public page (optional) and a custom login screen with a warning. it comes with a sub-plugin to block your feeds too — not sure how RSA handles that.

    What we really need is a plugin for WPE staging sites that reminds you when you are on or trying to enter a staging site and when you are not. Being able to checklist or actually automate the things you need to do after pushing to live or staging — like the plugins that must be de/activated, re-authenticated, etc — would be a great feature set or separate plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incompatibility with WP Engine plus fix’ is closed to new replies.