Remove actions needed for local https development
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 47s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m12s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 1m0s

moved to external plugin: https://code.event-federation.eu/Event-Federation/wordpress-localhost-https-development
This commit is contained in:
André Menrath 2024-10-03 15:30:00 +02:00
parent 17648dc664
commit 4cc992d79b
3 changed files with 2 additions and 38 deletions

View file

@ -1,7 +1,7 @@
# ActivityPub Event Bridge # ActivityPub Event Bridge
Contributors: andremenrath Contributors: andremenrath
Tags: events, fediverse, activitypub,, calendar Tags: events, fediverse, activitypub, calendar
Requires at least: 6.5 Requires at least: 6.5
Tested up to: 6.6 Tested up to: 6.6
Stable tag: 0.1.0 Stable tag: 0.1.0

View file

@ -34,39 +34,3 @@ ActivityPub_Event_Bridge\Autoloader::register();
// Initialize the plugin. // Initialize the plugin.
ActivityPub_Event_Bridge\Setup::get_instance(); ActivityPub_Event_Bridge\Setup::get_instance();
// BeforeFirstRelease: Remove everything after this after here.
/**
* Add a filter for http_request_host_is_external
*
* BeforeFirstRelease: Remove this for release.
*/
add_filter( 'http_request_host_is_external', 'activitypub_event_bridge_custom_http_request_host_is_external', 10, 3 );
/**
* Add a filter for http_request_host_is_external
*
* BeforeFirstRelease: Remove this for release.
*
* @param bool $is_external Whether the request is external.
*/
function activitypub_event_bridge_custom_http_request_host_is_external( $is_external ) {
$is_external = true;
return $is_external;
}
/**
* Don't verify ssl certs for testing.
*
* BeforeFirstRelease: Remove this for release.
*/
add_filter( 'https_ssl_verify', 'activitypub_event_bridge_dont_verify_local_dev_https', 10, 3 );
/**
* BeforeFirstRelease: remove it.
*/
function activitypub_event_bridge_dont_verify_local_dev_https() {
return false;
}

View file

@ -1,6 +1,6 @@
=== ActivityPub Event Bridge === === ActivityPub Event Bridge ===
Contributors: andremenrath Contributors: andremenrath
Tags: events, fediverse, activitypub, activitystreams, calendar Tags: events, fediverse, activitypub, calendar
Requires at least: 6.5 Requires at least: 6.5
Tested up to: 6.6 Tested up to: 6.6
Stable tag: 0.1.0 Stable tag: 0.1.0