X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..4feeb71a9d812a9ae371c28a3d8b442a4394ded7:/wp-admin/revision.php?ds=sidebyside diff --git a/wp-admin/revision.php b/wp-admin/revision.php index ba954b85..d63b26bb 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -63,7 +63,7 @@ default : if ( ! $post = get_post( $revision->post_parent ) ) break; - if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'read_post', $post->ID ) ) + if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) ) break; // Revisions disabled and we're not looking at an autosave @@ -74,8 +74,8 @@ default : $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' ) . ''; + $h1 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title ); + $return_to_post = '' . __( '← Return to editor' ) . ''; $title = __( 'Revisions' ); $redirect = false; @@ -116,7 +116,7 @@ get_current_screen()->add_help_tab( array( ) ); $revisions_sidebar = '

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

'; -$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; +$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; $revisions_sidebar .= '

' . __( 'Support Forums' ) . '

'; get_current_screen()->set_help_sidebar( $revisions_sidebar ); @@ -126,96 +126,10 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

+

- - - - - - - - - - - -