Bring back h2 for add/edit post

git-svn-id: http://svn.automattic.com/wordpress/trunk@9221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-17 00:36:18 +00:00
parent ef41829f0d
commit d457e3d181
3 changed files with 4 additions and 3 deletions

View File

@ -465,7 +465,7 @@ endif;
<?php endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<form name="post" action="post.php" method="post" id="post">
<?php

View File

@ -8,7 +8,7 @@
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
$title = __('Write Post');
$title = __('Add New Post');
$parent_file = 'edit.php';
$editing = true;
wp_enqueue_script('autosave');

View File

@ -116,7 +116,6 @@ case 'post-quickpress-save':
break;
case 'edit':
$title = __('Edit Post');
$editing = true;
if ( empty( $_GET['post'] ) ) {
@ -155,6 +154,8 @@ case 'edit':
}
}
$title = sprintf(__('Edit "%s"'), wp_html_excerpt(_draft_or_post_title($post->ID), 50));
require_once('admin-header.php');
if ( !current_user_can('edit_post', $post_ID) )