• Resolved rolfkleef

    (@rolfkleef)


    hi folks,

    So… for your information: with the upgrade to 6.0.2.4 comes another unexpected interaction with the PageBuilder plugin 🙂

    You are now processing a form description for shortcodes, in public/partials/shortcodes/process_form_shortcode.php on line 144, using ‘the_content’ hook.

    PageBuilder uses that hook too, in a way that results in a recursion: when the filters are applied, PageBuilder inserts the content up till then again, and processes the same form again, which then calls the filter on description, which starts PageBuilder again, etc.

    My guess is that this is also something better fixed at PageBuilder’s end. There are more questions about interference via the_content filters.

    But the easiest fix for me for now was to add a check to Easy Forms around displaying the description:

    if( !empty( $description ) && $description == 1 ) {
      $yikes_t_content = apply_filters( 'yikes-mailchimp-form-description', $form_description, $form_id );
      include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
      if ( !is_plugin_active( 'siteorigin-panels/siteorigin-panels.php' ) ) {
        // PageBuilder plugin is not activated
        $yikes_t_content = apply_filters( 'the_content', $yikes_t_content );
      }
      echo '<p class="yikes-mailchimp-form-description yikes-mailchimp-form-description-'.$form_id.'">' . $yikes_t_content . '</p>';
    }

    https://ww.wp.xz.cn/plugins/yikes-inc-easy-mailchimp-extender/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘another interaction with PageBuilder: 'the_content' recursion’ is closed to new replies.