From f97deae591ec47e72fa5f17c5b9afdd4dc2b8086 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 03:44:30 +0000 Subject: [PATCH] Remove unused variable setting for `$revisions` in `wp_prepare_revisions_for_js()`. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28264 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/revision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php index 737c3b1637..70c77c0dac 100644 --- a/src/wp-admin/includes/revision.php +++ b/src/wp-admin/includes/revision.php @@ -108,7 +108,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { */ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null ) { $post = get_post( $post ); - $revisions = $authors = array(); + $authors = array(); $now_gmt = time(); $revisions = wp_get_post_revisions( $post->ID, array( 'order' => 'ASC', 'check_enabled' => false ) );