Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (19 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/tests/phpunit/tests/dependencies/jquery.php

    r52010 r54891  
    1111     */
    1212    public function test_location_of_jquery() {
    13         $scripts = new WP_Scripts;
     13        $scripts = new WP_Scripts();
    1414        wp_default_scripts( $scripts );
    1515
     
    107107     */
    108108    public function test_jquery_in_footer() {
    109         $scripts = new WP_Scripts;
     109        $scripts = new WP_Scripts();
    110110        $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ) );
    111111        $scripts->add( 'jquery-core', '/jquery.js', array() );
Note: See TracChangeset for help on using the changeset viewer.