Skip to content

Commit

Permalink
Removed now unneeded transitional image locking option check
Browse files Browse the repository at this point in the history
  • Loading branch information
codebard committed Nov 5, 2019
1 parent 5893255 commit 697a5b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
22 changes: 0 additions & 22 deletions classes/patreon_wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down Expand Up @@ -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() {

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 =

Expand Down

0 comments on commit 697a5b1

Please sign in to comment.