Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove return types.
  • Loading branch information
felixarntz committed Jan 18, 2024
commit 32a27c6e103a8a40f576557e5e8874e768de20dc
2 changes: 1 addition & 1 deletion src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4711,7 +4711,7 @@ function _mce_set_direction( $mce_init ) {
*
* @return bool True if it's a WordPress REST API request, false otherwise.
*/
function wp_is_serving_rest_request(): bool {
function wp_is_serving_rest_request() {
return defined( 'REST_REQUEST' ) && REST_REQUEST;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3401,7 +3401,7 @@ static function ( $status, $error_data ) {
*
* @return bool True if a REST endpoint request is currently being handled, false otherwise.
*/
function wp_is_rest_endpoint(): bool {
function wp_is_rest_endpoint() {
/* @var WP_REST_Server $wp_rest_server */
global $wp_rest_server;

Expand Down
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 @@ -1067,7 +1067,7 @@ public function dispatch( $request ) {
*
* @return bool Whether the REST server is currently handling a request.
*/
public function is_dispatching(): bool {
public function is_dispatching() {
return empty( $this->dispatching_requests );
}

Expand Down