Better Click To Tweet - Version 5.7.1

Version Description

  • fix replace premium styles page for premium styles users.
Download this release

Release Info

Developer ben.meredith@gmail.com
Plugin Icon 128x128 Better Click To Tweet
Version 5.7.1
Comparing to
See all releases

Code changes from version 5.7.0 to 5.7.1

better-click-to-tweet.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Better Click To Tweet
4
  * Description: Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
5
- * Version: 5.7.0
6
  * Author: Ben Meredith
7
  * Author URI: https://www.betterclicktotweet.com
8
  * Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
2
  /**
3
  * Plugin Name: Better Click To Tweet
4
  * Description: Add Click to Tweet boxes simply and elegantly to your posts or pages. All the features of a premium plugin, for FREE!
5
+ * Version: 5.7.1
6
  * Author: Ben Meredith
7
  * Author URI: https://www.betterclicktotweet.com
8
  * Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
includes/updater/license-page.php CHANGED
@@ -11,14 +11,15 @@
11
  // Backward compatibility for the previous version of the Premium Styles add-on (version 1.3 and earlier)
12
  // removes the submenu page added by those versions of the add-on.
13
  function maybe_remove_premium_styles_license_page() {
14
- if ( function_exists( 'bcttps_settings_page') ) {
15
 
16
- remove_action( 'admin_menu', 'bcttps_settings_page', 30 );
 
 
17
 
18
  }
19
  }
20
 
21
- add_action( 'init', 'maybe_remove_premium_styles_license_page', 40 );
22
 
23
  function bctt_license_menu() {
24
  $addons = bctt_get_active_addons();
@@ -48,12 +49,16 @@ add_action( 'admin_menu', 'bctt_license_menu', 40 );
48
  function bctt_license_page() {
49
  ?>
50
  <div class="wrap">
51
- <h2><?php _e( 'Activate Your Addons', 'better-click-to-tweet' ); ?></h2>
52
- <p><?php _e('An active license is required for updates (including bug fixes and security updates) as well as support.', 'better-click-to-tweet' );?></p>
 
53
 
54
  <form method="post" action="admin.php?page=bctt-licenses">
55
  <?php settings_errors('bctt-license');
 
 
56
 
 
57
  $active_plugins = bctt_get_active_addons(); ?>
58
 
59
  <table class="form-table">
11
  // Backward compatibility for the previous version of the Premium Styles add-on (version 1.3 and earlier)
12
  // removes the submenu page added by those versions of the add-on.
13
  function maybe_remove_premium_styles_license_page() {
 
14
 
15
+ if ( function_exists( 'bcttps_license_menu' ) ) {
16
+
17
+ remove_submenu_page('better-click-to-tweet', 'bcttps-license' );
18
 
19
  }
20
  }
21
 
22
+ add_action( 'admin_menu', 'maybe_remove_premium_styles_license_page', 999 );
23
 
24
  function bctt_license_menu() {
25
  $addons = bctt_get_active_addons();
49
  function bctt_license_page() {
50
  ?>
51
  <div class="wrap">
52
+ <h2><?php _e( 'Activate Your Add-on Licenses', 'better-click-to-tweet' ); ?></h2>
53
+ <p><?php _e('An active license is required for updates (including bug fixes and security updates) as well as support. Licenses don\'t affect the functionality of the add-ons in any way, but in order to recieve support for installed add-ons you\'ll need an active license. Thanks again for your suport!', 'better-click-to-tweet' );?></p>
54
+
55
 
56
  <form method="post" action="admin.php?page=bctt-licenses">
57
  <?php settings_errors('bctt-license');
58
+ if ( function_exists( 'bcttps_license_menu' ) ) {
59
+ echo sprintf( __( '<div style="background-color:#b22222; text-align:center; color: white; padding: 1em;"><p><strong>IMPORTANT:</strong></p><p>Your version of the Premium Styles add-on needs to be updated before you can input a functional license key.</p> <p><strong>You haven\'t done anything wrong here</strong>, but the below input for Premium Styles will not work until you address this. For more information, see <a style="color:yellow;"href="%1$s">this post</a></p></div>', 'better-click-to-tweet' ), esc_url('http://benlikes.us/premiumstylesupdate1') );
60
 
61
+ }
62
  $active_plugins = bctt_get_active_addons(); ?>
63
 
64
  <table class="form-table">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wpsteward.com/donations/plugin-support/
4
  Tags: click to tweet, twitter, tweet,
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
- Stable tag: 5.7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,6 +97,10 @@ Donations: http://benlikes.us/donate
97
 
98
  == Changelog ==
99
 
 
 
 
 
100
  = 5.7.0 =
101
  * feature — moved license management for premium add-ons (get them at https://www.betterclicktotweet.com today!) to the core plugin. Free plugin users will not notice a difference here at all. Premium users: check your email!
102
  * enhancement — several updates to code comments for clarity.
4
  Tags: click to tweet, twitter, tweet,
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
+ Stable tag: 5.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 5.7.1 =
101
+
102
+ * fix — replace premium styles page for premium styles users.
103
+
104
  = 5.7.0 =
105
  * feature — moved license management for premium add-ons (get them at https://www.betterclicktotweet.com today!) to the core plugin. Free plugin users will not notice a difference here at all. Premium users: check your email!
106
  * enhancement — several updates to code comments for clarity.