WooRockets / WR-PageBuilder

PageBuilder for Wordpress from woorockets.com
34 stars 31 forks source link

Wrong Short Nesting when initialize Page Builder with existing Content #17

Open elmarbransch opened 7 years ago

elmarbransch commented 7 years ago

If you type some text in the classic word press editor "This is a Test.", then switch to Page Builder tab it looks good. Page Builder converts the text so some basic row/col/text shortcodes. But when switching back to Classic Editor it shows these shortcodes:

[wr_row][wr_column]This is a Test.[/wr_column]][wr_text]This is a Test.[/wr_text][/wr_column][/wr_row]

Switch back to Page Builder will cause the text to be shown twice, as the Page Builder tries to fix the wrong nesting. Repeating this process results in unwanted duplication of the initial content.

In addition: when saving in this state I get an error like #15.

I verified the database as well and found the meta Key "_wr_page_builder_content" showing the same wrong content.

The behaviour seems to be fine, when I skip the if( $refine ) section in the code.