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:
parent
bc55996a0b
commit
b8dd1f9c69
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue