7f00d29121
git-svn-id: https://develop.svn.wordpress.org/trunk@9620 602fd350-edb4-49c9-b593-d223f7449a82
32 lines
617 B
PHP
32 lines
617 B
PHP
<?php
|
|
/**
|
|
* New page administration panel.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
/** WordPress Administration Bootstrap */
|
|
require_once('admin.php');
|
|
$title = __('Add New Page');
|
|
$parent_file = 'edit-pages.php';
|
|
$editing = true;
|
|
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');
|
|
|
|
if ( current_user_can('edit_pages') ) {
|
|
$action = 'post';
|
|
$post = get_default_page_to_edit();
|
|
|
|
include('edit-page-form.php');
|
|
}
|
|
|
|
include('admin-footer.php');
|
|
|
|
?>
|