General: load plugin faster (#376)

Fixes #375

Related discussion: p1690454109597069-slack-C04TJ8P900J

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
This commit is contained in:
Jeremy Herve 2023-07-27 15:00:08 +02:00 committed by GitHub
parent 5fd61b98f6
commit ca5a3e24b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View file

@ -1,12 +1,12 @@
# ActivityPub # # ActivityPub #
**Contributors:** [automattic](https://profiles.wordpress.org/automattic/), [pfefferle](https://profiles.wordpress.org/pfefferle/), [mediaformat](https://profiles.wordpress.org/mediaformat/), [mattwiebe](https://profiles.wordpress.org/mattwiebe/), [akirk](https://profiles.wordpress.org/akirk/), [jeherve](https://profiles.wordpress.org/jeherve/), [nuriapena](https://profiles.wordpress.org/nuriapena/) **Contributors:** [automattic](https://profiles.wordpress.org/automattic/), [pfefferle](https://profiles.wordpress.org/pfefferle/), [mediaformat](https://profiles.wordpress.org/mediaformat/), [mattwiebe](https://profiles.wordpress.org/mattwiebe/), [akirk](https://profiles.wordpress.org/akirk/), [jeherve](https://profiles.wordpress.org/jeherve/), [nuriapena](https://profiles.wordpress.org/nuriapena/)
**Tags:** OStatus, fediverse, activitypub, activitystream **Tags:** OStatus, fediverse, activitypub, activitystream
**Requires at least:** 4.7 **Requires at least:** 4.7
**Tested up to:** 6.3 **Tested up to:** 6.3
**Stable tag:** 1.0.0 **Stable tag:** 1.0.0
**Requires PHP:** 5.6 **Requires PHP:** 5.6
**License:** MIT **License:** MIT
**License URI:** http://opensource.org/licenses/MIT **License URI:** http://opensource.org/licenses/MIT
The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format. The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
@ -126,6 +126,7 @@ Project maintained on GitHub at [automattic/wordpress-activitypub](https://githu
* Compatibility: Add hooks to allow modifying images returned in ActivityPub requests. * Compatibility: Add hooks to allow modifying images returned in ActivityPub requests.
* Compatibility: Indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.3. * Compatibility: Indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.3.
* Compatibility: Avoid PHP notice on sites using PHP 8.2. * Compatibility: Avoid PHP notice on sites using PHP 8.2.
* Fixed: Load the plugin later in the WordPress code lifecycle to avoid errors in some requests.
### 0.17.0 ### ### 0.17.0 ###

View file

@ -56,7 +56,7 @@ function init() {
Health_Check::init(); Health_Check::init();
Scheduler::init(); Scheduler::init();
} }
\add_action( 'plugins_loaded', __NAMESPACE__ . '\init' ); \add_action( 'init', __NAMESPACE__ . '\init' );
/** /**
* Class Autoloader * Class Autoloader

View file

@ -126,6 +126,7 @@ Project maintained on GitHub at [automattic/wordpress-activitypub](https://githu
* Compatibility: Add hooks to allow modifying images returned in ActivityPub requests. * Compatibility: Add hooks to allow modifying images returned in ActivityPub requests.
* Compatibility: Indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.3. * Compatibility: Indicate that the plugin is compatible and has been tested with the latest version of WordPress, 6.3.
* Compatibility: Avoid PHP notice on sites using PHP 8.2. * Compatibility: Avoid PHP notice on sites using PHP 8.2.
* Fixed: Load the plugin later in the WordPress code lifecycle to avoid errors in some requests.
= 0.17.0 = = 0.17.0 =