From abe142d2c699c8665f7b8c85fb516fe914990197 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 3 Mar 2014 19:50:15 +0000 Subject: [PATCH] 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 --- wp-admin/revision.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-admin/revision.php b/wp-admin/revision.php index 818d13c2ff..7a201a4e9c 100644 --- a/wp-admin/revision.php +++ b/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' );

+