diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-admin/revision.php --- a/wp/wp-admin/revision.php Mon Jun 08 16:11:51 2015 +0000 +++ b/wp/wp-admin/revision.php Tue Jun 09 03:35:32 2015 +0200 @@ -29,7 +29,7 @@ $revision_id = absint( $to ); $redirect = 'edit.php'; -switch ( $action ) : +switch ( $action ) { case 'restore' : if ( ! $revision = wp_get_post_revision( $revision_id ) ) break; @@ -72,13 +72,15 @@ 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; -endswitch; +} // Empty post_type means either malformed object found, or no valid parent was found. if ( ! $redirect && empty( $post->post_type ) ) @@ -114,8 +116,8 @@ ) ); $revisions_sidebar = '

' . __( 'For more information:' ) . '

'; -$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; -$revisions_sidebar .= '

' . __( 'Support Forums' ) . '

'; +$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; +$revisions_sidebar .= '

' . __( 'Support Forums' ) . '

'; get_current_screen()->set_help_sidebar( $revisions_sidebar ); @@ -124,96 +126,10 @@ ?>
-

+
- - - - - - + - <# if ( ! _.isUndefined( data.attributes ) ) { #> -
- <# if ( 'from' === data.type ) { #> - - <# } else if ( 'to' === data.type ) { #> - - <# } #> -
- {{{ data.attributes.author.avatar }}} -
- <# if ( data.attributes.autosave ) { #> - ' ); ?> - <# } else if ( data.attributes.current ) { #> - ' ); ?> - <# } else { #> - ' ); ?> - <# } #> - {{ data.attributes.timeAgo }} - ({{ data.attributes.dateShort }}) -
- <# if ( 'to' === data.type && data.attributes.restoreUrl ) { #> - ID ) ) { ?> - disabled="disabled" - - <# if ( data.attributes.current ) { #> - disabled="disabled" - <# } #> - - <# if ( data.attributes.autosave ) { #> - type="button" class="restore-revision button button-primary" value="" /> - <# } else { #> - type="button" class="restore-revision button button-primary" value="" /> - <# } #> - <# } #> -
- <# if ( 'tooltip' === data.type ) { #> -
- <# } #> -<# } #> - - - - - -