Perfect Brands for WooCommerce - Version 2.0.7

Version Description

  • Fix: Brand image output sanitization
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 Perfect Brands for WooCommerce
Version 2.0.7
Comparing to
See all releases

Code changes from version 2.0.6 to 2.0.7

classes/admin/class-edit-brands-page.php CHANGED
@@ -24,7 +24,7 @@ class Edit_Brands_Page {
24
  add_action( 'after-pwb-brand-table', array( $this, 'add_brands_count' ) );
25
  }
26
 
27
- // phpcs:ignore WordPress.Security.NonceVerification.Missing
28
  private static function is_edit_brands_page() {
29
  global $pagenow;
30
  return ( $pagenow == 'edit-tags.php' && isset( $_GET['taxonomy'] ) && $_GET['taxonomy'] == 'pwb-brand' ) ? true : false; // phpcs:ignore WordPress.Security.NonceVerification.Missing
24
  add_action( 'after-pwb-brand-table', array( $this, 'add_brands_count' ) );
25
  }
26
 
27
+ // phpcs:ignore WordPress.Security.NonceVerification.Missing
28
  private static function is_edit_brands_page() {
29
  global $pagenow;
30
  return ( $pagenow == 'edit-tags.php' && isset( $_GET['taxonomy'] ) && $_GET['taxonomy'] == 'pwb-brand' ) ? true : false; // phpcs:ignore WordPress.Security.NonceVerification.Missing
classes/class-perfect-woocommerce-brands.php CHANGED
@@ -211,6 +211,7 @@ class Perfect_Woocommerce_Brands {
211
  }
212
 
213
  public function pwb_brand_filter( $query ) {
 
214
  if ( ! empty( $_GET['pwb-brand-filter'] ) ) {
215
 
216
  $terms_array = explode( ',', sanitize_text_field( $_GET['pwb-brand-filter'] ) );
@@ -324,7 +325,7 @@ class Perfect_Woocommerce_Brands {
324
 
325
  $attachment_html = wp_get_attachment_image( $attachment_id, $image_size_selected );
326
  if ( ! empty( $attachment_html ) && $brands_in_loop == 'brand_image' ) {
327
- echo '<a href="' . esc_url( $brand_link ) . '">' . esc_html( $attachment_html ) . '</a>';
328
  } else {
329
  echo '<a href="' . esc_url( $brand_link ) . '">' . esc_html( $brand->name ) . '</a>';
330
  }
211
  }
212
 
213
  public function pwb_brand_filter( $query ) {
214
+
215
  if ( ! empty( $_GET['pwb-brand-filter'] ) ) {
216
 
217
  $terms_array = explode( ',', sanitize_text_field( $_GET['pwb-brand-filter'] ) );
325
 
326
  $attachment_html = wp_get_attachment_image( $attachment_id, $image_size_selected );
327
  if ( ! empty( $attachment_html ) && $brands_in_loop == 'brand_image' ) {
328
+ echo '<a href="' . esc_url( $brand_link ) . '">' . wp_kses_post( $attachment_html ) . '</a>';
329
  } else {
330
  echo '<a href="' . esc_url( $brand_link ) . '">' . esc_html( $brand->name ) . '</a>';
331
  }
perfect-woocommerce-brands.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Perfect Brands for WooCommerce
5
  * Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
6
  * Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
7
- * Version: 2.0.6
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * Text Domain: perfect-woocommerce-brands
@@ -36,7 +36,7 @@ define( 'PWB_PLUGIN_FILE', __FILE__ );
36
  define( 'PWB_PLUGIN_URL', plugins_url( '', __FILE__ ) );
37
  define( 'PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
38
  define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
39
- define( 'PWB_PLUGIN_VERSION', '2.0.6' );
40
  define( 'PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands' );
41
  define( 'PWB_PREFIX', 'pwb' );
42
  define( 'PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post' );
4
  * Plugin Name: Perfect Brands for WooCommerce
5
  * Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
6
  * Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
7
+ * Version: 2.0.7
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * Text Domain: perfect-woocommerce-brands
36
  define( 'PWB_PLUGIN_URL', plugins_url( '', __FILE__ ) );
37
  define( 'PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
38
  define( 'PWB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
39
+ define( 'PWB_PLUGIN_VERSION', '2.0.7' );
40
  define( 'PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands' );
41
  define( 'PWB_PREFIX', 'pwb' );
42
  define( 'PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post' );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, woocommerce brands, woocommerce product, woocommerce manufact
5
  Requires at least: 4.7
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.6
9
  WC requires at least: 3.0
10
  WC tested up to: 6.1
11
  License: GPLv3
@@ -90,6 +90,8 @@ You can also contribute [translating the plugin](https://translate.wordpress.org
90
 
91
 
92
  == Changelog ==
 
 
93
  = 2.0.6 =
94
  * Fix: Output sanitization
95
  = 2.0.5 =
5
  Requires at least: 4.7
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.7
9
  WC requires at least: 3.0
10
  WC tested up to: 6.1
11
  License: GPLv3
90
 
91
 
92
  == Changelog ==
93
+ = 2.0.7 =
94
+ * Fix: Brand image output sanitization
95
  = 2.0.6 =
96
  * Fix: Output sanitization
97
  = 2.0.5 =