WordPress.org

Plugin Directory

Changeset 411838


Ignore:
Timestamp:
07/19/11 09:57:28 (3 years ago)
Author:
Kawauso
Message:

commit 1.1.4

Location:
restrict-multisite-widgets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • restrict-multisite-widgets/trunk/readme.txt

    r403447 r411838  
    44Requires at least: 3.0 
    55Tested up to: 3.2 
    6 Stable tag: 1.1.3 
     6Stable tag: 1.1.4 
    77 
    88Allows network admins to restrict which widgets are available on sites, similar to themes. 
     
    4040== Changelog == 
    4141 
     42= 1.1.4 = 
     43* Fixed bug with removing single instance widgets introduced in 1.1.3 (thanks israelwebdev) 
     44 
    4245= 1.1.3 = 
    4346* Activation state check for menus to support single blog activation 
     
    6366== Upgrade Notice == 
    6467 
     68= 1.1.4 = 
     69Fixes bug in removing single instance widgets introduced in 1.1.3. 
     70 
    6571= 1.1.3 = 
    6672Support for single blog activation (menu item under Site Admin for single blogs). Fixed single instance widget detection. 
  • restrict-multisite-widgets/trunk/restrict-multisite-widgets.php

    r403447 r411838  
    33Plugin Name: Restrict Multisite Widgets 
    44Description: Replicates some of the per-site theme toggling functionality for widgets. Affects all sites activated on. 
    5 Version: 1.1.3 
     5Version: 1.1.4 
    66Author: Adam Harley 
    77Author URI: http://adamharley.co.uk 
     
    6060    foreach( array_keys( $this->single_widgets ) as $widget_key ) { // Single widgets 
    6161        if ( !isset( $allowed_widgets[ $widget_key ] ) ) 
    62             wp_register_sidebar_widget( $widget_key ); 
     62            wp_unregister_sidebar_widget( $widget_key ); 
    6363    } 
    6464} 
     
    6666 
    6767function register( $widget ) { // Register single instance widgets internally since they don't use WP_Widget_Factory 
    68     if ( isset( $widget['params'][0] ) && ! is_array( $widget['params'][0] ) ) 
     68    if ( isset( $widget['params'][0] ) && ! is_array( $widget['params'][0] ) ) { 
    6969        $this->single_widgets[ $widget['id'] ] = $widget['name']; 
     70    } 
    7071    return $widget; 
    7172} 
Note: See TracChangeset for help on using the changeset viewer.