Call Now Button - Version 1.1.1

Version Description

Fix for storing profile info

Download this release

Release Info

Developer jasperroel
Plugin Icon 128x128 Call Now Button
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1.0 to 1.1.1

Files changed (3) hide show
  1. call-now-button.php +2 -2
  2. readme.txt +4 -1
  3. src/admin/CnbAdminAjax.php +3 -6
call-now-button.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Call Now Button
4
  Plugin URI: https://callnowbutton.com
5
  Description: Mobile visitors will see a <strong>Call Now Button</strong> on your website. Easy to use but flexible to meet more demanding requirements. Change placement and color, hide on specific pages, track how many people click them or conversions of your Google Ads campaigns. It's all optional but possible.
6
- Version: 1.1.0
7
  Author: Jerry Rietveld
8
  Author URI: https://www.callnowbutton.com
9
  GitHub Plugin URI: https://github.com/callnowbutton/wp-plugin
@@ -26,7 +26,7 @@ License: GPL2
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
- define('CNB_VERSION', '1.1.0');
30
  define('CNB_NAME', 'Call Now Button');
31
  define('CNB_BASENAME', plugin_basename(__FILE__));
32
  define('CNB_BASEFOLDER', plugin_basename(dirname(__FILE__)));
3
  Plugin Name: Call Now Button
4
  Plugin URI: https://callnowbutton.com
5
  Description: Mobile visitors will see a <strong>Call Now Button</strong> on your website. Easy to use but flexible to meet more demanding requirements. Change placement and color, hide on specific pages, track how many people click them or conversions of your Google Ads campaigns. It's all optional but possible.
6
+ Version: 1.1.1
7
  Author: Jerry Rietveld
8
  Author URI: https://www.callnowbutton.com
9
  GitHub Plugin URI: https://github.com/callnowbutton/wp-plugin
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
+ define('CNB_VERSION', '1.1.1');
30
  define('CNB_NAME', 'Call Now Button');
31
  define('CNB_BASENAME', plugin_basename(__FILE__));
32
  define('CNB_BASEFOLDER', plugin_basename(dirname(__FILE__)));
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: call button, click to call, convert, call now button, contact button
5
  Requires at least: 3.9
6
  Requires PHP: 5.4
7
  Tested up to: 5.9
8
- Stable tag: 1.1.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -111,6 +111,9 @@ Yes, you can upgrade to Premium to enable tons of extra features. Checkout [call
111
 
112
 
113
  == Changelog ==
 
 
 
114
  = 1.1.0 =
115
 
116
  Full code refactor
5
  Requires at least: 3.9
6
  Requires PHP: 5.4
7
  Tested up to: 5.9
8
+ Stable tag: 1.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
111
 
112
 
113
  == Changelog ==
114
+ = 1.1.1 =
115
+ Fix for storing profile info
116
+
117
  = 1.1.0 =
118
 
119
  Full code refactor
src/admin/CnbAdminAjax.php CHANGED
@@ -70,12 +70,9 @@ class CnbAdminAjax {
70
  $data = array();
71
  wp_parse_str( $_REQUEST['data'], $data );
72
  $controller = new CnbProfileController();
73
- $nonce = filter_input( INPUT_POST, '_wpnonce', FILTER_SANITIZE_STRING );
74
- $profile = filter_input(
75
- INPUT_POST,
76
- 'user',
77
- FILTER_SANITIZE_STRING,
78
- FILTER_REQUIRE_ARRAY | FILTER_FLAG_NO_ENCODE_QUOTES );
79
  $user = CnbUser::fromObject( $profile );
80
 
81
  $result = $controller->update_user( $nonce, $user );
70
  $data = array();
71
  wp_parse_str( $_REQUEST['data'], $data );
72
  $controller = new CnbProfileController();
73
+ $nonce = filter_var($data['_wpnonce'], FILTER_SANITIZE_STRING);
74
+ $profile = filter_var($data['user'], FILTER_SANITIZE_STRING,
75
+ FILTER_REQUIRE_ARRAY | FILTER_FLAG_NO_ENCODE_QUOTES);
 
 
 
76
  $user = CnbUser::fromObject( $profile );
77
 
78
  $result = $controller->update_user( $nonce, $user );