Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (18 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/image-edit.php

    r54226 r54891  
    740740    $old_backup_sizes = $backup_sizes;
    741741    $restored         = false;
    742     $msg              = new stdClass;
     742    $msg              = new stdClass();
    743743
    744744    if ( ! is_array( $backup_sizes ) ) {
     
    828828    $_wp_additional_image_sizes = wp_get_additional_image_sizes();
    829829
    830     $return  = new stdClass;
     830    $return  = new stdClass();
    831831    $success = false;
    832832    $delete  = false;
Note: See TracChangeset for help on using the changeset viewer.