PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.8.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.8.0
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
← All changes | includes/Core/Maintenance.php +4 -0 3.0.63.8.0 View file →
@@ -15,8 +15,12 @@
15 15 register_activation_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'activation' ] );
16 16 register_uninstall_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'uninstall' ] );
17 17 register_deactivation_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'deactivation' ] );
18 18 add_action( 'admin_init', [ __CLASS__, 'maybe_redirect_templately' ] );
19 +
20 + // Runtime capability hooks — setup() only ever runs on activation, so the
21 + // administrator grant needs a home that runs on every request.
22 + Roles::init();
19 23 }
20 24
21 25 /**
22 26 * Runs on activation