Skip to content

Commit

Permalink
visal composer editor issie for Threads & Linkedin
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Dec 10, 2024
1 parent 310f277 commit 6d813b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Social/Linkedin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down
4 changes: 4 additions & 0 deletions includes/Social/Threads.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}


Expand Down

0 comments on commit 6d813b0

Please sign in to comment.