Ticket #34936: 34936.2.diff
File 34936.2.diff, 1.7 KB (added by , 7 years ago) |
---|
-
src/wp-includes/load.php
183 183 // If the $upgrading timestamp is older than 10 minutes, don't die. 184 184 if ( ( time() - $upgrading ) >= 600 ) 185 185 return; 186 186 187 187 /** 188 188 * Bypass the maintenance mode check 189 189 * 190 190 * 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 192 192 * active which can cause problems during updates for web site views. 193 193 * 194 194 * @since 4.6.0 … … 196 196 * @param bool True to bypass maintenance 197 197 */ 198 198 if ( apply_filters( 'bypass_maintenance_mode', false ) ){ 199 return; 199 return; 200 200 } 201 201 202 202 if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) { … … 310 310 * 311 311 * @since 4.6.0 312 312 * 313 * @param bool True to bypass debug mode 313 * @param bool True to bypass debug mode 314 314 */ 315 315 if ( apply_filters( 'bypass_debug_mode', false ) ){ 316 return; 316 return; 317 317 } 318 318 319 319 if ( WP_DEBUG ) { -
tests/phpunit/tests/actions.php
364 364 _backup_plugin_globals(); 365 365 366 366 $wp_actions = array(); 367 367 368 368 $this->assertEmpty( $wp_actions ); 369 369 _restore_plugin_globals(); 370 370 … … 383 383 $a = new MockAction(); 384 384 $tag = rand_str(); 385 385 add_action($tag, array(&$a, 'action')); 386 386 387 387 $this->assertNotEquals( $GLOBALS['wp_filter'], $original_filter ); 388 388 389 389 _restore_plugin_globals();