]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/page-new.php
Wordpress 2.9
[autoinstalls/wordpress.git] / wp-admin / page-new.php
index f324c3d10faf8fbcc684b4cbc3dcb0e2f356cb6c..c73c7fcba8986a715623454d9dbdd4ab6661fcce 100644 (file)
@@ -1,30 +1,31 @@
 <?php
 <?php
+/**
+ * New page administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 require_once('admin.php');
-$title = __('New Page');
-$parent_file = 'post-new.php';
+$title = __('Add New Page');
+$parent_file = 'edit-pages.php';
 $editing = true;
 wp_enqueue_script('autosave');
 $editing = true;
 wp_enqueue_script('autosave');
-wp_enqueue_script('page');
+wp_enqueue_script('post');
 if ( user_can_richedit() )
        wp_enqueue_script('editor');
 add_thickbox();
 wp_enqueue_script('media-upload');
 wp_enqueue_script('word-count');
 
 if ( user_can_richedit() )
        wp_enqueue_script('editor');
 add_thickbox();
 wp_enqueue_script('media-upload');
 wp_enqueue_script('word-count');
 
-require_once('admin-header.php');
-?>
-
-<?php if ( (isset($_GET['posted']) && $_GET['posted'])  || isset($_GET['saved'])  ) : ?>
-<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( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?></a></p></div>
-<?php endif; ?>
-
-<?php
 if ( current_user_can('edit_pages') ) {
        $action = 'post';
        $post = get_default_page_to_edit();
 
        include('edit-page-form.php');
 }
 if ( current_user_can('edit_pages') ) {
        $action = 'post';
        $post = get_default_page_to_edit();
 
        include('edit-page-form.php');
 }
-?>
 
 
-<?php include('admin-footer.php'); ?>
+include('admin-footer.php');
+
+?>