Version Description
- Hotfix - Fixed an issue where condition number values were being treated like strings and not returning a correct boolean response.
Download this release
Release Info
Developer | valendesigns |
Plugin | OptionTree |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
- assets/js/ot-admin.js +4 -4
- includes/ot-functions-option-types.php +1 -1
- ot-loader.php +2 -2
- readme.txt +4 -1
assets/js/ot-admin.js
CHANGED
@@ -327,16 +327,16 @@
|
|
327 |
|
328 |
switch ( condition.rule ) {
|
329 |
case 'less_than':
|
330 |
-
result = ( v1 < v2 );
|
331 |
break;
|
332 |
case 'less_than_or_equal_to':
|
333 |
-
result = ( v1 <= v2 );
|
334 |
break;
|
335 |
case 'greater_than':
|
336 |
-
result = ( v1 > v2 );
|
337 |
break;
|
338 |
case 'greater_than_or_equal_to':
|
339 |
-
result = ( v1 >= v2 );
|
340 |
break;
|
341 |
case 'contains':
|
342 |
result = ( v2.indexOf(v1) !== -1 ? true : false );
|
327 |
|
328 |
switch ( condition.rule ) {
|
329 |
case 'less_than':
|
330 |
+
result = ( parseInt( v1 ) < parseInt( v2 ) );
|
331 |
break;
|
332 |
case 'less_than_or_equal_to':
|
333 |
+
result = ( parseInt( v1 ) <= parseInt( v2 ) );
|
334 |
break;
|
335 |
case 'greater_than':
|
336 |
+
result = ( parseInt( v1 ) > parseInt( v2 ) );
|
337 |
break;
|
338 |
case 'greater_than_or_equal_to':
|
339 |
+
result = ( parseInt( v1 ) >= parseInt( v2 ) );
|
340 |
break;
|
341 |
case 'contains':
|
342 |
result = ( v2.indexOf(v1) !== -1 ? true : false );
|
includes/ot-functions-option-types.php
CHANGED
@@ -950,7 +950,7 @@ if ( ! function_exists( 'ot_type_measurement' ) ) {
|
|
950 |
* @access public
|
951 |
* @since 2.1
|
952 |
*/
|
953 |
-
if( ! function_exists( 'ot_type_numeric_slider' ) ) {
|
954 |
|
955 |
function ot_type_numeric_slider( $args = array() ) {
|
956 |
|
950 |
* @access public
|
951 |
* @since 2.1
|
952 |
*/
|
953 |
+
if ( ! function_exists( 'ot_type_numeric_slider' ) ) {
|
954 |
|
955 |
function ot_type_numeric_slider( $args = array() ) {
|
956 |
|
ot-loader.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: OptionTree
|
4 |
* Plugin URI: http://wp.envato.com
|
5 |
* Description: Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
|
6 |
-
* Version: 2.3.
|
7 |
* Author: Derek Herman
|
8 |
* Author URI: http://valendesigns.com
|
9 |
* License: GPLv3
|
@@ -142,7 +142,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
|
|
142 |
/**
|
143 |
* Current Version number.
|
144 |
*/
|
145 |
-
define( 'OT_VERSION', '2.3.
|
146 |
|
147 |
/**
|
148 |
* For developers: Theme mode.
|
3 |
* Plugin Name: OptionTree
|
4 |
* Plugin URI: http://wp.envato.com
|
5 |
* Description: Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
|
6 |
+
* Version: 2.3.4
|
7 |
* Author: Derek Herman
|
8 |
* Author URI: http://valendesigns.com
|
9 |
* License: GPLv3
|
142 |
/**
|
143 |
* Current Version number.
|
144 |
*/
|
145 |
+
define( 'OT_VERSION', '2.3.4' );
|
146 |
|
147 |
/**
|
148 |
* For developers: Theme mode.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/NuXI3T
|
|
4 |
Tags: options, theme options, meta boxes
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv3
|
9 |
|
10 |
Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
|
@@ -106,6 +106,9 @@ There sure is, and I'm glad you asked. Download and activate the [OptionTree The
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
109 |
= 2.3.3 =
|
110 |
* Hotfix - Fixed subfolder compatibility with versions of Windows that use backslashes instead of forward slashes. Contributors via github @primozcigler and @valendesigns.
|
111 |
* Hotfix - Fixed missing text domain in demo files. Contributors via github @jetonr.
|
4 |
Tags: options, theme options, meta boxes
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 2.3.4
|
8 |
License: GPLv3
|
9 |
|
10 |
Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 2.3.4 =
|
110 |
+
* Hotfix - Fixed an issue where condition number values were being treated like strings and not returning a correct boolean response.
|
111 |
+
|
112 |
= 2.3.3 =
|
113 |
* Hotfix - Fixed subfolder compatibility with versions of Windows that use backslashes instead of forward slashes. Contributors via github @primozcigler and @valendesigns.
|
114 |
* Hotfix - Fixed missing text domain in demo files. Contributors via github @jetonr.
|