]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/page-new.php
Wordpress 2.0.2-scripts
[autoinstalls/wordpress.git] / wp-admin / page-new.php
1 <?php
2 require_once('admin.php');
3 $title = __('New Page');
4 $parent_file = 'post.php';
5 $editing = true;
6 require_once('admin-header.php');
7 ?>
8
9 <?php if ( isset($_GET['saved']) ) : ?>
10 <div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> &raquo;</a></strong></p></div>
11 <?php endif; ?>
12
13 <?php
14 if ( current_user_can('edit_pages') ) {
15         $action = 'post';
16         get_currentuserinfo();
17         
18         $post = get_default_post_to_edit();
19         $post->post_status = 'static';
20
21         include('edit-page-form.php');
22 }
23 ?>
24
25 <?php include('admin-footer.php'); ?>