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

@ -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 =