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:
Andrew Nacin 2014-03-03 19:49:03 +00:00
parent d1c6cd4251
commit 034abb8710
1 changed files with 6 additions and 3 deletions

View File

@ -72,9 +72,11 @@ default :
break;
}
$post_title = '<a href="' . get_edit_post_link() . '">' . _draft_or_post_title() . '</a>';
$h2 = sprintf( __( 'Compare Revisions of &#8220;%1$s&#8221;' ), $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 &#8220;%1$s&#8221;' ), $post_title );
$return_to_post = '<a href="' . $post_edit_link . '">' . __( '&larr; 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">