mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
4cb88cef6e
git-svn-id: http://svn.automattic.com/wordpress/trunk@2652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
26 lines
568 B
PHP
26 lines
568 B
PHP
<?php
|
|
require_once('admin.php');
|
|
$title = __('New Page');
|
|
$parent_file = 'post.php';
|
|
require_once('admin-header.php');
|
|
|
|
get_currentuserinfo();
|
|
?>
|
|
|
|
<?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 ($user_level > 0) {
|
|
$action = 'post';
|
|
get_currentuserinfo();
|
|
|
|
$post = get_default_post_to_edit();
|
|
$post->post_status = 'static';
|
|
|
|
include('edit-page-form.php');
|
|
}
|
|
?>
|
|
|
|
<?php include('admin-footer.php'); ?>
|