Incompatibility with WP Engine plus fix
-
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 🙂
- The topic ‘Incompatibility with WP Engine plus fix’ is closed to new replies.