Revisions: Add 'Return to post editor' link.
props adamsilverstein, jenmylo. fixes #24682. git-svn-id: https://develop.svn.wordpress.org/trunk@27383 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d1c6cd4251
commit
034abb8710
|
@ -72,9 +72,11 @@ default :
|
|||
break;
|
||||
}
|
||||
|
||||
$post_title = '<a href="' . get_edit_post_link() . '">' . _draft_or_post_title() . '</a>';
|
||||
$h2 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title );
|
||||
$title = __( 'Revisions' );
|
||||
$post_edit_link = get_edit_post_link();
|
||||
$post_title = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
|
||||
$h2 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title );
|
||||
$return_to_post = '<a href="' . $post_edit_link . '">' . __( '← Return to post editor' ) . '</a>';
|
||||
$title = __( 'Revisions' );
|
||||
|
||||
$redirect = false;
|
||||
break;
|
||||
|
@ -125,6 +127,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
|
||||
<div class="wrap">
|
||||
<h2 class="long-header"><?php echo $h2; ?></h2>
|
||||
<?php echo $return_to_post; ?>
|
||||
</div>
|
||||
|
||||
<script id="tmpl-revisions-frame" type="text/html">
|
||||
|
|
Loading…
Reference in New Issue