Version Description
- fix the upsell nag was previously showing on any page that was related to plugins, including the update interface. now it only shows up on the plugins page itself.
- chore tested up to WordPress version 5.5
Download this release
Release Info
Developer | ben.meredith@gmail.com |
Plugin | Better Click To Tweet |
Version | 5.9.4 |
Comparing to | |
See all releases |
Code changes from version 5.9.3 to 5.9.4
- admin-nags.php +2 -1
- better-click-to-tweet.php +2 -2
- readme.txt +5 -2
admin-nags.php
CHANGED
@@ -8,9 +8,10 @@ function bctt_alerts() {
|
|
8 |
$screen = get_current_screen();
|
9 |
|
10 |
$screenparent = $screen->parent_file;
|
|
|
11 |
|
12 |
|
13 |
-
if ( $screenparent == 'plugins.php' && current_user_can( 'install_plugins' ) ) {
|
14 |
|
15 |
$user_id = wp_get_current_user()->ID;
|
16 |
$has_dismissed = get_user_meta( $user_id, 'bctt_has_dismissed_nag', true );
|
8 |
$screen = get_current_screen();
|
9 |
|
10 |
$screenparent = $screen->parent_file;
|
11 |
+
$screen_id = $screen->id;
|
12 |
|
13 |
|
14 |
+
if ( $screenparent == 'plugins.php' && $screen_id == 'plugins' && current_user_can( 'install_plugins' ) ) {
|
15 |
|
16 |
$user_id = wp_get_current_user()->ID;
|
17 |
$has_dismissed = get_user_meta( $user_id, 'bctt_has_dismissed_nag', true );
|
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.
|
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.
|
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.4
|
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.4' );
|
16 |
|
17 |
include 'i18n-module.php';
|
18 |
include 'bctt-admin.php';
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: ben.meredith@gmail.com, wpsteward
|
|
3 |
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.
|
7 |
-
Stable tag: 5.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -96,6 +96,9 @@ Donations: http://benlikes.us/donate
|
|
96 |
1. Becomes this in your blog post!
|
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.
|
3 |
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.5
|
7 |
+
Stable tag: 5.9.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
96 |
1. Becomes this in your blog post!
|
97 |
|
98 |
== Changelog ==
|
99 |
+
= 5.9.4 =
|
100 |
+
* fix — the upsell nag was previously showing on any page that was related to plugins, including the update interface. now it only shows up on the plugins page itself.
|
101 |
+
* chore — tested up to WordPress version 5.5
|
102 |
|
103 |
= 5.9.3 =
|
104 |
* 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.
|