modified file plugins

This commit is contained in:
2024-10-09 12:44:43 +00:00
committed by Gitium
parent cd379e1d95
commit e13bab0b76
1784 changed files with 325846 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace Activitypub;
/**
* Allow localhost URLs if WP_DEBUG is true.
*
* @param array $r Array of HTTP request args.
* @param string $url The request URL.
*
* @return array Array or string of HTTP request arguments.
*/
function allow_localhost( $r, $url ) {
$r['reject_unsafe_urls'] = false;
return $r;
}
add_filter( 'http_request_args', '\Activitypub\allow_localhost', 10, 2 );