We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c8c29 commit a0018feCopy full SHA for a0018fe
classes/wp-background-process.php
@@ -606,7 +606,10 @@ protected function time_exceeded() {
606
$finish = $this->start_time + apply_filters( $this->identifier . '_default_time_limit', 20 ); // 20 seconds
607
$return = false;
608
609
- if ( time() >= $finish ) {
+ if (
610
+ ! ( defined( 'WP_CLI' ) && WP_CLI ) &&
611
+ time() >= $finish
612
+ ) {
613
$return = true;
614
}
615
0 commit comments