mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 12:20:25 +01:00
a14b59e7f0
git-svn-id: http://svn.automattic.com/wordpress/trunk@3726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
23 lines
682 B
PHP
23 lines
682 B
PHP
<?php
|
|
require_once('admin.php');
|
|
$title = __('New Page');
|
|
$parent_file = 'post-new.php';
|
|
$editing = true;
|
|
require_once('admin-header.php');
|
|
?>
|
|
|
|
<?php if ( isset($_GET['saved']) || isset($_GET['posted']) ) : ?>
|
|
<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_bloginfo('home') . '/'; ?>"><?php _e('View site') ; ?> »</a></strong></p></div>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
if ( current_user_can('edit_pages') ) {
|
|
$action = 'post';
|
|
$post = get_default_post_to_edit();
|
|
$post->post_type = 'page';
|
|
|
|
include('edit-page-form.php');
|
|
}
|
|
?>
|
|
|
|
<?php include('admin-footer.php'); ?>
|