Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wp_http_fetch.php #1002

Merged
merged 1 commit into from Feb 6, 2024
Merged

Update wp_http_fetch.php #1002

merged 1 commit into from Feb 6, 2024

Conversation

jdevalk
Copy link
Contributor

@jdevalk jdevalk commented Feb 6, 2024

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
5 checks passed
@adamziel
Copy link
Collaborator

adamziel commented Feb 6, 2024

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.

None yet

2 participants