| @@ -26,8 +26,9 @@ | ||
| 26 | 26 | $this->bvapi->pingbv('/bvapi/activate', $info); |
| 27 | 27 | } else { |
| 28 | 28 | WPRAccount::setup($this->settings); |
| 29 | 29 | } |
| 30 | + ##ENABLECACHE## | |
| 30 | 31 | } |
| 31 | 32 | |
| 32 | 33 | public function deactivate() { |
| 33 | 34 | $info = array(); |
| @@ -36,14 +37,13 @@ | ||
| 36 | 37 | $this->bvapi->pingbv('/bvapi/deactivate', $info); |
| 37 | 38 | } |
| 38 | 39 | |
| 39 | 40 | public static function uninstall() { |
| 40 | - do_action('wpr_clear_pt_config'); | |
| 41 | - do_action('wpr_clear_dynsync_config'); | |
| 41 | + do_action('clear_pt_config'); | |
| 42 | + do_action('clear_ip_store'); | |
| 43 | + do_action('clear_dynsync_config'); | |
| 42 | 44 | ##CLEARCACHECONFIG## |
| 43 | - do_action('wpr_clear_bv_services_config'); | |
| 44 | - do_action('wpr_remove_bv_preload_include'); | |
| 45 | - do_action('wpr_clear_php_error_config'); | |
| 45 | + do_action('clear_bv_services_config'); | |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function clear_bv_services_config() { |
| 49 | 49 | $this->settings->deleteOption($this->bvinfo->services_option_name); |
| @@ -54,15 +54,9 @@ | ||
| 54 | 54 | public function footerHandler() { |
| 55 | 55 | $bvfooter = $this->settings->getOption($this->bvinfo->badgeinfo); |
| 56 | 56 | if ($bvfooter) { |
| 57 | 57 | echo '<div style="max-width:150px;min-height:70px;margin:0 auto;text-align:center;position:relative;"> |
| 58 | - <a href='.esc_url($bvfooter['badgeurl']).' target="_blank" ><img src="'.esc_url(plugins_url($bvfooter['badgeimg'], __FILE__)).'" alt="'.esc_attr($bvfooter['badgealt']).'" /></a></div>'; | |
| 58 | + <a href='.$bvfooter['badgeurl'].' target="_blank" ><img src="'.plugins_url($bvfooter['badgeimg'], __FILE__).'" alt="'.$bvfooter['badgealt'].'" /></a></div>'; | |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | - | |
| 62 | - public function removeBVPreload() { | |
| 63 | - $pattern = "@include '" . rtrim(ABSPATH, DIRECTORY_SEPARATOR) . "/bv-preload.php" . "';"; | |
| 64 | - WPRHelper::removePatternFromWpConfig($pattern); | |
| 65 | - } | |
| 66 | - | |
| 67 | 61 | } |
| 68 | 62 | endif; |