Line | |
---|
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 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.