X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/41578db67d72562346e4dbb2a14889b23d522813..58b0523c599c731e868bd4bc05b0d686a98d254f:/wp-admin/revision.php diff --git a/wp-admin/revision.php b/wp-admin/revision.php index e4cc0c7d..0f48ef9a 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -29,7 +29,7 @@ if ( ! $revision_id ) $revision_id = absint( $to ); $redirect = 'edit.php'; -switch ( $action ) : +switch ( $action ) { case 'restore' : if ( ! $revision = wp_get_post_revision( $revision_id ) ) break; @@ -80,7 +80,7 @@ default : $redirect = false; break; -endswitch; +} // Empty post_type means either malformed object found, or no valid parent was found. if ( ! $redirect && empty( $post->post_type ) ) @@ -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 ); @@ -129,93 +129,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

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