apache
wp-content
mu-plugins
plugins
activitypub
assets
includes
model
peer
rest
table
class-activity-dispatcher.php
class-activitypub.php
class-admin.php
class-debug.php
class-hashtag.php
class-health-check.php
class-mention.php
class-shortcodes.php
class-signature.php
class-webfinger.php
debug.php
functions.php
help.php
integration
templates
.distignore
LICENSE
activitypub.php
readme.txt
audioigniter
authldap
companion-auto-update
easy-digital-downloads
gitium
gp-premium
jetpack-protect
menu-icons
simple-local-avatars
smtp-mailer
two-factor
w3-total-cache
wp-piwik
wp-webauthn
index.php
themes
index.php
.dbsetup
.gitignore
htaccess
php.ini
17 lines
404 B
PHP
17 lines
404 B
PHP
<?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 );
|