Conflict with the Cornerstone page builder
-
Just an FYI,
We ran into a conflict with this plugin and the Cornerstone page builder. The issue is due to Custom Permalinks redirecting the build editor’s iframe. The builder loads the front end view of the site in a special iframe in order to allow visual editing. The iframe does that with a POST request with some special values passed in. Custom Permalinks then redirects the iframe with a GET request that loses the editor’s magic.
Here is my fix:
function yasglobal_avoid_redirect( $permalink ) {
// Check if the 'cs_preview_time' key exists in the POST data
if (isset($_POST['cs_preview_time'])) {
return true;
}
return false;
}
add_filter( 'custom_permalinks_avoid_redirect', 'yasglobal_avoid_redirect' );
- You must be logged in to reply to this topic.