2004-11-16 14:29:51 -05:00
|
|
|
<?php
|
|
|
|
require_once('admin.php');
|
|
|
|
$title = __('New Page');
|
|
|
|
$parent_file = 'post.php';
|
2005-07-23 02:22:48 -04:00
|
|
|
$editing = true;
|
2004-11-16 14:29:51 -05:00
|
|
|
require_once('admin-header.php');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if ( isset($_GET['saved']) ) : ?>
|
2005-08-07 21:13:22 -04:00
|
|
|
<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> »</a></strong></p></div>
|
2004-11-16 14:29:51 -05:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
2005-07-14 22:16:45 -04:00
|
|
|
if ( current_user_can('edit_pages') ) {
|
2004-11-16 14:29:51 -05:00
|
|
|
$action = 'post';
|
2005-06-18 23:07:16 -04:00
|
|
|
$post = get_default_post_to_edit();
|
|
|
|
$post->post_status = 'static';
|
2004-11-16 14:29:51 -05:00
|
|
|
|
|
|
|
include('edit-page-form.php');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php include('admin-footer.php'); ?>
|