b81fef690d
git-svn-id: https://develop.svn.wordpress.org/trunk@2730 602fd350-edb4-49c9-b593-d223f7449a82
25 lines
578 B
PHP
25 lines
578 B
PHP
<?php
|
|
require_once('admin.php');
|
|
$title = __('New Page');
|
|
$parent_file = 'post.php';
|
|
$editing = true;
|
|
require_once('admin-header.php');
|
|
?>
|
|
|
|
<?php if ( isset($_GET['saved']) ) : ?>
|
|
<div class="updated"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> »</a></strong></p></div>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
if ( current_user_can('edit_pages') ) {
|
|
$action = 'post';
|
|
get_currentuserinfo();
|
|
|
|
$post = get_default_post_to_edit();
|
|
$post->post_status = 'static';
|
|
|
|
include('edit-page-form.php');
|
|
}
|
|
?>
|
|
|
|
<?php include('admin-footer.php'); ?>
|