Make WordPress Core

Ticket #42808: 42808.diff

File 42808.diff, 3.0 KB (added by netweb, 7 years ago)
  • tests/phpunit/tests/customize/control.php

     
    2828                parent::setUp();
    2929                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
    3030                require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    31                 // @codingStandardsIgnoreStart
    3231                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    33                 // @codingStandardsIgnoreEnd
    34                 $this->wp_customize = $GLOBALS['wp_customize'];
     32                $this->wp_customize      = $GLOBALS['wp_customize'];
    3533        }
    3634
    3735        /**
  • tests/phpunit/tests/customize/partial.php

     
    3232        function setUp() {
    3333                parent::setUp();
    3434                require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    35                 // @codingStandardsIgnoreStart
    3635                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    37                 // @codingStandardsIgnoreEnd
    38                 $this->wp_customize = $GLOBALS['wp_customize'];
     36                $this->wp_customize      = $GLOBALS['wp_customize'];
    3937                if ( isset( $this->wp_customize->selective_refresh ) ) {
    4038                        $this->selective_refresh = $this->wp_customize->selective_refresh;
    4139                }
  • tests/phpunit/tests/customize/selective-refresh-ajax.php

     
    4242                add_filter( 'wp_die_ajax_handler', array( $this, 'get_wp_die_handler' ), 1, 1 );
    4343
    4444                require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    45                 // @codingStandardsIgnoreStart
    4645                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    47                 // @codingStandardsIgnoreEnd
    48                 $this->wp_customize = $GLOBALS['wp_customize'];
     46                $this->wp_customize      = $GLOBALS['wp_customize'];
    4947                if ( isset( $this->wp_customize->selective_refresh ) ) {
    5048                        $this->selective_refresh = $this->wp_customize->selective_refresh;
    5149                }
  • tests/phpunit/tests/customize/selective-refresh.php

     
    3232        function setUp() {
    3333                parent::setUp();
    3434                require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    35                 // @codingStandardsIgnoreStart
    3635                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    37                 // @codingStandardsIgnoreEnd
    38                 $this->wp_customize = $GLOBALS['wp_customize'];
     36                $this->wp_customize      = $GLOBALS['wp_customize'];
    3937                if ( isset( $this->wp_customize->selective_refresh ) ) {
    4038                        $this->selective_refresh = $this->wp_customize->selective_refresh;
    4139                }