Skip to content

Update wp_http_fetch.php - #1002

Merged
adamziel merged 1 commit into
WordPress:trunkfrom
jdevalk:patch-2
Feb 6, 2024
Merged

adamziel merged 1 commit into
WordPress:trunkfrom
jdevalk:patch-2

Conversation

@jdevalk

@jdevalk jdevalk commented Feb 6, 2024 •

Copy link
Copy Markdown
Contributor

Using '' instead of null to prevent the following error:

{
“type”:“deprecated”,
“message”:“http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated”,“file”:“wp-content/mu-plugins/playground-includes/wp_http_fetch.php”,“line”:113,“stack”:[“http_build_query()“,”Wp_Http_Fetch_Base::format_get()“,”Wp_Http_Fetch_Base->request()“,”WpOrg\Requests\Requests::request()“,”WP_Http->request()“,”WP_Http->get()“,”wp_remote_get()“,”WP_Community_Events->get_events()“,”wp_ajax_get_community_events()“,”do_action(‘wp_ajax_get-community-events’)“],“component”:“MU Plugin: playground-includes”
}

Using `''` instead of `null` to prevent the following error:

```json
{
“type”:“deprecated”,
“message”:“http_build_query(): Passing null to parameter WordPress#2 ($numeric_prefix) of type string is deprecated”,“file”:“wp-content/mu-plugins/playground-includes/wp_http_fetch.php”,“line”:113,“stack”:[“http_build_query()“,”Wp_Http_Fetch_Base::format_get()“,”Wp_Http_Fetch_Base->request()“,”WpOrg\Requests\Requests::request()“,”WP_Http->request()“,”WP_Http->get()“,”wp_remote_get()“,”WP_Community_Events->get_events()“,”wp_ajax_get_community_events()“,”do_action(‘wp_ajax_get-community-events’)“],“component”:“MU Plugin: playground-includes”
}
```
@adamziel
adamziel merged commit 204b90b into WordPress:trunk Feb 6, 2024
@adamziel

adamziel commented Feb 6, 2024

Copy link
Copy Markdown
Collaborator

Thank you @jdevalk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants