mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Allow adding submenus to post.php for back-compat. fixes #3501
git-svn-id: http://svn.automattic.com/wordpress/trunk@4694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
874234dc6f
commit
e2412eaaf2
@ -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