From ccd4573f7bb5983e706fae06e39c38e8077bde8d Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Sat, 2 Mar 2024 22:02:18 +0100 Subject: [PATCH] Update legacy option cleanup --- includes/functions/_theme_setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions/_theme_setup.php b/includes/functions/_theme_setup.php index 46ac2716..16b451e9 100644 --- a/includes/functions/_theme_setup.php +++ b/includes/functions/_theme_setup.php @@ -16,7 +16,7 @@ function fictioneer_bring_out_legacy_trash() { $obsolete = ['fictioneer_disable_html_in_comments', 'fictioneer_block_subscribers_from_admin', 'fictioneer_admin_restrict_menus', 'fictioneer_admin_restrict_private_data', 'fictioneer_admin_reduce_subscriber_profile', 'fictioneer_enable_subscriber_self_delete', 'fictioneer_strip_shortcodes_for_non_administrators', 'fictioneer_restrict_media_access', 'fictioneer_subscription_enabled', 'fictioneer_patreon_badge_map', 'fictioneer_patreon_tier_as_badge', 'fictioneer_patreon_campaign_ids', 'fictioneer_patreon_campaign_id', 'fictioneer_mount_wpdiscuz_theme_styles', 'fictioneer_base_site_width', 'fictioneer_comment_form_selector', 'fictioneer_featherlight_enabled', 'fictioneer_tts_enabled', 'fictioneer_log', 'fictioneer_enable_ajax_nonce', 'fictioneer_flush_object_cache', 'fictioneer_enable_all_block_styles']; // Check for most recent obsolete option... - if ( isset( $options['fictioneer_flush_object_cache'] ) ) { + if ( isset( $options['fictioneer_enable_all_block_styles'] ) ) { // Looping everything is not great but it only happens once! foreach ( $obsolete as $trash ) { delete_option( $trash );