Skip to content

Commit

Permalink
[WordPress] Surpress the error messages for http_api_transports hook
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Oct 16, 2024
1 parent 07fb8ba commit 2e48fa7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/playground/wordpress/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@ export async function setupPlatformLevelMuPlugins(php: UniversalPHP) {
if (strpos($message, "fit in a PHP integer") !== false) {
return;
}
/**
* Networking support in Playground registers a http_api_transports filter.
*
* This filter is deprecated, and no longer actively used, but is needed for wp_http_supports().
* @see https://core.trac.wordpress.org/ticket/37708
*/
if (
strpos($message, "http_api_transports") !== false &&
strpos($message, "since version 6.4.0 with no alternative available") !== false
) {
return;
}
/**
* Playground defines some constants upfront, and some of them may be redefined
* in wp-config.php. For example, SITE_URL or WP_DEBUG. This is expected and
Expand Down

0 comments on commit 2e48fa7

Please sign in to comment.