Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (23 months 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/class-wp-site-health-auto-updates.php

    r54872 r54891  
    281281        }
    282282
    283         $skin    = new Automatic_Upgrader_Skin;
     283        $skin    = new Automatic_Upgrader_Skin();
    284284        $success = $skin->request_filesystem_credentials( false, ABSPATH );
    285285
     
    314314        require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
    315315
    316         $skin    = new Automatic_Upgrader_Skin;
     316        $skin    = new Automatic_Upgrader_Skin();
    317317        $success = $skin->request_filesystem_credentials( false, ABSPATH );
    318318
Note: See TracChangeset for help on using the changeset viewer.