14/02/2014 at 15:24
The plugin adds unnecessary line breaks in the whole tab content.
I used the ‘wct_woocommerce_tab_content’ filter to figure out why, and it looks like the
$field_object['value']in line 232 of woocommerce-custom-tabs.php (v. 1.0.5) has got unnecessary
My guess is that the Wysiwyg Editor is storing the content wrong.14/02/2014 at 21:50
I can not reproduce unnecessary
<br/>tags, but I have experienced similar things earlier in case of normal posts in WordPress. Yes, we suppose this might have been caused by the standard wysiwyg editor of WordPress.
<br/>tag is not inserted directly by our plugin.
Maybe we can make an option to turn off using of wysiwyg editor. Would you like this?
One more idea: You can try to add these lines to your functions.php file in your active theme’s directory to switch off automatic handling of paragraphs and line breaks in WP wysiwyg editor:
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
If you still have any question, or we can do anything about this topic do not hesitate to contact us.
WebshopLogic15/02/2014 at 15:09
I think that the solution of doing
remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
is not a good idea as my other WYSIWYG editors are providing clear data.
I think the problem is in the moment of saving form data, but I’m not sure. I’ll check in monday if the records saved in DB includes the unnecessary
<br />tags16/02/2014 at 20:17
I can reproduce and solve the problem.
The fix is available in v1.0.6, we have just issued.
(version can be download in My Account menu.)
Thank you very much to let me know about this.
If you still have any question, do not hesitate to contact us.
WebshopLogic16/02/2014 at 21:06
Thanks a lot!
Out of curiosity: what was causing the issue?19/02/2014 at 22:16
We use acf-wordpress-wysiwyg-field “sub-plugin”.
There is a get_field function that returns field content from DB. This function has the format_value parameter witch controls whether or not to format the value loaded from the db.
Although the default value is false, but it has to be set false directly to disable formatting.
- You must be logged in to reply to this topic.