root/tags/1.5.1/wp-admin/page-new.php

Revision 1857, 0.7 kB (checked in by saxmatt, 4 years ago)

Improvements to page handling. Move form to own page, put under "Write", ambiguiate language, and fix redirect.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 require_once('admin.php');
3 $title = __('New Page');
4 $parent_file = 'post.php';
5 require_once('admin-header.php');
6
7 get_currentuserinfo();
8 ?>
9
10 <?php if ( isset($_GET['saved']) ) : ?>
11 <div class="updated"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> &raquo;</a></strong></p></div>
12 <?php endif; ?>
13
14 <?php
15 if ($user_level > 0) {
16     $action = 'post';
17     get_currentuserinfo();
18     //set defaults
19     $post_status = 'static';
20     $comment_status = get_settings('default_comment_status');
21     $ping_status = get_settings('default_ping_status');
22     $post_pingback = get_settings('default_pingback_flag');
23     $post_parent = 0;
24     $page_template = 'default';
25
26     include('edit-page-form.php');
27 }
28 ?>
29
30 <?php include('admin-footer.php'); ?> 
Note: See TracBrowser for help on using the browser.