Skip to content
Closed
Prev Previous commit
Use bool cast instead of ! empty check.
  • Loading branch information
felixarntz committed Jan 19, 2024
commit e09b4a0c1d05b9ecd812c2ce0f5a07a300910f5e
2 changes: 1 addition & 1 deletion src/wp-includes/rest-api/class-wp-rest-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ public function dispatch( $request ) {
* @return bool Whether the REST server is currently handling a request.
*/
public function is_dispatching() {
return ! empty( $this->dispatching_requests );
return (bool) $this->dispatching_requests;
}

/**
Expand Down