]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/page-new.php
Wordpress 2.8-scripts
[autoinstalls/wordpress.git] / wp-admin / page-new.php
index 4157e8c6dc28e075a82247cadfedf2fd5947f753..05ad92107349cf8dfcd9c87de4462e8f6d2ca5de 100644 (file)
@@ -1,23 +1,31 @@
 <?php
+/**
+ * New page administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
-$title = __('New Page');
-$parent_file = 'post.php';
+$title = __('Add New Page');
+$parent_file = 'edit-pages.php';
 $editing = true;
-require_once('admin-header.php');
-?>
+wp_enqueue_script('autosave');
+wp_enqueue_script('page');
+if ( user_can_richedit() )
+       wp_enqueue_script('editor');
+add_thickbox();
+wp_enqueue_script('media-upload');
+wp_enqueue_script('word-count');
 
-<?php if ( isset($_GET['saved']) ) : ?>
-<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>
-<?php endif; ?>
-
-<?php
 if ( current_user_can('edit_pages') ) {
        $action = 'post';
-       $post = get_default_post_to_edit();
-       $post->post_status = 'static';
+       $post = get_default_page_to_edit();
 
        include('edit-page-form.php');
 }
-?>
 
-<?php include('admin-footer.php'); ?> 
\ No newline at end of file
+include('admin-footer.php');
+
+?>