WordPress.org

Plugin Directory

Changeset 535825


Ignore:
Timestamp:
04/24/12 21:13:24 (2 years ago)
Author:
andrewryno
Message:

Bug fixes and update readme for 2.0.2

Location:
wp-facebook-open-graph-protocol/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-facebook-open-graph-protocol/trunk/readme.txt

    r535255 r535825  
    4949 
    5050== Upgrade Notice == 
     51= 2.0.2 =  
     52Fixes bug that caused a PHP warning to display and also fixes bugs with plugins not functioning properly when using content filters. 
     53 
    5154= 2.0.1 = 
    5255Bug fixes for HTTPS/SSL pages, SEO plugins, force fallback images and more. 
     
    6265 
    6366== Changelog == 
     67= 2.0.2 = 
     68* Fixes bug that would display a PHP warning with debug mode turned on. 
     69* Removed code that would filter the_content() which caused problems with plugins that also used that same filter. 
     70 
    6471= 2.0.1 = 
    6572* Fixed bug where og:url was returning a https URL instead of http, causing Facebook Linter to fail. Now using the WordPress function is_ssl() instead of the $_SERVER global variable. 
  • wp-facebook-open-graph-protocol/trunk/wp-facebook-ogp.php

    r535255 r535825  
    44Plugin URI: http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/ 
    55Description: Adds proper Facebook Open Graph Meta tags and values to your site so when links are shared it looks awesome! Works on Google + and Linkedin too! 
    6 Version: 2.0.1 
     6Version: 2.0.2 
    77Author: Chuck Reynolds 
    88Author URI: http://chuckreynolds.us 
     
    2626*/ 
    2727 
    28 define('WPFBOGP_VERSION', '2.0.1'); 
     28define('WPFBOGP_VERSION', '2.0.2'); 
    2929wpfbogp_admin_warnings(); 
    3030 
     
    3939    global $post, $posts; 
    4040     
    41     // Grab filtered content (so all shorttags are fired) and match first image 
    42     $content = apply_filters( 'the_content', $post->post_content ); 
     41    // Grab content and match first image 
     42    $content = $post->post_content; 
    4343    $output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches ); 
    4444     
     
    8888 
    8989add_action( 'init', 'wpfbogp_start_ob', 0 ); 
    90 add_action( 'wp_footer', 'wpfbogp_end_ob', 10000 ); // Fire after other plugins (which default to priority 10) 
     90add_action( 'wp_footer', 'wpfbogp_flush_ob', 10000 ); // Fire after other plugins (which default to priority 10) 
    9191 
    9292// build ogp meta 
Note: See TracChangeset for help on using the changeset viewer.