mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-03 09:21:03 +01:00
cc7c443f62
git-svn-id: http://svn.automattic.com/wordpress/trunk@9620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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');
|
|
|
|
?>
|