Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions includes/fbproduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,9 @@ public function get_fb_description() {
// If no description is found from meta or variation, get from post
if ( empty( $description ) ) {
$post = $this->get_post_data();
$post_content = WC_Facebookcommerce_Utils::clean_string( $post->post_content );
$post_excerpt = WC_Facebookcommerce_Utils::clean_string( $post->post_excerpt );
$post_title = WC_Facebookcommerce_Utils::clean_string( $post->post_title );
$post_content = WC_Facebookcommerce_Utils::clean_string( apply_filters( 'the_content', $post->post_content ) );
$post_excerpt = WC_Facebookcommerce_Utils::clean_string( get_the_excerpt( $post ) );
$post_title = WC_Facebookcommerce_Utils::clean_string( get_the_title( $post ) );

// Prioritize content, then excerpt, then title
if ( ! empty( $post_content ) ) {
Expand Down
Loading