From 034abb8710d1f670365b74fbe61c67d4900ee345 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 3 Mar 2014 19:49:03 +0000 Subject: [PATCH] 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 --- src/wp-admin/revision.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/revision.php b/src/wp-admin/revision.php index 818d13c2ff..7a201a4e9c 100644 --- a/src/wp-admin/revision.php +++ b/src/wp-admin/revision.php @@ -72,9 +72,11 @@ default : break; } - $post_title = '' . _draft_or_post_title() . ''; - $h2 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title ); - $title = __( 'Revisions' ); + $post_edit_link = get_edit_post_link(); + $post_title = '' . _draft_or_post_title() . ''; + $h2 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title ); + $return_to_post = '' . __( '← Return to post editor' ) . ''; + $title = __( 'Revisions' ); $redirect = false; break; @@ -125,6 +127,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

+