mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 16:45:31 +01:00
1c1c71b436
git-svn-id: http://svn.automattic.com/wordpress/trunk@1857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
30 lines
756 B
PHP
30 lines
756 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();
|
|
//set defaults
|
|
$post_status = 'static';
|
|
$comment_status = get_settings('default_comment_status');
|
|
$ping_status = get_settings('default_ping_status');
|
|
$post_pingback = get_settings('default_pingback_flag');
|
|
$post_parent = 0;
|
|
$page_template = 'default';
|
|
|
|
include('edit-page-form.php');
|
|
}
|
|
?>
|
|
|
|
<?php include('admin-footer.php'); ?>
|