Better Click To Tweet - Version 5.9.3

Version Description

  • fix a woocommerce function somehow made it into my setup wizard, which has been removed now. It was causing errors on a select few installs on installation.
  • switcheroo going back to featuring the Premium styles add-on in the plugins page upsell. You should buy that with a coupon of CHANGELOG at https://benlikes.us/bcttps
Download this release

Release Info

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

Code changes from version 5.9.2 to 5.9.3

admin-nags.php CHANGED
@@ -96,7 +96,8 @@ function bctt_alerts() {
96
  }
97
 
98
  // Commented out in 5.8.1 to try the other new nag for a bit.
99
- // add_action( 'admin_notices', 'bctt_alerts' );
 
100
 
101
  function bctt_addon_notice_ignore() {
102
 
@@ -116,8 +117,8 @@ function bctt_addon_notice_ignore() {
116
  }
117
 
118
  // Commented out in 5.8.1 to try the other new nag for a bit.
119
-
120
- // add_action( 'current_screen', 'bctt_addon_notice_ignore' );
121
 
122
 
123
  function bctt_more_alerts() {
@@ -215,7 +216,8 @@ function bctt_more_alerts() {
215
  }
216
  }
217
 
218
- add_action( 'admin_notices', 'bctt_more_alerts' );
 
219
 
220
  function bctt_more_addon_notice_ignore() {
221
 
@@ -234,4 +236,5 @@ function bctt_more_addon_notice_ignore() {
234
  }
235
  }
236
 
237
- add_action( 'current_screen', 'bctt_more_addon_notice_ignore' );
 
96
  }
97
 
98
  // Commented out in 5.8.1 to try the other new nag for a bit.
99
+ // Added back in 5.9.3
100
+ add_action( 'admin_notices', 'bctt_alerts' );
101
 
102
  function bctt_addon_notice_ignore() {
103
 
117
  }
118
 
119
  // Commented out in 5.8.1 to try the other new nag for a bit.
120
+ // Added back in 5.9.3
121
+ add_action( 'current_screen', 'bctt_addon_notice_ignore' );
122
 
123
 
124
  function bctt_more_alerts() {
216
  }
217
  }
218
 
219
+ // commented out in 5.9.3 to try the other nag for a bit
220
+ // add_action( 'admin_notices', 'bctt_more_alerts' );
221
 
222
  function bctt_more_addon_notice_ignore() {
223
 
236
  }
237
  }
238
 
239
+ // commented out in 5.9.3 to try the other nag for a bit
240
+ // add_action( 'current_screen', 'bctt_more_addon_notice_ignore' );
assets/css/bctt-admin.css CHANGED
@@ -5,6 +5,15 @@
5
  .bctt-signup {
6
  font-size:unset;
7
  }
 
 
 
 
 
 
 
 
 
8
 
9
  @media only screen and (max-width: 850px) {
10
  #post-box-container-1 {
5
  .bctt-signup {
6
  font-size:unset;
7
  }
8
+ .bctt-setup-alert {
9
+ width: 50%;
10
+ margin:0 auto;
11
+ background-color: #ffd589;
12
+ text-align: center;
13
+ line-height: 2.5em;
14
+ font-size:1.3em;
15
+ border: 3px solid grey;
16
+ }
17
 
18
  @media only screen and (max-width: 850px) {
19
  #post-box-container-1 {
bctt-welcome-functions.php CHANGED
@@ -84,7 +84,7 @@ function bctt_get_step_url( $step ) {
84
  function bctt_welcome_redirect() {
85
  if ( get_transient( '_bctt_activation_redirect' ) ) {
86
  $do_redirect = true;
87
- $current_page = isset( $_GET['page'] ) ? wc_clean( wp_unslash( $_GET['page'] ) ) : false;
88
  // Bailout redirect during these events.
89
  if ( wp_doing_ajax() || is_network_admin() || ! current_user_can( 'manage_options' ) ) {
90
  $do_redirect = false;
84
  function bctt_welcome_redirect() {
85
  if ( get_transient( '_bctt_activation_redirect' ) ) {
86
  $do_redirect = true;
87
+ $current_page = isset( $_GET['page'] ) ? wp_unslash( $_GET['page'] ) : false;
88
  // Bailout redirect during these events.
89
  if ( wp_doing_ajax() || is_network_admin() || ! current_user_can( 'manage_options' ) ) {
90
  $do_redirect = false;
bctt_options.php CHANGED
@@ -59,6 +59,7 @@ function bctt_settings_page() {
59
  <div id="bctt_instructions" class="postbox ">
60
  <h2><?php _e( 'Instructions', 'better-click-to-tweet' ); ?></h2>
61
  <div class="inside">
 
62
 
63
  <p><?php /* translators: Treat "Better Click To Tweet" as a brand name, don't translate it */
64
  _e( 'To add styled click-to-tweet quote boxes include the Better Click To Tweet shortcode or Gutenberg block in your post.', 'better-click-to-tweet' ); ?></p>
59
  <div id="bctt_instructions" class="postbox ">
60
  <h2><?php _e( 'Instructions', 'better-click-to-tweet' ); ?></h2>
61
  <div class="inside">
62
+ <p class="bctt-setup-alert"><strong><?php echo sprintf( __( 'Don\'t miss the <a href="%s">Setup Wizard</a>', 'better-click-to-tweet' ), admin_url( '?page=bctt-welcome&step=bctt-setup' ) ); ?></strong></p>
63
 
64
  <p><?php /* translators: Treat "Better Click To Tweet" as a brand name, don't translate it */
65
  _e( 'To add styled click-to-tweet quote boxes include the Better Click To Tweet shortcode or Gutenberg block in your post.', 'better-click-to-tweet' ); ?></p>
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.9.2
6
  * Author: Ben Meredith
7
  * Author URI: https://www.betterclicktotweet.com
8
  * Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
@@ -12,7 +12,7 @@
12
 
13
  defined( 'ABSPATH' ) or die( "No soup for you. You leave now." );
14
 
15
- define ( 'BCTT_VERSION', '5.9.2' );
16
 
17
  include 'i18n-module.php';
18
  include 'bctt-admin.php';
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.9.3
6
  * Author: Ben Meredith
7
  * Author URI: https://www.betterclicktotweet.com
8
  * Plugin URI: https://wordpress.org/plugins/better-click-to-tweet/
12
 
13
  defined( 'ABSPATH' ) or die( "No soup for you. You leave now." );
14
 
15
+ define ( 'BCTT_VERSION', '5.9.3' );
16
 
17
  include 'i18n-module.php';
18
  include 'bctt-admin.php';
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.4
7
- Stable tag: 5.9.2
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.9.2 =
101
  * fix — the links being sent to mailchimp for those opting into the newsletter were sending an incorrect subset, resulting in incorrect data.
102
 
4
  Tags: click to tweet, twitter, tweet,
5
  Requires at least: 3.8
6
  Tested up to: 5.4
7
+ Stable tag: 5.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 5.9.3 =
101
+ * fix — a woocommerce function somehow made it into my setup wizard, which has been removed now. It was causing errors on a select few installs on installation.
102
+ * switcheroo — going back to featuring the Premium styles add-on in the plugins page upsell. You should buy that with a coupon of CHANGELOG at https://benlikes.us/bcttps
103
+
104
  = 5.9.2 =
105
  * fix — the links being sent to mailchimp for those opting into the newsletter were sending an incorrect subset, resulting in incorrect data.
106