Version Description
- FIX Allows Google Ads conversion ID of 11 characters.
Download this release
Release Info
Developer | creapuntome |
Plugin | WhatsApp me |
Version | 4.5.4 |
Comparing to | |
See all releases |
Code changes from version 4.5.3 to 4.5.4
- README.txt +4 -1
- admin/class-joinchat-admin-page.php +2 -2
- joinchat.php +2 -2
README.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Chat, Click to Chat, Facebook Messenger, WhatsApp, Telegram, Whatsapp Busi
|
|
5 |
Requires at least: 4.4.0
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.5
|
8 |
-
Stable tag: 4.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -347,6 +347,9 @@ Join.chat save two localStorage variables for proper operation:
|
|
347 |
|
348 |
== Changelog ==
|
349 |
|
|
|
|
|
|
|
350 |
= 4.5.3 =
|
351 |
* FIX PHP warning introduced in v4.5.2.
|
352 |
|
5 |
Requires at least: 4.4.0
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.5
|
8 |
+
Stable tag: 4.5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
347 |
|
348 |
== Changelog ==
|
349 |
|
350 |
+
= 4.5.4 =
|
351 |
+
* FIX Allows Google Ads conversion ID of 11 characters.
|
352 |
+
|
353 |
= 4.5.3 =
|
354 |
* FIX PHP warning introduced in v4.5.2.
|
355 |
|
admin/class-joinchat-admin-page.php
CHANGED
@@ -285,7 +285,7 @@ class JoinChatAdminPage {
|
|
285 |
'a' => array( 'href' => true ),
|
286 |
)
|
287 |
);
|
288 |
-
$input['gads'] = sprintf( 'AW-%s/%s', $util::substr( $util::clean_input( $input['gads'][0] ), 0,
|
289 |
$input['gads'] = 'AW-/' !== $input['gads'] ? $input['gads'] : '';
|
290 |
|
291 |
if ( isset( $input['view'] ) ) {
|
@@ -607,7 +607,7 @@ class JoinChatAdminPage {
|
|
607 |
$parts = $value ? explode( '/', str_replace( 'AW-', '', $value ) ) : array( '', '' );
|
608 |
|
609 |
$output = '<label class="joinchat-gads">AW-' .
|
610 |
-
'<input id="joinchat_gads" name="joinchat[gads][]" value="' . esc_attr( $parts[0] ) . '" type="text" maxlength="
|
611 |
'<input name="joinchat[gads][]" value="' . esc_attr( $parts[1] ) . '" type="text" maxlength="20" style="width:13em;" placeholder="ABCDEFGHIJ0123456789" title="' . esc_attr__( 'Conversion label', 'creame-whatsapp-me' ) . '"> ' .
|
612 |
'</label> <span style="white-space:nowrap">AW-<em>CONVERSION_ID</em>/<em>CONVERSION_LABEL</em></span>' .
|
613 |
'<p class="description">' . __( 'Send the conversion automatically at the chat start', 'creame-whatsapp-me' ) . '</p>';
|
285 |
'a' => array( 'href' => true ),
|
286 |
)
|
287 |
);
|
288 |
+
$input['gads'] = sprintf( 'AW-%s/%s', $util::substr( $util::clean_input( $input['gads'][0] ), 0, 11 ), $util::substr( $util::clean_input( $input['gads'][1] ), 0, 20 ) );
|
289 |
$input['gads'] = 'AW-/' !== $input['gads'] ? $input['gads'] : '';
|
290 |
|
291 |
if ( isset( $input['view'] ) ) {
|
607 |
$parts = $value ? explode( '/', str_replace( 'AW-', '', $value ) ) : array( '', '' );
|
608 |
|
609 |
$output = '<label class="joinchat-gads">AW-' .
|
610 |
+
'<input id="joinchat_gads" name="joinchat[gads][]" value="' . esc_attr( $parts[0] ) . '" type="text" maxlength="11" style="width:7.5em;" placeholder="99999999999" title="' . esc_attr__( 'Conversion ID', 'creame-whatsapp-me' ) . '">/ ' .
|
611 |
'<input name="joinchat[gads][]" value="' . esc_attr( $parts[1] ) . '" type="text" maxlength="20" style="width:13em;" placeholder="ABCDEFGHIJ0123456789" title="' . esc_attr__( 'Conversion label', 'creame-whatsapp-me' ) . '"> ' .
|
612 |
'</label> <span style="white-space:nowrap">AW-<em>CONVERSION_ID</em>/<em>CONVERSION_LABEL</em></span>' .
|
613 |
'<p class="description">' . __( 'Send the conversion automatically at the chat start', 'creame-whatsapp-me' ) . '</p>';
|
joinchat.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin Name: Join.chat
|
10 |
* Plugin URI: https://join.chat
|
11 |
* Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
|
12 |
-
* Version: 4.5.
|
13 |
* Author: Creame
|
14 |
* Author URI: https://crea.me
|
15 |
* License: GPL-2.0+
|
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
26 |
/**
|
27 |
* Define constants.
|
28 |
*/
|
29 |
-
define( 'JOINCHAT_VERSION', '4.5.
|
30 |
define( 'JOINCHAT_FILE', __FILE__ );
|
31 |
define( 'JOINCHAT_DIR', plugin_dir_path( JOINCHAT_FILE ) );
|
32 |
define( 'JOINCHAT_BASENAME', plugin_basename( JOINCHAT_FILE ) );
|
9 |
* Plugin Name: Join.chat
|
10 |
* Plugin URI: https://join.chat
|
11 |
* Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
|
12 |
+
* Version: 4.5.4
|
13 |
* Author: Creame
|
14 |
* Author URI: https://crea.me
|
15 |
* License: GPL-2.0+
|
26 |
/**
|
27 |
* Define constants.
|
28 |
*/
|
29 |
+
define( 'JOINCHAT_VERSION', '4.5.4' );
|
30 |
define( 'JOINCHAT_FILE', __FILE__ );
|
31 |
define( 'JOINCHAT_DIR', plugin_dir_path( JOINCHAT_FILE ) );
|
32 |
define( 'JOINCHAT_BASENAME', plugin_basename( JOINCHAT_FILE ) );
|