PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 All 128 releases
← All changes | extendify.php +21 -1 3.1.4 → 3.2.2 View file →
@@ -6,9 +6,9 @@
6 6 * Description: AI-powered WordPress assistant for onboarding and ongoing editing offered exclusively through select WordPress hosting providers.
7 7 * Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
8 8 * Author: Extendify
9 9 * Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
10 - * Version: 3.1.4
10 + * Version: 3.2.2
11 11 * Requires at least: 6.5
12 12 * Requires PHP: 7.0
13 13 * License: GPL-2.0-or-later
14 14 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -77,8 +77,28 @@
77 77 add_action('plugins_loaded', function () {
78 78 $extendify = new Extendify();
79 79 $extendify();
80 80 });
81 +
82 + // Autoloaded options load on every request, even while the plugin is inactive.
83 + // Before 6.6 there is no 'auto' value, so older sites are left alone.
84 + if (function_exists('wp_autoload_values_to_autoload')) {
85 + register_deactivation_hook(__FILE__, function () {
86 + $names = preg_grep('/^extendify_/', array_keys(wp_load_alloptions()));
87 + update_option('extendify_autoload_restore', $names, false);
88 + wp_set_option_autoload_values(array_fill_keys($names, false));
89 + });
90 +
91 + register_activation_hook(__FILE__, function () {
92 + global $wpdb;
93 + // Passing true writes 'on', which skips WordPress's 150KB autoload size check.
94 + foreach (get_option('extendify_autoload_restore', []) as $name) {
95 + $wpdb->update($wpdb->options, ['autoload' => 'auto'], ['option_name' => $name]);
96 + }
97 + wp_cache_delete('alloptions', 'options');
98 + delete_option('extendify_autoload_restore');
99 + });
100 + }
81 101
82 102 // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed
83 103 add_action('upgrader_process_complete', function ($upgrader, $options) {
84 104 $updatedExtendify = isset($options['plugins']) && array_filter($options['plugins'], function ($plugin) {