Plugin Directory

Changeset 1708995


Ignore:
Timestamp:
08/05/2017 11:01:36 PM (9 years ago)
Author:
opentools
Message:

V1.4.2: Allow checking for empty list in variable definitions by simply leaving comparison field blank

Location:
woocommerce-basic-ordernumbers
Files:
3 edited
14 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-basic-ordernumbers/tags/1.4.2/library/ordernumber_helper.php

    r1452202 r1708995  
    301301                            $match = true; break;
    302302                    case 'equals':
    303                             $match = ($compareval == $condval); break;
     303                            if (is_array($compareval)) {
     304                                $match = ($condval == '') && empty($compareval);
     305                            } else {
     306                                $match = ($compareval == $condval);
     307                            }
     308                            break;
    304309                    case 'contains':
    305310                            if (is_array($compareval)) {
  • woocommerce-basic-ordernumbers/tags/1.4.2/readme.txt

    r1680797 r1708995  
    55Requires at least: 4.0
    66Tested up to: 4.8
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    7979== Changelog ==
    8080
     81= 1.4.2 =
     82* Allow comparing arrays with empty value in the variable definitions
     83
    8184= 1.4.1 =
    8285* Fix searching order numbers, sorting by order number in the order list
  • woocommerce-basic-ordernumbers/tags/1.4.2/woocommerce-basic-ordernumbers.php

    r1680797 r1708995  
    44 * Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html
    55 * Description: Configure WooCommerce ordernumbers to have a running counter and arbitrary, fixed text (prefix / postfix).
    6  * Version: 1.4.1
     6 * Version: 1.4.2
    77 * Author: Open Tools
    88 * Author URI: http://open-tools.net
     
    1111 * Network: true
    1212 * WC requires at least: 2.2
    13  * WC tested up to: 3.0
     13 * WC tested up to: 3.1
    1414*/
    1515
  • woocommerce-basic-ordernumbers/trunk/library/ordernumber_helper.php

    r1452202 r1708995  
    301301                            $match = true; break;
    302302                    case 'equals':
    303                             $match = ($compareval == $condval); break;
     303                            if (is_array($compareval)) {
     304                                $match = ($condval == '') && empty($compareval);
     305                            } else {
     306                                $match = ($compareval == $condval);
     307                            }
     308                            break;
    304309                    case 'contains':
    305310                            if (is_array($compareval)) {
  • woocommerce-basic-ordernumbers/trunk/readme.txt

    r1680797 r1708995  
    55Requires at least: 4.0
    66Tested up to: 4.8
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    7979== Changelog ==
    8080
     81= 1.4.2 =
     82* Allow comparing arrays with empty value in the variable definitions
     83
    8184= 1.4.1 =
    8285* Fix searching order numbers, sorting by order number in the order list
  • woocommerce-basic-ordernumbers/trunk/woocommerce-basic-ordernumbers.php

    r1680797 r1708995  
    44 * Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html
    55 * Description: Configure WooCommerce ordernumbers to have a running counter and arbitrary, fixed text (prefix / postfix).
    6  * Version: 1.4.1
     6 * Version: 1.4.2
    77 * Author: Open Tools
    88 * Author URI: http://open-tools.net
     
    1111 * Network: true
    1212 * WC requires at least: 2.2
    13  * WC tested up to: 3.0
     13 * WC tested up to: 3.1
    1414*/
    1515
Note: See TracChangeset for help on using the changeset viewer.