]> 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 70d76e1df958b301969dbc2e3aede4fe9959e782..c73c7fcba8986a715623454d9dbdd4ab6661fcce 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('post');
+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.') ?></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>
-<?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'); ?>
+include('admin-footer.php');
+
+?>