WordPress.org

Plugin Directory

Changeset 625555


Ignore:
Timestamp:
11/15/12 08:23:13 (17 months ago)
Author:
niallkennedy
Message:

version 1.1.5. delete facebook_comments_enabled option when cleaned options show_on value is empty

Location:
facebook/trunk
Files:
3 edited

Legend:

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

    r624937 r625555  
    318318        $clean_options = parent::sanitize_options( $options ); 
    319319        if ( isset( $clean_options['show_on'] ) ) { 
    320             update_option( 'facebook_comments_enabled', '1' ); 
    321320            self::update_display_conditionals( 'comments', $clean_options['show_on'], self::post_types_supporting_comments() ); 
     321            if ( empty( $clean_options['show_on'] ) ) 
     322                delete_option( 'facebook_comments_enabled' ); 
     323            else 
     324                update_option( 'facebook_comments_enabled', '1' ); 
    322325            unset( $clean_options['show_on'] ); 
    323326        } else { 
  • facebook/trunk/facebook.php

    r625442 r625555  
    22/** 
    33 * @package Facebook 
    4  * @version 1.1.4 
     4 * @version 1.1.5 
    55 */ 
    66/* 
     
    1010Author: Facebook 
    1111Author URI: https://developers.facebook.com/wordpress/ 
    12 Version: 1.1.4 
     12Version: 1.1.5 
    1313License: GPL2 
    1414License URI: license.txt 
     
    2929     * @var string 
    3030     */ 
    31     const VERSION = '1.1.4'; 
     31    const VERSION = '1.1.5'; 
    3232 
    3333    /** 
  • facebook/trunk/readme.txt

    r625442 r625555  
    66License: GPLv2 
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    8 Stable tag: 1.1.4 
     8Stable tag: 1.1.5 
    99 
    1010Make your WordPress site social in a couple of clicks, powered by Facebook. 
     
    106106== Upgrade Notice == 
    107107 
     108= 1.1.5 = 
     109Fix comments enabled option improperly set on comments settings save when no post types selected. 
     110 
    108111= 1.1.4 = 
    109112Comments number filter available on all contexts when comments box enabled for one or more post types. 
     
    125128 
    126129== Changelog == 
     130 
     131= 1.1.5 = 
     132* Delete comments enabled option on plugin's settings comments page save when no comments selected. 
    127133 
    128134= 1.1.4 = 
Note: See TracChangeset for help on using the changeset viewer.