Call Now Button - Version 0.3.1

Version Description

= * Small bug fix

Download this release

Release Info

Developer jgrietveld
Plugin Icon 128x128 Call Now Button
Version 0.3.1
Comparing to
See all releases

Code changes from version 0.3.0 to 0.3.1

call-now-button.css CHANGED
File without changes
call-now-button.js CHANGED
File without changes
call-now-button.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Call Now Button
4
Plugin URI: http://callnowbutton.com
5
Description: Mobile visitors will see a call now button fixed at the bottom of your site
6
- Version: 0.3.0
7
Author: Jerry Rietveld
8
Author URI: http://www.jgrietveld.com
9
License: GPL2
@@ -26,7 +26,7 @@ License: GPL2
26
*/
27
?>
28
<?php
29
- define('CNB_VERSION','0.3');
30
add_action('admin_menu', 'register_cnb_page');
31
add_action('admin_init', 'cnb_options_init');
32
@@ -368,8 +368,8 @@ function cnb_get_options() { // Grabbing existing settings and creating them if
368
369
function cnb_update_options() {
370
$cnb_options = get_option('cnb');
371
- if(!array_key_exists('version', $cnb_options) || $cnb_options['version'] != CNB_VERSION) { // Check current version and if it needs an update
372
- $version = array_key_exists('version', $cnb_options) ? substr($cnb_options['version'], 0, 3) : 0.1;
373
$cnb_options['active'] = isset($cnb_options['active']) ? 1 : 0;
374
$default_options = array(
375
'active' => $cnb_options['active'],
3
Plugin Name: Call Now Button
4
Plugin URI: http://callnowbutton.com
5
Description: Mobile visitors will see a call now button fixed at the bottom of your site
6
+ Version: 0.3.1
7
Author: Jerry Rietveld
8
Author URI: http://www.jgrietveld.com
9
License: GPL2
26
*/
27
?>
28
<?php
29
+ define('CNB_VERSION','0.3.1');
30
add_action('admin_menu', 'register_cnb_page');
31
add_action('admin_init', 'cnb_options_init');
32
368
369
function cnb_update_options() {
370
$cnb_options = get_option('cnb');
371
+ $version = array_key_exists('version', $cnb_options) ? substr($cnb_options['version'], 0, 3) : 0.1;
372
+ if($version != substr(CNB_VERSION, 0, 3)) { // Check current version and if it needs an update
373
$cnb_options['active'] = isset($cnb_options['active']) ? 1 : 0;
374
$default_options = array(
375
'active' => $cnb_options['active'],
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://callnowbutton.com/donate/
4
Tags: call, contact, customers, sell, sales, leads, convert, conversions, call now button
5
Requires at least: 2.7
6
Tested up to: 4.9
7
- Stable tag: 0.3.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -86,6 +86,9 @@ Yes, this is coming soon. We're currently looking for testers so if you want to
86
87
== Changelog ==
88
89
= 0.3 =
90
* Added the option to add text to your button
91
* Added option to either include or exclude certain posts and pages to show the button on (this used to be just exclude)
4
Tags: call, contact, customers, sell, sales, leads, convert, conversions, call now button
5
Requires at least: 2.7
6
Tested up to: 4.9
7
+ Stable tag: 0.3.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
86
87
== Changelog ==
88
89
+ = 0.3.1 =
90
+ * Small bug fix
91
+
92
= 0.3 =
93
* Added the option to add text to your button
94
* Added option to either include or exclude certain posts and pages to show the button on (this used to be just exclude)