modified file plugins

This commit is contained in:
2024-10-09 12:44:43 +00:00
committed by Gitium
父節點 cd379e1d95
當前提交 e13bab0b76
共有 1784 個文件被更改,包括 325846 次插入0 次删除

查看文件

@ -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 );