From b8dd1f9c693984ea803f957cae68b284e25b5cfa Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Jan 2015 19:13:23 +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. Built from https://develop.svn.wordpress.org/trunk@31213 git-svn-id: http://core.svn.wordpress.org/trunk@31194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 0c7c1ecccd..b2354a7940 100644 --- a/wp-admin/includes/upgrade.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 68fafffcf4..6d856a1388 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31212'; +$wp_version = '4.2-alpha-31213'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.