mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
bc07ef1efe
git-svn-id: http://svn.automattic.com/wordpress/trunk@7961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
30 lines
900 B
PHP
30 lines
900 B
PHP
<?php
|
|
require_once('admin.php');
|
|
$title = __('New Page');
|
|
$parent_file = 'post-new.php';
|
|
$editing = true;
|
|
wp_enqueue_script('autosave');
|
|
wp_enqueue_script('page');
|
|
if ( user_can_richedit() )
|
|
wp_enqueue_script('editor');
|
|
wp_enqueue_script('media-upload');
|
|
wp_enqueue_script('word-count');
|
|
|
|
require_once('admin-header.php');
|
|
?>
|
|
|
|
<?php if ( (isset($_GET['posted']) && $_GET['posted']) || isset($_GET['saved']) ) : ?>
|
|
<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>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
if ( current_user_can('edit_pages') ) {
|
|
$action = 'post';
|
|
$post = get_default_page_to_edit();
|
|
|
|
include('edit-page-form.php');
|
|
}
|
|
?>
|
|
|
|
<?php include('admin-footer.php'); ?>
|