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/user-edit.php

    r53752 r54891  
    105105    $new_email = get_user_meta( $current_user->ID, '_new_email', true );
    106106    if ( $new_email && hash_equals( $new_email['hash'], $_GET['newuseremail'] ) ) {
    107         $user             = new stdClass;
     107        $user             = new stdClass();
    108108        $user->ID         = $current_user->ID;
    109109        $user->user_email = esc_html( trim( $new_email['newemail'] ) );
Note: See TracChangeset for help on using the changeset viewer.