diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 4eb28a44b0..968f721c06 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -1,6 +1,6 @@
-

+

- +

+

»

- 0) { - $action = 'post'; - get_currentuserinfo(); - //set defaults - $post_status = 'static'; - $comment_status = get_settings('default_comment_status'); - $ping_status = get_settings('default_ping_status'); - $post_pingback = get_settings('default_pingback_flag'); - $post_parent = 0; - $page_template = 'default'; - - include('edit-page-form.php'); -} -?> \ No newline at end of file diff --git a/wp-admin/menu.php b/wp-admin/menu.php index b03bf86b0b..93b13b0172 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -15,6 +15,9 @@ $menu[40] = array(__('Presentation'), 8, 'themes.php'); $menu[45] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php'); ksort($menu); // So other files can plugin +$submenu['post.php'][5] = array('Write Post', 1, 'post.php'); +$submenu['post.php'][10] = array('Write Page', 5, 'page-new.php'); + $submenu['edit.php'][5] = array(__('Posts'), 1, 'edit.php'); $submenu['edit.php'][10] = array(__('Pages'), 5, 'edit-pages.php'); $submenu['edit.php'][15] = array(__('Categories'), 1, 'categories.php'); diff --git a/wp-admin/page-new.php b/wp-admin/page-new.php new file mode 100644 index 0000000000..770f8e2f21 --- /dev/null +++ b/wp-admin/page-new.php @@ -0,0 +1,30 @@ + + + +

»

+ + + 0) { + $action = 'post'; + get_currentuserinfo(); + //set defaults + $post_status = 'static'; + $comment_status = get_settings('default_comment_status'); + $ping_status = get_settings('default_ping_status'); + $post_pingback = get_settings('default_pingback_flag'); + $post_parent = 0; + $page_template = 'default'; + + include('edit-page-form.php'); +} +?> + + \ No newline at end of file diff --git a/wp-admin/post.php b/wp-admin/post.php index d188652121..188d6a4a97 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -1,7 +1,7 @@