Make WordPress Core

Ticket #34936: 34936.2.diff

File 34936.2.diff, 1.7 KB (added by kraftbj, 7 years ago)

Minor whitespace trimming

  • src/wp-includes/load.php

     
    183183        // If the $upgrading timestamp is older than 10 minutes, don't die.
    184184        if ( ( time() - $upgrading ) >= 600 )
    185185                return;
    186        
     186
    187187        /**
    188188         * Bypass the maintenance mode check
    189189         *
    190190         * This filter should *NOT* be used by plugins. It is designed for non-web
    191          * runtimes. If this filter returns true, maintenance mode will not be 
     191         * runtimes. If this filter returns true, maintenance mode will not be
    192192         * active which can cause problems during updates for web site views.
    193193         *
    194194         * @since 4.6.0
     
    196196         * @param bool True to bypass maintenance
    197197         */
    198198        if ( apply_filters( 'bypass_maintenance_mode', false ) ){
    199                 return; 
     199                return;
    200200        }
    201201
    202202        if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) {
     
    310310         *
    311311         * @since 4.6.0
    312312         *
    313          * @param bool True to bypass debug mode 
     313         * @param bool True to bypass debug mode
    314314         */
    315315        if ( apply_filters( 'bypass_debug_mode', false ) ){
    316                 return; 
     316                return;
    317317        }
    318318
    319319        if ( WP_DEBUG ) {
  • tests/phpunit/tests/actions.php

     
    364364                _backup_plugin_globals();
    365365
    366366                $wp_actions = array();
    367                
     367
    368368                $this->assertEmpty( $wp_actions );
    369369                _restore_plugin_globals();
    370370
     
    383383                $a = new MockAction();
    384384                $tag = rand_str();
    385385                add_action($tag, array(&$a, 'action'));
    386                
     386
    387387                $this->assertNotEquals( $GLOBALS['wp_filter'], $original_filter );
    388388
    389389                _restore_plugin_globals();