2004-11-16 14:29:51 -05:00
|
|
|
<?php
|
|
|
|
require_once('admin.php');
|
2006-11-18 02:31:29 -05:00
|
|
|
$title = __('New Page');
|
|
|
|
$parent_file = 'post-new.php';
|
2005-07-23 02:22:48 -04:00
|
|
|
$editing = true;
|
2006-08-10 23:54:45 -04:00
|
|
|
wp_enqueue_script('autosave');
|
2008-02-08 14:57:50 -05:00
|
|
|
wp_enqueue_script('page');
|
2008-02-18 12:11:12 -05:00
|
|
|
if ( user_can_richedit() )
|
|
|
|
wp_enqueue_script('editor');
|
2008-06-02 17:46:25 -04:00
|
|
|
add_thickbox();
|
2008-01-25 18:11:54 -05:00
|
|
|
wp_enqueue_script('media-upload');
|
2008-04-29 15:17:23 -04:00
|
|
|
wp_enqueue_script('word-count');
|
2008-01-25 18:11:54 -05:00
|
|
|
|
2004-11-16 14:29:51 -05:00
|
|
|
require_once('admin-header.php');
|
|
|
|
?>
|
|
|
|
|
2006-10-04 09:16:07 -04:00
|
|
|
<?php if ( (isset($_GET['posted']) && $_GET['posted']) || isset($_GET['saved']) ) : ?>
|
2008-02-20 14:30:55 -05:00
|
|
|
<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?></a></p></div>
|
2004-11-16 14:29:51 -05:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
2005-07-14 22:16:45 -04:00
|
|
|
if ( current_user_can('edit_pages') ) {
|
2004-11-16 14:29:51 -05:00
|
|
|
$action = 'post';
|
2008-02-02 14:22:14 -05:00
|
|
|
$post = get_default_page_to_edit();
|
2004-11-16 14:29:51 -05:00
|
|
|
|
|
|
|
include('edit-page-form.php');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2007-09-03 19:32:58 -04:00
|
|
|
<?php include('admin-footer.php'); ?>
|