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/translation-install.php

    r52645 r54891  
    238238
    239239    require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    240     $skin              = new Automatic_Upgrader_Skin;
     240    $skin              = new Automatic_Upgrader_Skin();
    241241    $upgrader          = new Language_Pack_Upgrader( $skin );
    242242    $translation->type = 'core';
     
    264264
    265265    require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    266     $skin     = new Automatic_Upgrader_Skin;
     266    $skin     = new Automatic_Upgrader_Skin();
    267267    $upgrader = new Language_Pack_Upgrader( $skin );
    268268    $upgrader->init();
Note: See TracChangeset for help on using the changeset viewer.