updated plugin ActivityPub
version 0.13.0
This commit is contained in:
16
wp-content/plugins/activitypub/includes/debug.php
Normal file
16
wp-content/plugins/activitypub/includes/debug.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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 $args 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 );
|
Reference in New Issue
Block a user