diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 4eb28a44b..968f721c0 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 b03bf86b0..93b13b017 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 000000000..770f8e2f2 --- /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 d18865212..188d6a4a9 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -1,7 +1,7 @@