Plugin Directory

Changeset 590940


Ignore:
Timestamp:
08/27/2012 01:48:50 PM (14 years ago)
Author:
parkerj
Message:

Fixed admin urls

Location:
wpms-site-maintenance-mode/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpms-site-maintenance-mode/trunk/readme.txt

    r590933 r590940  
    55Requires at least: 3.0
    66Tested up to: 3.4.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88
    99Provides an interface to make a WPMS network unavailable to everyone during maintenance, except the admin.
     
    2121== Changelog ==
    2222
     23= 1.0.2 (2012-08-27) =
     24* Fixed some admin url issues
     25
    2326= 1.0.1 (2012-08-27) =
    2427* Fixed WP_PLUGIN_URL
  • wpms-site-maintenance-mode/trunk/wpms-site-maintenance-mode.php

    r590933 r590940  
    77Author: 7 Media Web Solutions, LLC
    88Author URI: http://www.7mediaws.org/
    9 Version: 1.0.1
     9Version: 1.0.2
    1010License: GPL
    1111
     
    3333    function wpms_sitemaint() {
    3434        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'));
    3636    }
    3737
     
    4242
    4343    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'));
    4745    }
    4846
Note: See TracChangeset for help on using the changeset viewer.