Skip to content

Commit 7ffc6d0

Browse files
committed
Put the preview anchors on the h2. Props: markjaquith fixes WordPress#1765
git-svn-id: https://develop.svn.wordpress.org/trunk@2973 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6eacdcf commit 7ffc6d0

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

wp-admin/edit-form-advanced.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
<form name="post" action="post.php" method="post" id="post">
1111

1212
<div class="wrap">
13-
<a id="write-post"></a>
14-
<h2><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
13+
<h2 id="write-post"><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
1514
<small class="quickjump"><a href="#preview-post"><?php _e('preview &darr;'); ?></a></small><?php endif; ?></h2>
1615
<?php
1716

wp-admin/edit-page-form.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
<div class="wrap">
3-
<h2><?php _e('Write Page'); ?></h2>
3+
<h2 id="write-post"><?php _e('Write Page'); ?><?php if ( 0 != $post_ID ) : ?>
4+
<small class="quickjump"><a href="#preview-post"><?php _e('preview &darr;'); ?></a></small><?php endif; ?></h2>
45
<?php
56
if (0 == $post_ID) {
67
$form_action = 'post';

wp-admin/post.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878

7979
?>
8080
<div id='preview' class='wrap'>
81-
<a id="preview-post"></a>
82-
<h2><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
81+
<h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
8382
<iframe src="<?php the_permalink(); ?>" width="100%" height="600" />
8483
</div>
8584
<?php

0 commit comments

Comments
 (0)