]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/page-new.php
Wordpress 2.8.4
[autoinstalls/wordpress.git] / wp-admin / page-new.php
1 <?php
2 /**
3  * New page administration panel.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** WordPress Administration Bootstrap */
10 require_once('admin.php');
11 $title = __('Add New Page');
12 $parent_file = 'edit-pages.php';
13 $editing = true;
14 wp_enqueue_script('autosave');
15 wp_enqueue_script('page');
16 if ( user_can_richedit() )
17         wp_enqueue_script('editor');
18 add_thickbox();
19 wp_enqueue_script('media-upload');
20 wp_enqueue_script('word-count');
21
22 if ( current_user_can('edit_pages') ) {
23         $action = 'post';
24         $post = get_default_page_to_edit();
25
26         include('edit-page-form.php');
27 }
28
29 include('admin-footer.php');
30
31 ?>