Skip to content

Commit

Permalink
Update version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jun 23, 2022
1 parent e55d6a7 commit 05ab7ea
Show file tree
Hide file tree
Showing 3 changed files with 10 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: 6.0
* Stable tag: `3.6.0`
* Stable tag: `3.6.1`
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
6 changes: 5 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: 6.0
Requires PHP: 5.6
License: GPLv2 or later
Text Domain: wp-to-twitter
Stable tag: 3.6.0
Stable tag: 3.6.1

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,10 @@ Check out my <a href="https://github.com/joedolson/plugin-extensions/tree/master

== Changelog ==

= 3.6.1 =

* Bug fix: Don't expect a nonce or attempt to handle post meta if post not submitted from WordPress admin.

= 3.6.0 =

* Bug fix: Fix incorrect textdomains.
Expand Down
11 changes: 4 additions & 7 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.6.0
* Version: 3.6.1
*/

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

global $wpt_version;
$wpt_version = '3.6.0';
$wpt_version = '3.6.1';

add_action( 'init', 'wpt_load_textdomain' );
/**
Expand Down Expand Up @@ -1278,7 +1278,6 @@ function wpt_add_twitter_debug_box() {
}
}


/**
* Print post meta box
*
Expand Down Expand Up @@ -1739,10 +1738,8 @@ function wpt_save_post( $id, $post ) {
$tweet_this = ( 'no' === $_POST['_jd_tweet_this'] ) ? 'no' : 'yes';
$update = update_post_meta( $id, '_jd_tweet_this', $tweet_this );
} else {
if ( isset( $_POST['_wpnonce'] ) ) {
$tweet_default = ( '1' === get_option( 'jd_tweet_default' ) ) ? 'no' : 'yes';
$update = update_post_meta( $id, '_jd_tweet_this', $tweet_default );
}
$tweet_default = ( '1' === get_option( 'jd_tweet_default' ) ) ? 'no' : 'yes';
$update = update_post_meta( $id, '_jd_tweet_this', $tweet_default );
}
if ( isset( $_POST['wpt_clear_history'] ) && 'clear' === $_POST['wpt_clear_history'] ) {
delete_post_meta( $id, '_wpt_failed' );
Expand Down

0 comments on commit 05ab7ea

Please sign in to comment.