Revisions: Add 'Return to post editor' link.
props adamsilverstein, jenmylo. fixes #24682. Built from https://develop.svn.wordpress.org/trunk@27383 git-svn-id: http://core.svn.wordpress.org/trunk@27231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0523624d31
commit
abe142d2c6
|
@ -72,8 +72,10 @@ default :
|
|||
break;
|
||||
}
|
||||
|
||||
$post_title = '<a href="' . get_edit_post_link() . '">' . _draft_or_post_title() . '</a>';
|
||||
$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;
|
||||
|
@ -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