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:
parent
ef41829f0d
commit
d457e3d181
|
@ -465,7 +465,7 @@ endif;
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
<h2><?php echo $title ?></h2>
|
||||||
<form name="post" action="post.php" method="post" id="post">
|
<form name="post" action="post.php" method="post" id="post">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
/** Load WordPress Administration Bootstrap */
|
/** Load WordPress Administration Bootstrap */
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
$title = __('Write Post');
|
$title = __('Add New Post');
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'edit.php';
|
||||||
$editing = true;
|
$editing = true;
|
||||||
wp_enqueue_script('autosave');
|
wp_enqueue_script('autosave');
|
||||||
|
|
|
@ -116,7 +116,6 @@ case 'post-quickpress-save':
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'edit':
|
case 'edit':
|
||||||
$title = __('Edit Post');
|
|
||||||
$editing = true;
|
$editing = true;
|
||||||
|
|
||||||
if ( empty( $_GET['post'] ) ) {
|
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');
|
require_once('admin-header.php');
|
||||||
|
|
||||||
if ( !current_user_can('edit_post', $post_ID) )
|
if ( !current_user_can('edit_post', $post_ID) )
|
||||||
|
|
Loading…
Reference in New Issue