But when i paste the exact same snippet directly in the frontend.php file of the rich-text module in the plugins folder of beaver builder the stripslashes function work perfectly. Could you help me out on this one, do you have an idea, since i want to keep the bb plugin updatable.
ps. i also tried this from within the bb parent theme, but this didn’t work either.
Upon blank Wordpress installation i renamed the default “wp-content” folder to “app” with the Ithemes Security plugin. (I also changed default database prefixes (‘wp_’) to (fsdfsdaw2f_’). But this has no consequences i think)
I have done a ‘search all’ within Sublimetext through the bb-plugin folder and found out that the file ‘\plugins\bb-plugin\classes\FLBuilderModule.php’ uses a hardcoded wp-content link:
When i change ‘wp-content’ to ‘app’ in above code snippet in the FLBuilderModule.php it works just fine. But this way i cannot upgrade the plugin in the future.
Am i forced to use the default ‘wp-content’ folder when using de Beaver plugin? Is there a way to fix this? I would really like to use my own folder name instead of the default ‘wp-content’ name. (i.e. for security reasons)
By the way: The stripslashes_deep was needed to strip insertion of backslash (/) on images and inline font-sizes in the text-editor when using live reloading with my custom module. (hit the tab ‘block and then hit ‘width’ in my example if you want to see what i mean)’. If stripslashes is deactivated the image and font-sizes disappear upon toggling the width dropwdown.
I will send you my custom rich-text module.
Thanks again for the great plugin, theme and service, i like it very much!
I wasn’t aware that it’s possible to change the wp-content directory name. It looks like we should be using the content_url function to make sure the builder works with that. I’ve made a note to look into that for the next version of the builder.