Clearfy – WordPress optimization plugin and disable ultimate tweaker - Version 1.6.2

Version Description

(20.11.2019) = * Fixed: Minor bugs.

Download this release

Release Info

Developer alexkovalevv
Plugin Icon 128x128 Clearfy – WordPress optimization plugin and disable ultimate tweaker
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

admin/boot.php CHANGED
@@ -155,6 +155,7 @@ add_filter( 'wbcr/factory/pages/impressive/widgets', function ( $widgets, $posit
155
  return $widgets;
156
  } else {
157
  if ( $position == 'right' ) {
 
158
  unset( $widgets['info_widget'] );
159
  unset( $widgets['rating_widget'] );
160
  }
155
  return $widgets;
156
  } else {
157
  if ( $position == 'right' ) {
158
+ unset( $widgets['business_suggetion'] );
159
  unset( $widgets['info_widget'] );
160
  unset( $widgets['rating_widget'] );
161
  }
admin/includes/compatibility.php CHANGED
@@ -80,7 +80,7 @@ add_action( 'plugins_loaded', function () {
80
 
81
  $nonce_action = 'upgrade-plugin_' . WCLRP_PLUGIN_BASE;
82
  $upgrade_url = wp_nonce_url( self_admin_url( "update.php?action=upgrade-plugin&plugin=" . urlencode( WCLRP_PLUGIN_BASE ) ), $nonce_action );
83
- $notice_text = sprintf( __( 'You must <a href="%s">upgrade the premium version</a> of the Clearfy plugin to version 1.1.3, since the new Clearfy release isn\'t compatible with the previous version of the premium plugin.', 'gonzales' ), $upgrade_url );
84
 
85
  $notices[] = [
86
  'id' => 'clearfy-package_-compatibility-113',
80
 
81
  $nonce_action = 'upgrade-plugin_' . WCLRP_PLUGIN_BASE;
82
  $upgrade_url = wp_nonce_url( self_admin_url( "update.php?action=upgrade-plugin&plugin=" . urlencode( WCLRP_PLUGIN_BASE ) ), $nonce_action );
83
+ $notice_text = sprintf( __( 'You must <a href="%s">upgrade the premium version</a> of the Clearfy plugin to version 1.1.2, since the new Clearfy release isn\'t compatible with the previous version of the premium plugin.', 'clearfy' ), $upgrade_url );
84
 
85
  $notices[] = [
86
  'id' => 'clearfy-package_-compatibility-113',
admin/includes/sidebar-widgets.php CHANGED
@@ -1,20 +1,21 @@
1
  <?php
2
  /**
3
  * Sidebar widgets
4
- * @author Webcraftic <wordpress.webraftic@gmail.com>
 
5
  * @copyright (c) 01.12.2018, Webcraftic
6
- * @version 1.0
7
  */
8
 
9
  /**
10
  * Return premium widget markup
 
11
  * @return string
12
  */
13
  function wbcr_clearfy_get_sidebar_premium_widget() {
14
-
15
  $buy_premium_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( WCL_Plugin::app()->getPluginName(), 'pricing', 'license_page' );
16
- $upgrade_price = WbcrFactoryClearfy214_Helpers::getClearfyBusinessPrice();
17
-
18
  ob_start();
19
  ?>
20
  <div id="wbcr-clr-go-to-premium-widget" class="wbcr-factory-sidebar-widget">
@@ -26,32 +27,33 @@ function wbcr_clearfy_get_sidebar_premium_widget() {
26
  <p><?php _e( 'Paid license guarantees that you can download and update existing and future paid components of the plugin.', 'clearfy' ) ?></p>
27
  <a href="<?= $buy_premium_url ?>" class="wbcr-clr-purchase-premium" target="_blank" rel="noopener">
28
  <span class="btn btn-gold btn-inner-wrap">
29
- <i class="fa fa-star"></i> <?php printf( __( 'Upgrade to Clearfy Business for $%s', 'clearfy' ), $upgrade_price ) ?>
30
  <i class="fa fa-star"></i>
31
  </span>
32
  </a>
33
  </div>
34
  </div>
35
  <?php
36
-
37
  $output = ob_get_contents();
38
-
39
  ob_end_clean();
40
-
41
  return $output;
42
  }
43
 
44
  /**
45
  * Return support widget markup
 
46
  * @return string
47
  */
48
  function wbcr_clearfy_get_sidebar_support_widget() {
49
-
50
  $output = '';
51
-
52
  $free_support_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( WCL_Plugin::app()->getPluginName(), 'support', 'support_widget' );
53
  $page_hot_support_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( WCL_Plugin::app()->getPluginName(), 'hot-support', 'support_widget' );
54
-
55
  ob_start();
56
  ?>
57
  <div id="wbcr-clr-support-widget" class="wbcr-factory-sidebar-widget">
@@ -72,10 +74,10 @@ function wbcr_clearfy_get_sidebar_support_widget() {
72
  </div>
73
  </div>
74
  <?php
75
-
76
  $output = ob_get_contents();
77
-
78
  ob_end_clean();
79
-
80
  return $output;
81
  }
1
  <?php
2
  /**
3
  * Sidebar widgets
4
+ *
5
+ * @author Webcraftic <wordpress.webraftic@gmail.com>
6
  * @copyright (c) 01.12.2018, Webcraftic
7
+ * @version 1.0
8
  */
9
 
10
  /**
11
  * Return premium widget markup
12
+ *
13
  * @return string
14
  */
15
  function wbcr_clearfy_get_sidebar_premium_widget() {
16
+
17
  $buy_premium_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( WCL_Plugin::app()->getPluginName(), 'pricing', 'license_page' );
18
+
 
19
  ob_start();
20
  ?>
21
  <div id="wbcr-clr-go-to-premium-widget" class="wbcr-factory-sidebar-widget">
27
  <p><?php _e( 'Paid license guarantees that you can download and update existing and future paid components of the plugin.', 'clearfy' ) ?></p>
28
  <a href="<?= $buy_premium_url ?>" class="wbcr-clr-purchase-premium" target="_blank" rel="noopener">
29
  <span class="btn btn-gold btn-inner-wrap">
30
+ <i class="fa fa-star"></i> <?php _e( 'Upgrade to Clearfy Business', 'clearfy' ) ?>
31
  <i class="fa fa-star"></i>
32
  </span>
33
  </a>
34
  </div>
35
  </div>
36
  <?php
37
+
38
  $output = ob_get_contents();
39
+
40
  ob_end_clean();
41
+
42
  return $output;
43
  }
44
 
45
  /**
46
  * Return support widget markup
47
+ *
48
  * @return string
49
  */
50
  function wbcr_clearfy_get_sidebar_support_widget() {
51
+
52
  $output = '';
53
+
54
  $free_support_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( WCL_Plugin::app()->getPluginName(), 'support', 'support_widget' );
55
  $page_hot_support_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( WCL_Plugin::app()->getPluginName(), 'hot-support', 'support_widget' );
56
+
57
  ob_start();
58
  ?>
59
  <div id="wbcr-clr-support-widget" class="wbcr-factory-sidebar-widget">
74
  </div>
75
  </div>
76
  <?php
77
+
78
  $output = ob_get_contents();
79
+
80
  ob_end_clean();
81
+
82
  return $output;
83
  }
clearfy.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wordpress.org/plugins/clearfy/
5
  * Description: Disables unused Wordpress features, improves performance and increases SEO rankings, using Clearfy, which makes WordPress very easy.
6
  * Author: Webcraftic <wordpress.webraftic@gmail.com>
7
- * Version: 1.6.1
8
  * Text Domain: clearfy
9
  * Domain Path: /languages/
10
  * Author URI: http://clearfy.pro
4
  * Plugin URI: https://wordpress.org/plugins/clearfy/
5
  * Description: Disables unused Wordpress features, improves performance and increases SEO rankings, using Clearfy, which makes WordPress very easy.
6
  * Author: Webcraftic <wordpress.webraftic@gmail.com>
7
+ * Version: 1.6.2
8
  * Text Domain: clearfy
9
  * Domain Path: /languages/
10
  * Author URI: http://clearfy.pro
libs/factory/clearfy/pages/class-page-license.php CHANGED
@@ -269,7 +269,7 @@ class Wbcr_FactoryClearfy214_LicensePage extends Wbcr_FactoryClearfy214_PageBase
269
  <a href="<?php echo $this->plugin->get_support()->get_pricing_url( true, 'license_page' ); ?>"
270
  class="purchase-premium" target="_blank" rel="noopener">
271
  <span class="btn btn-gold btn-inner-wrap">
272
- <?php printf( __( 'Upgrade to Premium for $%s', 'wbcr_factory_clearfy_214' ), $this->premium->get_price() ) ?>
273
  </span>
274
  </a>
275
  <p><?php printf( __( 'Your current license for %1$s:', 'wbcr_factory_clearfy_214' ), $this->plugin->getPluginTitle() ) ?></p>
269
  <a href="<?php echo $this->plugin->get_support()->get_pricing_url( true, 'license_page' ); ?>"
270
  class="purchase-premium" target="_blank" rel="noopener">
271
  <span class="btn btn-gold btn-inner-wrap">
272
+ <?php _e( 'Upgrade to Premium', 'wbcr_factory_clearfy_214' ) ?>
273
  </span>
274
  </a>
275
  <p><?php printf( __( 'Your current license for %1$s:', 'wbcr_factory_clearfy_214' ), $this->plugin->getPluginTitle() ) ?></p>
libs/factory/clearfy/pages/class-pages.php CHANGED
@@ -190,7 +190,6 @@ class Wbcr_FactoryClearfy214_PageBase extends Wbcr_FactoryPages422_ImpressiveThe
190
 
191
  $license_page_url = $this->getBaseUrl( 'license' );
192
  $upgrade_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( $this->plugin->getPluginName(), 'pricing', 'multisite_save_settings' );
193
- $upgrade_price = WbcrFactoryClearfy214_Helpers::getClearfyBusinessPrice();
194
 
195
  $html = '<div class="wbcr-factory-clearfy-214-multisite-suggetion">';
196
  $html .= '<div class="wbcr-factory-inner-contanier">';
@@ -200,7 +199,7 @@ class Wbcr_FactoryClearfy214_PageBase extends Wbcr_FactoryPages422_ImpressiveThe
200
  $html .= '<p>' . __( 'You can activate the plugin on each website and use it with zero limitations. But you can’t save the plugin’s settings under the Super Administrator role!', 'wbcr_factory_clearfy_214' ) . '</p>';
201
  $html .= '<p style="margin-top:20px">';
202
  $html .= '<a href="' . $license_page_url . '" class="wbcr-factory-activate-premium" rel="noopener">' . __( 'Activate license ', 'wbcr_factory_clearfy_214' ) . '</a> ';
203
- $html .= '<a href="' . $upgrade_url . '" class="wbcr-factory-purchase-premium" target="_blank" rel="noopener">' . sprintf( __( 'Upgrade to Clearfy Business for $%d', 'wbcr_factory_clearfy_214' ), $upgrade_price ) . '</a>';
204
  $html .= '</p>';
205
  $html .= '</div>';
206
  $html .= '</div>';
190
 
191
  $license_page_url = $this->getBaseUrl( 'license' );
192
  $upgrade_url = WbcrFactoryClearfy214_Helpers::getWebcrafticSitePageUrl( $this->plugin->getPluginName(), 'pricing', 'multisite_save_settings' );
 
193
 
194
  $html = '<div class="wbcr-factory-clearfy-214-multisite-suggetion">';
195
  $html .= '<div class="wbcr-factory-inner-contanier">';
199
  $html .= '<p>' . __( 'You can activate the plugin on each website and use it with zero limitations. But you can’t save the plugin’s settings under the Super Administrator role!', 'wbcr_factory_clearfy_214' ) . '</p>';
200
  $html .= '<p style="margin-top:20px">';
201
  $html .= '<a href="' . $license_page_url . '" class="wbcr-factory-activate-premium" rel="noopener">' . __( 'Activate license ', 'wbcr_factory_clearfy_214' ) . '</a> ';
202
+ $html .= '<a href="' . $upgrade_url . '" class="wbcr-factory-purchase-premium" target="_blank" rel="noopener">' . __( 'Upgrade to Clearfy Business', 'wbcr_factory_clearfy_214' ) . '</a>';
203
  $html .= '</p>';
204
  $html .= '</div>';
205
  $html .= '</div>';
migrations/010103.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010103 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010103 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010108.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010108 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010108 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010200.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010200 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010200 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010300.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCL_Update010300 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCL_Update010300 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010402.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010402 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010402 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010501.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010501 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010501 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010504.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010504 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010504 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010505.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010505 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010505 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
migrations/010601.php CHANGED
@@ -4,6 +4,12 @@
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
 
 
 
 
 
 
7
  class WCLUpdate010601 extends Wbcr_Factory422_Update {
8
 
9
  public function install() {
4
  * Updates for altering the table used to store statistics data.
5
  * Adds new columns and renames existing ones in order to add support for the new social buttons.
6
  */
7
+
8
+ // Exit if accessed directly
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
  class WCLUpdate010601 extends Wbcr_Factory422_Update {
14
 
15
  public function install() {
readme.txt CHANGED
@@ -1,5 +1,5 @@
1
  === Clearfy – WordPress optimization plugin and disable ultimate tweaker ===
2
- Contributors: webcraftic
3
  Donate link: https://clearfy.pro/pricing/?utm_source=wordpress.org&utm_campaign=wbcr_clearfy&utm_content=repo
4
  Tags: wp disable, disable comments, disable updates, disable emoji, disable embeds, remove querystrings, disable rest api, bicycles by falbar, remove rss feeds, remove meta generator, yoast seo remove comments, yoast seo, yoast seo breadcrumbs, disable embeds,remove embeds, remove rsd link, dns-prefetch, remove dns-prefetch, meta generator, rsd link, wlw manifest link, remove wlw manifest link, canonical link, remove canonical link, shortlink link, remove shortlink link, emoji, attachment pages, remove attachment pages, rss feeds, disable rss feeds, rest api, disable rest api, remove rest api, clearfy, archives date, post pagination, archives author, hide login errors, recent comments, tag, rpc, xml, xml rpc, xmlrpc, admin bar, remove querystrings, reduce HTTP requests, disable heartbeat, disable revision, heartbeat, revision, clean, optimize, remove rest-api, remove rest-api, remove jquery migrate, html minify, robots.txt editor, plugin updates, disable plugin updates, disable core updates, core updates, enable automatic updates, disable widgets, disable default widgets, remove html comments
5
  Requires at least: 4.7
@@ -238,6 +238,9 @@ Of course! To do this, email us your wishes with address, which you will find in
238
 
239
 
240
  == Changelog ==
 
 
 
241
  = 1.6.1 (13.11.2019) =
242
  * Fixed: Compatibility with Wordpress 5.3
243
  * Fixed: [Assets manager component] Minor bugs. Added an admin notice about great release.
1
  === Clearfy – WordPress optimization plugin and disable ultimate tweaker ===
2
+ Contributors: Creativemotion, webcraftic, alexkovalevv
3
  Donate link: https://clearfy.pro/pricing/?utm_source=wordpress.org&utm_campaign=wbcr_clearfy&utm_content=repo
4
  Tags: wp disable, disable comments, disable updates, disable emoji, disable embeds, remove querystrings, disable rest api, bicycles by falbar, remove rss feeds, remove meta generator, yoast seo remove comments, yoast seo, yoast seo breadcrumbs, disable embeds,remove embeds, remove rsd link, dns-prefetch, remove dns-prefetch, meta generator, rsd link, wlw manifest link, remove wlw manifest link, canonical link, remove canonical link, shortlink link, remove shortlink link, emoji, attachment pages, remove attachment pages, rss feeds, disable rss feeds, rest api, disable rest api, remove rest api, clearfy, archives date, post pagination, archives author, hide login errors, recent comments, tag, rpc, xml, xml rpc, xmlrpc, admin bar, remove querystrings, reduce HTTP requests, disable heartbeat, disable revision, heartbeat, revision, clean, optimize, remove rest-api, remove rest-api, remove jquery migrate, html minify, robots.txt editor, plugin updates, disable plugin updates, disable core updates, core updates, enable automatic updates, disable widgets, disable default widgets, remove html comments
5
  Requires at least: 4.7
238
 
239
 
240
  == Changelog ==
241
+ = 1.6.2 (20.11.2019) =
242
+ * Fixed: Minor bugs.
243
+
244
  = 1.6.1 (13.11.2019) =
245
  * Fixed: Compatibility with Wordpress 5.3
246
  * Fixed: [Assets manager component] Minor bugs. Added an admin notice about great release.