Version Description
= * Fixes a plugin upgrade bug
Download this release
Release Info
Developer | jasperroel |
Plugin | Call Now Button |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- call-now-button.php +2 -2
- readme.txt +4 -1
- src/utils/utils.php +19 -16
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.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.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.0.3
|
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.0.3');
|
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.8
|
8 |
-
Stable tag: 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.0.2 =
|
115 |
* Fixes a domain name bug which caused a very sticky warning notice during the upgrade process
|
116 |
|
5 |
Requires at least: 3.9
|
6 |
Requires PHP: 5.4
|
7 |
Tested up to: 5.8
|
8 |
+
Stable tag: 1.0.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
111 |
|
112 |
|
113 |
== Changelog ==
|
114 |
+
= 1.0.3 =
|
115 |
+
* Fixes a plugin upgrade bug
|
116 |
+
|
117 |
= 1.0.2 =
|
118 |
* Fixes a domain name bug which caused a very sticky warning notice during the upgrade process
|
119 |
|
src/utils/utils.php
CHANGED
@@ -94,22 +94,25 @@ function cnb_update_options() {
|
|
94 |
$cnb_options['tracking'] = !empty($cnb_options['tracking']) ? $cnb_options['tracking'] : $cnb_defaults['tracking'];
|
95 |
$cnb_options['show'] = !empty($cnb_options['show']) ? $cnb_options['show'] : $cnb_defaults['show'];
|
96 |
|
97 |
-
$updated_options =
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
113 |
);
|
114 |
|
115 |
if(array_key_exists('classic', $cnb_options) && $cnb_options['classic'] == 1 ) {
|
94 |
$cnb_options['tracking'] = !empty($cnb_options['tracking']) ? $cnb_options['tracking'] : $cnb_defaults['tracking'];
|
95 |
$cnb_options['show'] = !empty($cnb_options['show']) ? $cnb_options['show'] : $cnb_defaults['show'];
|
96 |
|
97 |
+
$updated_options = array_merge(
|
98 |
+
$cnb_options,
|
99 |
+
array(
|
100 |
+
'active' => $cnb_options['active'],
|
101 |
+
'number' => $cnb_options['number'],
|
102 |
+
'text' => $cnb_options['text'],
|
103 |
+
'color' => $cnb_options['color'],
|
104 |
+
'iconcolor' => $cnb_options['iconcolor'],
|
105 |
+
'appearance' => $cnb_options['appearance'],
|
106 |
+
'hideIcon' => $cnb_options['hideIcon'],
|
107 |
+
'limit' => $cnb_options['limit'],
|
108 |
+
'frontpage' => $cnb_options['frontpage'],
|
109 |
+
'conversions' => $cnb_options['conversions'],
|
110 |
+
'zoom' => $cnb_options['zoom'],
|
111 |
+
'z-index' => $cnb_options['z-index'],
|
112 |
+
'tracking' => $cnb_options['tracking'],
|
113 |
+
'show' => $cnb_options['show'],
|
114 |
+
'version' => CNB_VERSION
|
115 |
+
)
|
116 |
);
|
117 |
|
118 |
if(array_key_exists('classic', $cnb_options) && $cnb_options['classic'] == 1 ) {
|