Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

File:
1 edited

Legend:

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

    r54473 r54891  
    9494
    9595    $auto_update = false;
    96     $upgrader    = new WP_Automatic_Updater;
     96    $upgrader    = new WP_Automatic_Updater();
    9797    foreach ( $updates->updates as $update ) {
    9898        if ( 'autoupdate' !== $update->response ) {
     
    236236    $cur = get_preferred_from_update_core();
    237237    if ( ! is_object( $cur ) ) {
    238         $cur = new stdClass;
     238        $cur = new stdClass();
    239239    }
    240240
Note: See TracChangeset for help on using the changeset viewer.