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/tests/phpunit/tests/adminbar.php

    r54088 r54891  
    3838        register_post_type( 'content', array( 'show_in_admin_bar' => true ) );
    3939
    40         $admin_bar = new WP_Admin_Bar;
     40        $admin_bar = new WP_Admin_Bar();
    4141
    4242        wp_admin_bar_new_content_menu( $admin_bar );
     
    5555        wp_set_current_user( self::$editor_id );
    5656
    57         $admin_bar = new WP_Admin_Bar;
     57        $admin_bar = new WP_Admin_Bar();
    5858
    5959        $admin_bar->add_node(
Note: See TracChangeset for help on using the changeset viewer.