From d29abb1d2428e0e8628796b447b4c86fc849bb26 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Jan 2015 19:12:15 +0000 Subject: [PATCH] By initializing this array before a loop, Scrutinizer reports 0 (zero) "Coding Style" errors. There are plenty of other kinds of errors, but this label will be cleared out. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31213 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 0c7c1ecccd..b2354a7940 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -556,6 +556,7 @@ function upgrade_100() { $done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat"); if ($done_ids) : + $done_posts = array(); foreach ($done_ids as $done_id) : $done_posts[] = $done_id->post_id; endforeach;