• The function sfc_base_make_excerpt erroneously assumes that the filter wptexturize is always enabled for the_excerpt and the_content. I’ve attached a patch to make it respect the chosen filter settings.

    --- sfc-base.php.old	2012-06-09 15:31:53.000000000 +0200
    +++ sfc-base.php	2012-07-03 21:34:46.000000000 +0200
    @@ -444,14 +444,20 @@
    
     	$text = strip_shortcodes( $text );
    
    +	$has_filter = true;
    +
     	// filter the excerpt or content, but without texturizing
     	if ( empty($post->post_excerpt) ) {
    +		if ($has_filter = has_filter('the_content', 'wptexturize'))
     		remove_filter( 'the_content', 'wptexturize' );
     		$text = apply_filters('the_content', $text);
    +		if ($has_filter)
     		add_filter( 'the_content', 'wptexturize' );
     	} else {
    +		if ($has_filter = has_filter('the_excerpt', 'wptexturize'))
     		remove_filter( 'the_excerpt', 'wptexturize' );
     		$text = apply_filters('the_excerpt', $text);
    +		if ($has_filter)
     		add_filter( 'the_excerpt', 'wptexturize' );
     	}

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  • The topic ‘[Plugin: Simple Facebook Connect] sfc_base_make_excerpt assumes wptexturize is always on’ is closed to new replies.