From aa7d1591c4009f6710bf04fe8d1ae7d4a9f1c46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 3 Jan 2024 19:31:01 +0100 Subject: [PATCH] Re-enable commented out testing code. --- activitypub-event-transformers.php | 48 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/activitypub-event-transformers.php b/activitypub-event-transformers.php index dff7545..406f069 100644 --- a/activitypub-event-transformers.php +++ b/activitypub-event-transformers.php @@ -40,31 +40,31 @@ add_filter( 3 ); -// /** -// * Add a filter for http_request_host_is_external -// * -// * TODO: Remove this. -// * -// * @todo This filter is temporary code needed to do local testing. -// */ -// add_filter( 'http_request_host_is_external', 'custom_http_request_host_is_external', 10, 3 ); +/** + * Add a filter for http_request_host_is_external + * + * TODO: Remove this. + * + * @todo This filter is temporary code needed to do local testing. + */ +add_filter( 'http_request_host_is_external', 'custom_http_request_host_is_external', 10, 3 ); -// // Your custom callback function -// function custom_http_request_host_is_external( $is_external, $host, $url ) { -// $is_external = true; +// Your custom callback function +function custom_http_request_host_is_external( $is_external, $host, $url ) { + $is_external = true; -// return $is_external; -// } + return $is_external; +} -// /** -// * Don't verify ssl certs for testing. -// * -// * TODO: Remove this. -// * -// * @todo This filter is temporary code needed to do local testing. -// */ -// add_filter( 'https_ssl_verify', 'dont_verify_local_dev_https', 10, 3 ); +/** + * Don't verify ssl certs for testing. + * + * TODO: Remove this. + * + * @todo This filter is temporary code needed to do local testing. + */ +add_filter( 'https_ssl_verify', 'dont_verify_local_dev_https', 10, 3 ); -// function dont_verify_local_dev_https( $url ) { -// return false; -// } +function dont_verify_local_dev_https( $url ) { + return false; +}