JamesD

Page Builder Bug?

Not 100% if this is a bug, but looks that way... I noticed the warning messages in admin while going to edit the home page. The messages are hidden behind everything else after page load. Looks like there may be a couple variable reference discrepancies within in the '/plugins/wlt_builder/pt-bulder.php' file around lines 117, 118 and 121. Note: The lines are trying to reference an invalid array "$in" instead of the correct one "$init" It's within the "pt_tinymce_config" function: function pt_tinymce_config( $init ) { $init['remove_linebreaks'] = false; $init['convert_newlines_to_brs'] = true; $init['remove_redundant_brs'] = false; if(!empty(<b>$in</b>['extended_valid_elements'])){ <b>$in</b>['extended_valid_elements'] .= ','; } <b>$in</b>['extended_valid_elements'] .= '@[id|class|style|title|itemscope|itemtype|itemprop|datetime|rel],div,div[*],dl,ul,ol,dt,dd,li,span,a|rev|charset|href|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur]'; return $init; } I wonder if this is causing of some of the other strange issues members have experienced.

Created: December 8, 2016 at 2:02 am
  • In: General Discussion
  • Started by: JamesDJamesD
  • 1 members left 2 comments
  • Last reply from: JamesDJamesD

  • JamesD
    JamesD
    December 8, 2016 at 2:06 am

    Sorry, I boo-booed on the format in the original post.
    Here’s the function again (referencing “$in”)

    function pt_tinymce_config( $init ) {

    $init['remove_linebreaks'] = false;
    $init['convert_newlines_to_brs'] = true;
    $init['remove_redundant_brs'] = false;

    if(!empty($in['extended_valid_elements'])){
    $in['extended_valid_elements'] .= ',';
    }

    $in['extended_valid_elements'] .= '@[id|class|style|title|itemscope|itemtype|itemprop|datetime|rel],div,div[*],dl,ul,ol,dt,dd,li,span,a|rev|charset|href|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur]';

    return $init;

    }

  • JamesD
    JamesD
    December 8, 2016 at 2:15 am

    PremiumPress Page Builder
    Version:


Viewing 3 posts - 1 through 3 (of 3 total)