WooCommerce - Version 5.5.1

Version Description

Download this release

Release Info

Developer sadowski
Plugin Icon 128x128 WooCommerce
Version 5.5.1
Comparing to
See all releases

Code changes from version 5.5.0 to 5.5.1

includes/class-woocommerce.php CHANGED
@@ -26,7 +26,7 @@ final class WooCommerce {
26
  *
27
  * @var string
28
  */
29
- public $version = '5.5.0';
30
 
31
  /**
32
  * WooCommerce Schema version.
26
  *
27
  * @var string
28
  */
29
+ public $version = '5.5.1';
30
 
31
  /**
32
  * WooCommerce Schema version.
includes/data-stores/class-wc-webhook-data-store.php CHANGED
@@ -277,7 +277,7 @@ class WC_Webhook_Data_Store implements WC_Webhook_Data_Store_Interface {
277
  $limit = -1 < $args['limit'] ? $wpdb->prepare( 'LIMIT %d', $args['limit'] ) : '';
278
  $offset = 0 < $args['offset'] ? $wpdb->prepare( 'OFFSET %d', $args['offset'] ) : '';
279
  $status = ! empty( $args['status'] ) ? $wpdb->prepare( 'AND `status` = %s', isset( $statuses[ $args['status'] ] ) ? $statuses[ $args['status'] ] : $args['status'] ) : '';
280
- $search = ! empty( $args['search'] ) ? "AND `name` LIKE '%" . $wpdb->esc_like( sanitize_text_field( $args['search'] ) ) . "%'" : '';
281
  $include = '';
282
  $exclude = '';
283
  $date_created = '';
277
  $limit = -1 < $args['limit'] ? $wpdb->prepare( 'LIMIT %d', $args['limit'] ) : '';
278
  $offset = 0 < $args['offset'] ? $wpdb->prepare( 'OFFSET %d', $args['offset'] ) : '';
279
  $status = ! empty( $args['status'] ) ? $wpdb->prepare( 'AND `status` = %s', isset( $statuses[ $args['status'] ] ) ? $statuses[ $args['status'] ] : $args['status'] ) : '';
280
+ $search = ! empty( $args['search'] ) ? $wpdb->prepare( "AND `name` LIKE %s", '%' . $wpdb->esc_like( sanitize_text_field( $args['search'] ) ) . '%' ) : '';
281
  $include = '';
282
  $exclude = '';
283
  $date_created = '';
packages/woocommerce-blocks/src/StoreApi/Utilities/ProductQueryFilters.php CHANGED
@@ -83,7 +83,13 @@ class ProductQueryFilters {
83
  $attributes = array_map( 'wc_attribute_taxonomy_name_by_id', wp_parse_id_list( $attributes ) );
84
  }
85
 
86
- $attributes_to_count = array_map( 'wc_sanitize_taxonomy_name', $attributes );
 
 
 
 
 
 
87
  $attributes_to_count_sql = 'AND term_taxonomy.taxonomy IN ("' . implode( '","', $attributes_to_count ) . '")';
88
  $attribute_count_sql = "
89
  SELECT COUNT( DISTINCT posts.ID ) as term_count, terms.term_id as term_count_id
83
  $attributes = array_map( 'wc_attribute_taxonomy_name_by_id', wp_parse_id_list( $attributes ) );
84
  }
85
 
86
+ $attributes_to_count = array_map(
87
+ function( $attribute ) {
88
+ $attribute = wc_sanitize_taxonomy_name( $attribute );
89
+ return esc_sql( $attribute );
90
+ },
91
+ $attributes
92
+ );
93
  $attributes_to_count_sql = 'AND term_taxonomy.taxonomy IN ("' . implode( '","', $attributes_to_count ) . '")';
94
  $attribute_count_sql = "
95
  SELECT COUNT( DISTINCT posts.ID ) as term_count, terms.term_id as term_count_id
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: e-commerce, store, sales, sell, woo, shop, cart, checkout, downloadable, d
4
  Requires at least: 5.5
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
- Stable tag: 5.5.0
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
4
  Requires at least: 5.5
5
  Tested up to: 5.7
6
  Requires PHP: 7.0
7
+ Stable tag: 5.5.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
woocommerce.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce
4
  * Plugin URI: https://woocommerce.com/
5
  * Description: An eCommerce toolkit that helps you sell anything. Beautifully.
6
- * Version: 5.5.0
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woocommerce
3
  * Plugin Name: WooCommerce
4
  * Plugin URI: https://woocommerce.com/
5
  * Description: An eCommerce toolkit that helps you sell anything. Beautifully.
6
+ * Version: 5.5.1
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woocommerce