Skip to content

Commit

Permalink
Sales page restored; versions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed May 11, 2022
1 parent a86cd0c commit 1a54302
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Automatically send your posts as Tweets.
* Tags: accessibility, WordPress
* Requires at least: 4.4
* Tested up to: 5.9
* Stable tag: `3.5.5`
* Stable tag: `3.5.6`
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
7 changes: 6 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tested up to: 5.9
Requires PHP: 5.6
License: GPLv2 or later
Text Domain: wp-to-twitter
Stable tag: 3.5.5
Stable tag: 3.5.6

Posts a Twitter update when you update your WordPress blog or add a link, with your chosen URL shortening service.

Expand Down Expand Up @@ -64,6 +64,11 @@ Check out my <a href="https://github.com/joedolson/plugin-extensions/tree/master

== Changelog ==

= 3.5.6 =

* Bug fix: Change in link to Twitter API error codes.
* Change: Option added to enable debugging from admin (in Advanced Settings.)

= 3.5.5 =

* Change: Twitter app setup instructions updated.
Expand Down
2 changes: 1 addition & 1 deletion src/wp-to-twitter-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function wpt_update_settings() {
</p>
<h3><?php _e( 'Support WP to Twitter', 'wp-to-twitter' ); ?></h3>
<p>
<?php _e( 'The core WP to Twitter plug-in is free, and has been since 2008. WP Tweets Pro sales help keep this going, but they don\'t cover everything.', 'wp-to-twitter' ); ?>
<?php _e( 'The core WP to Twitter plug-in is free, and has been since 2008. WP Tweets Pro sales help keep this going, but they don\'t cover all the costs of maintaining the plug-in. Purchasing a license helps ensure that I can continue to support this plug-in.', 'wp-to-twitter' ); ?>
</p>
<p>
<?php
Expand Down
7 changes: 4 additions & 3 deletions src/wp-to-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* License: GPL-2.0+
* License URI: http://www.gnu.org/license/gpl-2.0.txt
* Domain Path: lang
* Version: 3.5.5
* Version: 3.5.6
*/

/*
Expand Down Expand Up @@ -65,7 +65,7 @@
require_once( plugin_dir_path( __FILE__ ) . 'wpt-rate-limiting.php' );

global $wpt_version;
$wpt_version = '3.5.5';
$wpt_version = '3.5.6';

add_action( 'init', 'wpt_load_textdomain' );
/**
Expand Down Expand Up @@ -1652,8 +1652,9 @@ function wpt_admin_page() {
* Add stylesheets to WP to Twitter pages.
*/
function wpt_admin_style() {
global $wpt_version;
if ( isset( $_GET['page'] ) && ( 'wp-to-twitter' === $_GET['page'] || 'wp-tweets-pro' === $_GET['page'] || 'wp-to-twitter-schedule' === $_GET['page'] || 'wp-to-twitter-tweets' === $_GET['page'] || 'wp-to-twitter-errors' === $_GET['page'] ) ) {
wp_enqueue_style( 'wpt-styles', plugins_url( 'css/styles.css', __FILE__ ) );
wp_enqueue_style( 'wpt-styles', plugins_url( 'css/styles.css', __FILE__ ), array(), $wpt_version );
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/wpt-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ function wpt_settings_tabs() {
'support' => __( 'Get Help', 'wp-to-twitter' ),
'pro' => $pro_text,
);
if ( ! function_exists( 'wpt_pro_exists' ) ) {
unset( $pages['pro'] );
}

$pages = apply_filters( 'wpt_settings_tabs_pages', $pages, $current );
$admin_url = admin_url( 'admin.php?page=wp-tweets-pro' );
Expand Down

0 comments on commit 1a54302

Please sign in to comment.