|
@@ -277,7 +277,7 @@ add_action( 'admin_menu', 'gwp24_remove_admin_pages', 99 );
|
|
function gwp24_remove_admin_pages() {
|
|
function gwp24_remove_admin_pages() {
|
|
global $current_user;
|
|
global $current_user;
|
|
$user_id = get_current_user_id();
|
|
$user_id = get_current_user_id();
|
|
- if($user_id != '0') {
|
|
|
|
|
|
+ if($user_id != '1') {
|
|
remove_menu_page('plugins.php');
|
|
remove_menu_page('plugins.php');
|
|
remove_menu_page('tools.php');
|
|
remove_menu_page('tools.php');
|
|
remove_menu_page('options-general.php');
|
|
remove_menu_page('options-general.php');
|