WordPress.org

Plugin Directory

Changeset 1407001


Ignore:
Timestamp:
04/29/16 03:22:13 (22 months ago)
Author:
nicholas_io
Message:

Releasing version 1.1.2

Location:
multisite-widgets-context
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • multisite-widgets-context/tags/1.1.2/README.md

    r1396075 r1407001  
    1212Requires at least: 4.1 
    1313Tested up to: 4.5 
    14 Stable tag: 1.1.1 
     14Stable tag: 1.1.2 
    1515License: GPLv2 or later 
    1616License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • multisite-widgets-context/tags/1.1.2/README.txt

    r1396075 r1407001  
    66Requires at least: 4.1 
    77Tested up to: 4.5 
    8 Stable tag: 1.1.1 
     8Stable tag: 1.1.2 
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5353== Changelog == 
    5454 
     55= 1.1.2 = 
     56* Fixing a bug where a PHP Fatal error could happen on the append_current_site_context() method. 
     57 
    5558= 1.1.1 = 
    5659* Fixing a bug where the selected site context wasn't being persisted in some edge cases 
  • multisite-widgets-context/tags/1.1.2/multisite-widgets-context.php

    r1396075 r1407001  
    66 * Author: nicholas_io 
    77 * Author URI: http://nicholasandre.com.br 
    8  * Version: 1.1.1 
     8 * Version: 1.1.2 
    99 * License: GPLv2 or later 
    1010 * Text Domain: wpmulwc 
     
    1515    exit; // Exit if accessed directly. 
    1616 
    17 define( 'WPMULWC_VERSION', '1.1.1' ); 
     17define( 'WPMULWC_VERSION', '1.1.2' ); 
    1818 
    1919/** 
     
    180180 
    181181        $widget_number = $params[1]['number']; 
    182         $widget_settings = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]->get_settings(); 
    183  
    184         if ( isset( $widget_settings[ $widget_number ] ) ) { 
    185             $instance = $widget_settings[ $widget_number ]; 
    186  
    187             if ( isset( $instance['wpmulwc-site_id'] ) ) { 
    188                 $site_context = esc_html( get_blog_option( (int) $instance['wpmulwc-site_id'], 'blogname' ) ); 
    189                 $params[0]['widget_name'] .= " ({$site_context})"; 
     182 
     183        $widget = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]; 
     184 
     185        if ( method_exists( $widget, 'get_settings' ) ) { 
     186            $widget_settings = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]->get_settings(); 
     187 
     188            if ( isset( $widget_settings[ $widget_number ] ) ) { 
     189                $instance = $widget_settings[ $widget_number ]; 
     190 
     191                if ( isset( $instance['wpmulwc-site_id'] ) ) { 
     192                    $site_context = esc_html( get_blog_option( (int) $instance['wpmulwc-site_id'], 'blogname' ) ); 
     193                    $params[0]['widget_name'] .= " ({$site_context})"; 
     194                } 
     195 
    190196            } 
    191  
    192         } 
     197        } 
     198 
    193199 
    194200        return $params; 
  • multisite-widgets-context/trunk/README.md

    r1396075 r1407001  
    1212Requires at least: 4.1 
    1313Tested up to: 4.5 
    14 Stable tag: 1.1.1 
     14Stable tag: 1.1.2 
    1515License: GPLv2 or later 
    1616License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • multisite-widgets-context/trunk/README.txt

    r1396075 r1407001  
    66Requires at least: 4.1 
    77Tested up to: 4.5 
    8 Stable tag: 1.1.1 
     8Stable tag: 1.1.2 
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5353== Changelog == 
    5454 
     55= 1.1.2 = 
     56* Fixing a bug where a PHP Fatal error could happen on the append_current_site_context() method. 
     57 
    5558= 1.1.1 = 
    5659* Fixing a bug where the selected site context wasn't being persisted in some edge cases 
  • multisite-widgets-context/trunk/multisite-widgets-context.php

    r1396075 r1407001  
    66 * Author: nicholas_io 
    77 * Author URI: http://nicholasandre.com.br 
    8  * Version: 1.1.1 
     8 * Version: 1.1.2 
    99 * License: GPLv2 or later 
    1010 * Text Domain: wpmulwc 
     
    1515    exit; // Exit if accessed directly. 
    1616 
    17 define( 'WPMULWC_VERSION', '1.1.1' ); 
     17define( 'WPMULWC_VERSION', '1.1.2' ); 
    1818 
    1919/** 
     
    180180 
    181181        $widget_number = $params[1]['number']; 
    182         $widget_settings = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]->get_settings(); 
    183  
    184         if ( isset( $widget_settings[ $widget_number ] ) ) { 
    185             $instance = $widget_settings[ $widget_number ]; 
    186  
    187             if ( isset( $instance['wpmulwc-site_id'] ) ) { 
    188                 $site_context = esc_html( get_blog_option( (int) $instance['wpmulwc-site_id'], 'blogname' ) ); 
    189                 $params[0]['widget_name'] .= " ({$site_context})"; 
     182 
     183        $widget = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]; 
     184 
     185        if ( method_exists( $widget, 'get_settings' ) ) { 
     186            $widget_settings = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0]->get_settings(); 
     187 
     188            if ( isset( $widget_settings[ $widget_number ] ) ) { 
     189                $instance = $widget_settings[ $widget_number ]; 
     190 
     191                if ( isset( $instance['wpmulwc-site_id'] ) ) { 
     192                    $site_context = esc_html( get_blog_option( (int) $instance['wpmulwc-site_id'], 'blogname' ) ); 
     193                    $params[0]['widget_name'] .= " ({$site_context})"; 
     194                } 
     195 
    190196            } 
    191  
    192         } 
     197        } 
     198 
    193199 
    194200        return $params; 
Note: See TracChangeset for help on using the changeset viewer.