WordPress.org

Plugin Directory

Changeset 624963


Ignore:
Timestamp:
11/14/12 01:28:57 (17 months ago)
Author:
niallkennedy
Message:

version 1.1.3. fix PHP 5.2.4 - 5.2.8 issue. recommendations bar fix

Location:
facebook/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • facebook/trunk/admin/settings-social-plugin.php

    r624328 r624963  
    169169        if ( isset( $options['show_on'] ) ) { 
    170170            if ( is_array( $options['show_on'] ) ) 
    171                 $clean_options['show_on'] = array_unique( $options['show_on'], SORT_STRING ); // SORT_STRING default after PHP 5.2.10. WordPress min requirement is 5.2.4 
     171                $clean_options['show_on'] = array_unique( $options['show_on'] ); // SORT_STRING default after PHP 5.2.10. WordPress min requirement is 5.2.4 
    172172            else if ( is_string( $options['show_on'] ) ) 
    173173                $clean_options['show_on'] = array( $options['show_on'] ); 
  • facebook/trunk/facebook.php

    r624937 r624963  
    22/** 
    33 * @package Facebook 
    4  * @version 1.1.2 
     4 * @version 1.1.3 
    55 */ 
    66/* 
     
    1010Author: Facebook 
    1111Author URI: https://developers.facebook.com/wordpress/ 
    12 Version: 1.1.2 
     12Version: 1.1.3 
    1313License: GPL2 
    1414License URI: license.txt 
     
    2929     * @var string 
    3030     */ 
    31     const VERSION = '1.1.2'; 
     31    const VERSION = '1.1.3'; 
    3232 
    3333    /** 
  • facebook/trunk/open-graph-protocol.php

    r624328 r624963  
    132132            $meta_tags[ self::OGP_NS . 'title' ] = get_bloginfo( 'name' ); 
    133133            $meta_tags[ self::OGP_NS . 'description' ] = get_bloginfo( 'description' ); 
     134            if ( is_front_page() ) 
     135                $meta_tags[ self::OGP_NS . 'url' ] = site_url(); 
     136            else 
     137                $meta_tags[ self::OGP_NS . 'url' ] = home_url(); 
    134138        } else if ( is_single() && empty( $post->post_password ) ) { 
    135139            $post_type = get_post_type(); 
  • facebook/trunk/readme.txt

    r624937 r624963  
    66License: GPLv2 
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    8 Stable tag: 1.1.2 
     8Stable tag: 1.1.3 
    99 
    1010Make your WordPress site social in a couple of clicks, powered by Facebook. 
     
    106106== Upgrade Notice == 
    107107 
     108= 1.1.3 = 
     109Fix recommendations bar issue and PHP issue affecting 5.2.4 - 5.2.8 installs. 
     110 
    108111= 1.1.2 = 
    109112Improved compatibility with PHP 5.2 installations. Recommendations Bar fix. 
     
    119122 
    120123== Changelog == 
     124 
     125= 1.1.3 = 
     126 
     127* PHP issue affecting 5.2.4 - 5.2.8 installs 
     128* Properly save number of articles setting for recommendations bar 
     129* Add explicit Open Graph protocol URL for front page and home 
    121130 
    122131= 1.1.2 = 
  • facebook/trunk/social-plugins/class-facebook-recommendations-bar.php

    r624937 r624963  
    296296            $data['site'] = implode( ',', $this->site ); 
    297297 
    298         if ( isset( $this->num_recommendations ) && $this->num_recommendations !== 2 ) // default: 2 
     298        if ( isset( $this->num_recommendations ) && $this->num_recommendations != 2 ) // default: 2 
    299299            $data['num-recommendations'] = strval( $this->num_recommendations ); 
    300300 
     
    350350 
    351351        if ( isset( $values['num_recommendations'] ) ) 
    352             $bar->setNumRecommendations( $values['num_recommendations'] ); 
     352            $bar->setNumRecommendations( absint( $values['num_recommendations'] ) ); 
    353353 
    354354        if ( isset( $values['max_age'] ) ) 
Note: See TracChangeset for help on using the changeset viewer.