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
This commit is contained in:
parent
5743898e1e
commit
d29abb1d24
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user