Wordpress 2.0.11-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.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( $_GET['saved'] ); ?>"><?php _e('View page'); ?> &raquo;</a></p></div>
11 <?php endif; ?>
12
13 <?php
14 if ( current_user_can('edit_pages') ) {
15         $action = 'post';
16         $post = get_default_post_to_edit();
17         $post->post_status = 'static';
18
19         include('edit-page-form.php');
20 }
21 ?>
22
23 <?php include('admin-footer.php'); ?>