From 697a5b11527ec872a1f827be6d58455b38635196 Mon Sep 17 00:00:00 2001 From: Codebard Date: Tue, 5 Nov 2019 14:30:33 -0500 Subject: [PATCH] Removed now unneeded transitional image locking option check --- classes/patreon_wordpress.php | 22 ---------------------- readme.txt | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/classes/patreon_wordpress.php b/classes/patreon_wordpress.php index e9c983db..bc624b5f 100644 --- a/classes/patreon_wordpress.php +++ b/classes/patreon_wordpress.php @@ -64,7 +64,6 @@ function __construct() { add_action( 'admin_enqueue_scripts', array( $this, 'enqueueAdminScripts' ) ); add_action( 'upgrader_process_complete', 'Patreon_Wordpress::AfterUpdateActions', 10, 2 ); add_action( 'admin_notices', array( $this, 'AdminMessages' ) ); - add_action( 'init', array( $this, 'transitionalImageOptionCheck' ) ); add_action( 'admin_init', array( $this, 'add_privacy_policy_section' ), 20 ) ; add_action( 'admin_init', array( $this, 'check_setup' ), 5 ) ; add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_for_update' ) ); @@ -670,27 +669,6 @@ public static function AfterUpdateActions( $upgrader_object, $options = false ) } - } - public static function transitionalImageOptionCheck() { - - // This function is to enable a smooth transition for image locking option. It may be deleted in a few minor versions. - - // Check if transitional option is saved: - - if( !get_option( 'patreon-image-option-transition-done',false ) ) { - - // Doesnt exist. - - // Remove the htaccess rule - - Patreon_Protect::removePatreonRewriteRules(); - - // This just disabled the image feature until it is - - update_option( 'patreon-image-option-transition-done', true ); - - } - } public static function add_privacy_policy_section() { diff --git a/readme.txt b/readme.txt index fc4f6a11..996ed957 100644 --- a/readme.txt +++ b/readme.txt @@ -128,6 +128,7 @@ Nothing will be changed at your site - the plugin will just connect your site to * Added a health check page that shows the health of Patreon integration * Added compatibility checks for permalink settings and WP Super Cache settings * Critical issues with the integration are shown in dismissable notice that shows up on a 7 day basis when dismissed +* Removed the transitional image locking option check code now that it is not needed = 1.3.7 =