[Plugin: Simple Facebook Connect] incompatibility with gd star rating
-
Hi,
i’m using this plugin and it adds an og:description meta in the head.
I use gd star rating and the problem is that it show the “loading” text of gd star rating inside this meta.
<meta
property=’og:description’ content=’GD Star Ratingloading…’ />this is caused by that :
// code to create a pretty excerpt given a post object function sfc_base_make_excerpt($post) { if ( !empty($post->post_excerpt) ) $text = $post->post_excerpt; else $text = $post->post_content; $text = strip_shortcodes( $text ); // filter the excerpt or content, but without texturizing if ( empty($post->post_excerpt) ) { remove_filter( 'the_content', 'wptexturize' ); $text = apply_filters('the_content', $text); add_filter( 'the_content', 'wptexturize' ); } else { remove_filter( 'the_excerpt', 'wptexturize' ); $text = apply_filters('the_excerpt', $text); add_filter( 'the_excerpt', 'wptexturize' ); }
if $post->post_excerpt is empty, we are setting text as $post->post_content;
then, why are we replacing text with :remove_filter( 'the_content', 'wptexturize' ); $text = apply_filters('the_content', $text); add_filter( 'the_content', 'wptexturize' );
in the case of an empty excerpt? it’s redefining text
https://www.ads-software.com/extend/plugins/simple-facebook-connect/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Simple Facebook Connect] incompatibility with gd star rating’ is closed to new replies.