2004-11-16 19:29:51 +00:00
|
|
|
<?php
|
2008-08-16 07:27:34 +00:00
|
|
|
/**
|
|
|
|
* New page administration panel.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** WordPress Administration Bootstrap */
|
2004-11-16 19:29:51 +00:00
|
|
|
require_once('admin.php');
|
2008-10-17 20:02:03 +00:00
|
|
|
$title = __('Add New Page');
|
2008-09-25 19:33:53 +00:00
|
|
|
$parent_file = 'edit-pages.php';
|
2005-07-23 06:22:48 +00:00
|
|
|
$editing = true;
|
2006-08-11 03:54:45 +00:00
|
|
|
wp_enqueue_script('autosave');
|
2008-02-08 19:57:50 +00:00
|
|
|
wp_enqueue_script('page');
|
2008-02-18 17:11:12 +00:00
|
|
|
if ( user_can_richedit() )
|
|
|
|
wp_enqueue_script('editor');
|
2008-06-02 21:46:25 +00:00
|
|
|
add_thickbox();
|
2008-01-25 23:11:54 +00:00
|
|
|
wp_enqueue_script('media-upload');
|
2008-04-29 19:17:23 +00:00
|
|
|
wp_enqueue_script('word-count');
|
2008-01-25 23:11:54 +00:00
|
|
|
|
2005-07-15 02:16:45 +00:00
|
|
|
if ( current_user_can('edit_pages') ) {
|
2004-11-16 19:29:51 +00:00
|
|
|
$action = 'post';
|
2008-02-02 19:22:14 +00:00
|
|
|
$post = get_default_page_to_edit();
|
2004-11-16 19:29:51 +00:00
|
|
|
|
|
|
|
include('edit-page-form.php');
|
|
|
|
}
|
|
|
|
|
2008-11-11 22:40:16 +00:00
|
|
|
include('admin-footer.php');
|
|
|
|
|
|
|
|
?>
|