From baae47adccaa0e60b3c9a28e2d50bf6d7f102707 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 15 Aug 2009 15:58:01 -0400 Subject: [PATCH] rearrange menu items --- classes/WhatDidTheySayAdmin.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/classes/WhatDidTheySayAdmin.php b/classes/WhatDidTheySayAdmin.php index 59c1f11..30b755b 100644 --- a/classes/WhatDidTheySayAdmin.php +++ b/classes/WhatDidTheySayAdmin.php @@ -199,13 +199,12 @@ class WhatDidTheySayAdmin { } function admin_menu() { - add_submenu_page( - 'edit-comments.php', - __('Manage Transcriptions', 'what-did-they-say'), - __('Transcripts', 'what-did-they-say'), - 'edit_posts', - 'manage-transcriptions-wdts', - array(&$this, 'manage_transcriptions_admin') + add_options_page( + __('What Did They Say?!? Settings', 'what-did-they-say'), + __('What Did They Say?!?', 'what-did-they-say'), + 'manage_options', + 'manage-wdts', + array(&$this, 'manage_admin') ); if (current_user_can('edit_posts')) { @@ -220,7 +219,7 @@ class WhatDidTheySayAdmin { } } - function manage_transcriptions_admin() { + function manage_admin() { $options = get_option('what-did-they-say-options'); $nonce = wp_create_nonce('what-did-they-say');