XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 30, 2010, 4:18:11 PM (15 years ago)
Author:
toemon
Message:

MultiBlog時のXPressMEプラグインメニューにて管理者以外でも、「アップグレード」、「およびモジュール管理へ」のメニューが表示されてしまうバグ修正 Fixes #324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php

    r563 r566  
    6161        add_submenu_page(__FILE__, __('Other Settings', 'xpressme'), __('Other Settings', 'xpressme'), 8, 'other_option_page', 'other_option_page'); 
    6262//      if (function_exists('wp_remote_get')) 
     63        if(xpress_is_multiblog_root()){ 
    6364                add_submenu_page(__FILE__, __('Upgrade', 'xpressme'), __('Upgrade', 'xpressme'), 8, 'upgrade_page', 'upgrade_page'); 
    64         add_submenu_page(__FILE__, __('to Modules Admin', 'xpressme'), __('to Modules Admin', 'xpressme'), 8,  'redirect_xoops_admin', 'redirect_xoops_admin'); 
     65                add_submenu_page(__FILE__, __('to Modules Admin', 'xpressme'), __('to Modules Admin', 'xpressme'), 8,  'redirect_xoops_admin', 'redirect_xoops_admin'); 
     66        } 
    6567} 
    6668add_action('admin_menu', 'my_plugin_menu'); 
Note: See TracChangeset for help on using the changeset viewer.