Allow adding submenus to post.php for back-compat. fixes #3501
git-svn-id: https://develop.svn.wordpress.org/trunk@4694 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c1cc3d6dc7
commit
9d80a01cf6
@ -26,6 +26,7 @@ else
|
||||
$menu[40] = array(__('Options'), 'manage_options', 'options-general.php');
|
||||
|
||||
|
||||
$_wp_real_parent_file['post.php'] = 'post-new.php'; // Back-compat
|
||||
$submenu['post-new.php'][5] = array(__('Write Post'), 'edit_posts', 'post-new.php');
|
||||
$submenu['post-new.php'][10] = array(__('Write Page'), 'edit_pages', 'page-new.php');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user