Make WordPress Core

Ticket #1765: preview-link-fix.diff

File preview-link-fix.diff, 1.7 KB (added by markjaquith, 21 years ago)

puts the anchors on the <h2>s

  • post.php

     
    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
  • edit-page-form.php

     
    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
    56if (0 == $post_ID) {
    67        $form_action = 'post';
  • edit-form-advanced.php

     
    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