Unverified Commit 3588bfaf authored by totten's avatar totten Committed by GitHub

Merge pull request #128 from civicrm/revert-126-master

Revert "Gutenberg Compatibility - Do not render shortcodes in REST context"
parents 1f1471dc a3021f29
......@@ -246,11 +246,7 @@ class CiviCRM_For_WordPress_Shortcodes {
* @return string HTML for output
public function render_single( $atts ) {
// Do not parse shortcodes in REST context, which breaks saving in Gutenberg editor
if(defined('REST_REQUEST') && REST_REQUEST){
// check if we've already parsed this shortcode
global $post;
if ( is_object($post) ) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment