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
This commit is contained in:
Scott Taylor 2015-01-16 19:13:23 +00:00
parent bc55996a0b
commit b8dd1f9c69
2 changed files with 2 additions and 1 deletions

View File

@ -556,6 +556,7 @@ function upgrade_100() {
$done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat"); $done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat");
if ($done_ids) : if ($done_ids) :
$done_posts = array();
foreach ($done_ids as $done_id) : foreach ($done_ids as $done_id) :
$done_posts[] = $done_id->post_id; $done_posts[] = $done_id->post_id;
endforeach; endforeach;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.