Skip to content

Commit

Permalink
v1.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
froger-me committed Feb 4, 2020
1 parent 1effd09 commit 23c396d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inc/class-wp-weixin-responder.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function send_subscribe_message( $request_data ) {

if (
isset( $request_data['event'], $request_data['fromusername'] ) &&
('subscribe' === $request_data['event'] || 'CLICK' === $request_data['event'])
'subscribe' === $request_data['event']
) {
$user = WP_Weixin::get_user_by_openid( $request_data['fromusername'] );

Expand Down
5 changes: 3 additions & 2 deletions inc/class-wp-weixin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ public function __construct( $init_hooks = false ) {
}

if ( $init_hooks ) {
// Handle multisite options
add_action( 'pre_update_option_wp_weixin_settings', array( $this, 'save_multisite_option' ), 10, 3 );
// Handle multisite options
add_action( 'option_wp_weixin_settings', array( $this, 'add_multisite_option' ), 10, 3 );

// Handle multisite options
add_filter( 'pre_update_option_wp_weixin_settings', array( $this, 'save_multisite_option' ), 10, 3 );
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/wechat-sdk/wechat-sdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Wechat_SDK {
const MASS_BY_USER = 'https://api.weixin.qq.com/cgi-bin/message/mass/send';
const MASS_DELETE = 'https://api.weixin.qq.com/cgi-bin/message/mass/delete';
const MASS_PREVIEW = 'https://api.weixin.qq.com/cgi-bin/message/mass/preview';
const MASS_GET = 'http://api.weixin.qq.com/cgi-bin/message/mass/get';
const MASS_GET = 'https://api.weixin.qq.com/cgi-bin/message/mass/get';
/* Customer Service API */
const CS_SEND_MESSAGE = 'https://api.weixin.qq.com/cgi-bin/message/custom/send';

Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ This section describes how to install the plugin and get it working.

== Changelog ==

= 1.3.8 =
* Minor bugfix: WeChat Responder should not be responding to button click event
* Minor bugfix: Change a call to `add_action` to `add_filter`
* WeChat SDK: Update MASS_GET const - call https

= 1.3.7 =
* Minor bugfix: WeChat Responder settings validation

Expand Down
2 changes: 1 addition & 1 deletion wp-weixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WP Weixin
Plugin URI: https://github.com/froger-me/wp-weixin
Description: WordPress WeChat integration
Version: 1.3.7
Version: 1.3.8
Author: Alexandre Froger
Author URI: https://froger.me
Text Domain: wp-weixin
Expand Down

0 comments on commit 23c396d

Please sign in to comment.