Make WordPress Core

Changeset 31213


Ignore:
Timestamp:
01/16/2015 07:12:15 PM (10 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r31160 r31213  
    557557    $done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat");
    558558    if ($done_ids) :
     559        $done_posts = array();
    559560        foreach ($done_ids as $done_id) :
    560561            $done_posts[] = $done_id->post_id;
Note: See TracChangeset for help on using the changeset viewer.