Remove actions needed for local https development
moved to external plugin: https://code.event-federation.eu/Event-Federation/wordpress-localhost-https-development
This commit is contained in:
parent
17648dc664
commit
4cc992d79b
3 changed files with 2 additions and 38 deletions
|
@ -1,7 +1,7 @@
|
|||
# ActivityPub Event Bridge
|
||||
|
||||
Contributors: andremenrath
|
||||
Tags: events, fediverse, activitypub,, calendar
|
||||
Tags: events, fediverse, activitypub, calendar
|
||||
Requires at least: 6.5
|
||||
Tested up to: 6.6
|
||||
Stable tag: 0.1.0
|
||||
|
|
|
@ -34,39 +34,3 @@ ActivityPub_Event_Bridge\Autoloader::register();
|
|||
|
||||
// Initialize the plugin.
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
=== ActivityPub Event Bridge ===
|
||||
Contributors: andremenrath
|
||||
Tags: events, fediverse, activitypub, activitystreams, calendar
|
||||
Tags: events, fediverse, activitypub, calendar
|
||||
Requires at least: 6.5
|
||||
Tested up to: 6.6
|
||||
Stable tag: 0.1.0
|
||||
|
|
Loading…
Reference in a new issue