Patrick Lai
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] undefined function str_starts_with()Looks like str_starts_with() is new in PHP 8.
Thanks for the suggestions. I think the separate data entry scheme approach would be robust, but require quite a bit of work. I may try to undo the injection by WP as a temporary workaround.
By the way, I have just tried my example in a WP 4.9 installation, and the behavior is the same (i.e. <br/> injected). So it’s not a regression or change in behavior. Sorry for the misinformation.
Thanks for the reference to Trac #47974, though I’m not sure it’s the same issue. #47974 is about the implementation of wpautop(), whereas I am mainly looking for a way to have WP give my shortcode function the raw content/block (like the ‘no_texturize_shortcodes’ filter did in 4.9). I suppose my point about calling wpautop() with $br=false may have given the impression that it’s about wpautop(). (By the way, $br=false would not solve my problem.)
I think WP treats shortcode block as post content, so it has liberty to process it somewhat. My shortcode block contains data that is not post content; I may have to find some other way to pass that data.
Forum: Plugins
In reply to: [WPGlobus] compatibility with WPBakery Page Builder 6.0Thanks Alex. That helps. Saving from the ‘Frontend Editor’ still has the problem, but that’s probably a WPBakery issue.