WooCommerce Germanized - Version 1.6.1

Version Description

Download this release

Release Info

Developer vendidero
Plugin Icon 128x128 WooCommerce Germanized
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6.0 to 1.6.1

includes/abstracts/abstract-wc-gzd-taxonomy.php CHANGED
@@ -54,7 +54,7 @@ class WC_GZD_Taxonomy {
54
  public function get_terms() {
55
  $list = array();
56
  $terms = get_terms( $this->taxonomy, array( 'hide_empty' => false ) );
57
- if ( ! empty( $terms ) ) {
58
  foreach ( $terms as $term )
59
  $list[ $term->slug ] = $term->name;
60
  }
54
  public function get_terms() {
55
  $list = array();
56
  $terms = get_terms( $this->taxonomy, array( 'hide_empty' => false ) );
57
+ if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
58
  foreach ( $terms as $term )
59
  $list[ $term->slug ] = $term->name;
60
  }
includes/trusted-shops/class-wc-gzd-trusted-shops.php CHANGED
@@ -118,7 +118,7 @@ class WC_GZD_Trusted_Shops {
118
  }
119
 
120
  public function get_dependency_name( $name ) {
121
- $classname = 'WC_' . $this->prefix . 'Trusted_Shops_' . ucwords( str_replace( '-', '_', strtolower( $name ) ), '_' );
122
  return $classname;
123
  }
124
 
118
  }
119
 
120
  public function get_dependency_name( $name ) {
121
+ $classname = 'WC_' . $this->prefix . 'Trusted_Shops_' . ucwords( str_replace( '-', '_', strtolower( $name ) ) );
122
  return $classname;
123
  }
124
 
includes/updates/woocommerce-gzd-update-1.6.0.php CHANGED
@@ -33,7 +33,7 @@ foreach ( $update_variations as $variation ) {
33
  // Rename all _unit of children
34
  $wpdb->query("
35
  UPDATE {$wpdb->postmeta} pm
36
- LEFT OUTER JOIN wp_posts p ON pm.post_id = p.ID
37
  SET pm.meta_key = '_unit_pre'
38
  WHERE p.post_type = 'product_variation'
39
  AND pm.meta_key = '_unit'
@@ -42,7 +42,7 @@ $wpdb->query("
42
  // Rename all _unit_base of children
43
  $wpdb->query("
44
  UPDATE {$wpdb->postmeta} pm
45
- LEFT OUTER JOIN wp_posts p ON pm.post_id = p.ID
46
  SET pm.meta_key = '_unit_base_pre'
47
  WHERE p.post_type = 'product_variation'
48
  AND pm.meta_key = '_unit_base'
33
  // Rename all _unit of children
34
  $wpdb->query("
35
  UPDATE {$wpdb->postmeta} pm
36
+ LEFT OUTER JOIN {$wpdb->posts} p ON pm.post_id = p.ID
37
  SET pm.meta_key = '_unit_pre'
38
  WHERE p.post_type = 'product_variation'
39
  AND pm.meta_key = '_unit'
42
  // Rename all _unit_base of children
43
  $wpdb->query("
44
  UPDATE {$wpdb->postmeta} pm
45
+ LEFT OUTER JOIN {$wpdb->posts} p ON pm.post_id = p.ID
46
  SET pm.meta_key = '_unit_base_pre'
47
  WHERE p.post_type = 'product_variation'
48
  AND pm.meta_key = '_unit_base'
woocommerce-germanized.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce Germanized
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Extends WooCommerce to become a legally compliant store for the german market.
6
- * Version: 1.6.0
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 3.8
@@ -26,7 +26,7 @@ final class WooCommerce_Germanized {
26
  *
27
  * @var string
28
  */
29
- public $version = '1.6.0';
30
 
31
  /**
32
  * Single instance of WooCommerce Germanized Main Class
3
  * Plugin Name: WooCommerce Germanized
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Extends WooCommerce to become a legally compliant store for the german market.
6
+ * Version: 1.6.1
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 3.8
26
  *
27
  * @var string
28
  */
29
+ public $version = '1.6.1';
30
 
31
  /**
32
  * Single instance of WooCommerce Germanized Main Class