Changeset 590940
- Timestamp:
- 08/27/2012 01:48:50 PM (14 years ago)
- Location:
- wpms-site-maintenance-mode/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wpms-site-maintenance-mode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpms-site-maintenance-mode/trunk/readme.txt
r590933 r590940 5 5 Requires at least: 3.0 6 6 Tested up to: 3.4.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 9 9 Provides an interface to make a WPMS network unavailable to everyone during maintenance, except the admin. … … 21 21 == Changelog == 22 22 23 = 1.0.2 (2012-08-27) = 24 * Fixed some admin url issues 25 23 26 = 1.0.1 (2012-08-27) = 24 27 * Fixed WP_PLUGIN_URL -
wpms-site-maintenance-mode/trunk/wpms-site-maintenance-mode.php
r590933 r590940 7 7 Author: 7 Media Web Solutions, LLC 8 8 Author URI: http://www.7mediaws.org/ 9 Version: 1.0. 19 Version: 1.0.2 10 10 License: GPL 11 11 … … 33 33 function wpms_sitemaint() { 34 34 add_action('init',array(&$this,'wpms_sitemaint_init'),1); 35 add_action(' admin_menu',array(&$this,'add_admin_subpanel'));35 add_action('network_admin_menu',array(&$this,'add_admin_subpanel')); 36 36 } 37 37 … … 42 42 43 43 function add_admin_subpanel() { 44 get_currentuserinfo(); 45 if (!is_super_admin()) return false; 46 add_submenu_page('ms-admin.php', 'WPMS Site Shutdown', 'WPMS Sitedown', 'manage_network_options', 'wpms_site_maint', array(&$this,'adminpage')); 44 add_submenu_page('settings.php', __('WPMS Site Shutdown'), __('WPMS Sitedown'), 'manage_network_options', 'wpms_site_maint', array(&$this,'adminpage')); 47 45 } 48 46
Note: See TracChangeset
for help on using the changeset viewer.