Plugin Directory

Changeset 2680936


Ignore:
Timestamp:
02/17/2022 04:14:16 PM (4 years ago)
Author:
visser
Message:

Fixed PHP 8 issue in Product nuke (thanks @webshaun)
Fixed PHP 8 deprecation notice (thanks @martin_bailey)

Location:
woocommerce-store-toolkit/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-store-toolkit/trunk/includes/functions.php

    r2532824 r2680936  
    529529    /* Start of: Storefront */
    530530
    531     function woo_st_autocomplete_order_status( $order_id = 0, $posted ) {
     531    function woo_st_autocomplete_order_status( $order_id = 0, $posted = false ) {
    532532
    533533        if( !empty( $order_id ) ) {
  • woocommerce-store-toolkit/trunk/readme.txt

    r2654537 r2680936  
    66Requires at least: 2.9.2
    77Tested up to: 5.8.2
    8 Stable tag: 2.3.2
     8Stable tag: 2.3.3
    99License: GPLv2 or later
    1010
     
    117117== Support ==
    118118
    119 If you have any problems, questions or suggestions please join the members discussion on my WooCommerce dedicated forum.
     119If you have any problems, questions or suggestions please join the members discussion on our WooCommerce dedicated forum.
    120120
    121121http://www.visser.com.au/woocommerce/forums/
     
    128128
    129129== Changelog ==
     130
     131= 2.3.3 =
     132* Fixed PHP 8 issue in Product nuke (thanks @webshaun)
     133* Fixed PHP 8 deprecation notice (thanks @martin_bailey)
    130134
    131135= 2.3.2 =
  • woocommerce-store-toolkit/trunk/store-toolkit.php

    r2654503 r2680936  
    44Plugin URI: https://wordpress.org/plugins/woocommerce-store-toolkit/
    55Description: Store Toolkit includes a growing set of commonly-used WooCommerce administration tools aimed at web developers and store maintainers.
    6 Version: 2.3.2
     6Version: 2.3.3
    77Author: Visser Labs
    88Author URI: http://www.visser.com.au/about/
     
    1313
    1414WC requires at least: 2.3
    15 WC tested up to: 5.9.0
     15WC tested up to: 6.2.0
    1616*/
    1717
     
    9090                if( isset( $_POST['woo_st_products'] ) ) {
    9191                    $product_status = ( isset( $_POST['woo_st_products_status'] ) ? array_map( 'sanitize_text_field', $_POST['woo_st_products_status'] ) : false );
    92                     $args = array(
    93                         'product_status' => array_values( $product_status )
    94                     );
     92                    $args = array();
     93                    if( !empty( $product_status ) ) {
     94                        $args['product_status'] = array_values( $product_status );
     95                    }
    9596                    $response = woo_st_clear_dataset( 'product', $args );
    9697                }
Note: See TracChangeset for help on using the changeset viewer.