From 6d813b0e7fb296691617deb064d1353216c7c85f Mon Sep 17 00:00:00 2001 From: MD Shuvo <66669067+shuvo7670@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:29:24 +0600 Subject: [PATCH] visal composer editor issie for Threads & Linkedin --- includes/Social/Linkedin.php | 2 +- includes/Social/Threads.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Social/Linkedin.php b/includes/Social/Linkedin.php index 6ec93798..85a88402 100644 --- a/includes/Social/Linkedin.php +++ b/includes/Social/Linkedin.php @@ -103,7 +103,7 @@ public function get_formatted_text($post_id) $desc = wp_strip_all_tags($post_details->post_content); if( is_visual_composer_post($post_id) && class_exists('WPBMap') ){ \WPBMap::addAllMappedShortcodes(); - $desc = do_shortcode($desc); + $desc = Helper::strip_all_html_and_keep_single_breaks(do_shortcode($desc)); } } diff --git a/includes/Social/Threads.php b/includes/Social/Threads.php index 8ebeb9ec..b673309c 100644 --- a/includes/Social/Threads.php +++ b/includes/Social/Threads.php @@ -106,6 +106,10 @@ public function get_share_content_args($post_id) $desc = wp_strip_all_tags($post_details->post_excerpt); } else { $desc = wp_strip_all_tags($post_details->post_content); + if( is_visual_composer_post($post_id) && class_exists('WPBMap') ){ + \WPBMap::addAllMappedShortcodes(); + $desc = Helper::strip_all_html_and_keep_single_breaks(do_shortcode($desc)); + } }