Skip to content

Commit cd19a05

Browse files
committed
Add comment on plugin activation
1 parent 11820d7 commit cd19a05

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

example-plugin.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ function example_plugin($instance = false) {
2626

2727
add_action('plugins_loaded', function() {
2828

29-
/**
30-
* Don't load during plugin activation: the newest version of Framework is
31-
* not guaranteed due to how WordPress runs the `plugins_loaded` action *before*
32-
* loading plugins and modules, short-circuiting the version comparison logic.
33-
* @see https://developer.wordpress.org/reference/functions/register_activation_hook/#more-information
34-
* @see https://github.com/WordPress/wordpress-develop/blob/8a52d746e9bb85604f6a309a87d22296ce1c4280/src/wp-admin/includes/plugin.php#L2381C10-L2381C31
35-
*/
29+
// See https://github.com/TangibleInc/framework/#note-on-plugin-activation
3630
if (defined('WP_SANDBOX_SCRAPING')) return;
3731

3832
$plugin = framework\register_plugin([

0 commit comments

Comments
 (0)