updated plugin ActivityPub version 3.3.3

This commit is contained in:
2024-10-09 12:44:17 +00:00
committed by Gitium
parent fb4b27bbc6
commit c54fa007bd
106 changed files with 7070 additions and 2918 deletions

View File

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