rearrange menu items
This commit is contained in:
parent
112c4908ad
commit
baae47adcc
@ -199,13 +199,12 @@ class WhatDidTheySayAdmin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function admin_menu() {
|
function admin_menu() {
|
||||||
add_submenu_page(
|
add_options_page(
|
||||||
'edit-comments.php',
|
__('What Did They Say?!? Settings', 'what-did-they-say'),
|
||||||
__('Manage Transcriptions', 'what-did-they-say'),
|
__('What Did They Say?!?', 'what-did-they-say'),
|
||||||
__('Transcripts', 'what-did-they-say'),
|
'manage_options',
|
||||||
'edit_posts',
|
'manage-wdts',
|
||||||
'manage-transcriptions-wdts',
|
array(&$this, 'manage_admin')
|
||||||
array(&$this, 'manage_transcriptions_admin')
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (current_user_can('edit_posts')) {
|
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');
|
$options = get_option('what-did-they-say-options');
|
||||||
|
|
||||||
$nonce = wp_create_nonce('what-did-they-say');
|
$nonce = wp_create_nonce('what-did-they-say');
|
||||||
|
Loading…
Reference in New Issue
Block a user