WordPress.org

Plugin Directory

Changeset 402943


Ignore:
Timestamp:
06/30/11 21:09:08 (3 years ago)
Author:
Kawauso
Message:

committing 1.1.3

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

Legend:

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

    r398502 r402943  
    44Requires at least: 3.0 
    55Tested up to: 3.2 
    6 Stable tag: 1.1.2 
     6Stable tag: 1.1.3 
    77 
    88Allows network admins to restrict which plugins are available on sites, similar to themes. 
     
    3636== Changelog == 
    3737 
     38= 1.1.3 = 
     39* Activation state check for menus to support single blog activation 
     40 
    3841= 1.1.2 = 
    3942* Changed class loading to admin-only 
     
    5356== Upgrade Notice == 
    5457 
     58= 1.1.3 = 
     59Support for single blog activation (menu item under Site Admin for single blogs). 
     60 
    5561= 1.1.2 = 
    5662Limits restrictions to admin-only. 
  • restrict-multisite-plugins/trunk/restrict-multisite-plugins.php

    r398502 r402943  
    33Plugin Name: Restrict Multisite Plugins 
    44Description: Replicates some of the per-site theme toggling functionality for plugins. Affects all sites activated on. 
    5 Version: 1.1.1 
     5Version: 1.1.3 
    66Author: Adam Harley 
    77Author URI: http://adamharley.co.uk 
     
    147147    add_filter( 'all_plugins', array('RestrictAllowedPlugins','filter') ); 
    148148 
    149     if( function_exists('is_network_admin') ) 
     149    if ( ! function_exists( 'is_plugin_active_for_network' ) ) 
     150        require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); 
     151 
     152    if ( function_exists('is_network_admin') && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) 
    150153        add_action( 'network_admin_menu', array('RestrictAllowedPlugins','setup_admin') ); 
    151154    else 
Note: See TracChangeset for help on using the changeset viewer.