Version Description
Download this release
Release Info
Developer | quadlayers |
Plugin | Perfect Brands for WooCommerce |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
classes/class-perfect-woocommerce-brands.php
CHANGED
@@ -22,8 +22,8 @@ class Perfect_Woocommerce_Brands {
|
|
22 |
add_action( 'widgets_init', array( $this, 'register_widgets' ) );
|
23 |
add_filter( 'woocommerce_structured_data_product', array( $this, 'product_microdata' ), 10, 2 );
|
24 |
add_action( 'pre_get_posts', array( $this, 'pwb_brand_filter' ) );
|
25 |
-
add_action( 'wp_ajax_pwb_dismiss_notice', array( $this, 'dismiss_notice' ) );
|
26 |
-
add_action( 'admin_notices', array( $this, 'review_notice' ) );
|
27 |
|
28 |
add_action(
|
29 |
'wp',
|
@@ -165,7 +165,7 @@ class Perfect_Woocommerce_Brands {
|
|
165 |
return $query_args;
|
166 |
}
|
167 |
|
168 |
-
|
169 |
$show_notice = get_option( 'wc_pwb_notice_plugin_review', true );
|
170 |
$activate_on = get_option( 'pwb_activate_on', time() );
|
171 |
$now = time();
|
@@ -184,9 +184,9 @@ class Perfect_Woocommerce_Brands {
|
|
184 |
</div>
|
185 |
<?php
|
186 |
}
|
187 |
-
}
|
188 |
|
189 |
-
|
190 |
if (
|
191 |
isset( $_REQUEST['nonce'] )
|
192 |
&&
|
@@ -208,7 +208,7 @@ class Perfect_Woocommerce_Brands {
|
|
208 |
}
|
209 |
}
|
210 |
wp_die();
|
211 |
-
}
|
212 |
|
213 |
public function pwb_brand_filter( $query ) {
|
214 |
|
@@ -685,7 +685,7 @@ class Perfect_Woocommerce_Brands {
|
|
685 |
echo '<div class="pwb-single-product-brands pwb-clearfix">';
|
686 |
|
687 |
if ( $show_as == 'brand_link' ) {
|
688 |
-
$before_brands_links
|
689 |
$before_brands_links .= apply_filters( 'pwb_text_before_brands_links', esc_html( _n( 'Brand', 'Brands', count( $brands ), 'perfect-woocommerce-brands' ) ), count( $brands ) );
|
690 |
$before_brands_links .= ':</span>';
|
691 |
echo wp_kses_post( apply_filters( 'pwb_html_before_brands_links', $before_brands_links ) );
|
@@ -787,7 +787,7 @@ class Perfect_Woocommerce_Brands {
|
|
787 |
'nonce' => array(
|
788 |
'pwb_brands_export' => wp_create_nonce( 'pwb_brands_export' ), // ok
|
789 |
'pwb_brands_import' => wp_create_nonce( 'pwb_brands_import' ), // ok
|
790 |
-
'pwb_dismiss_notice' => wp_create_nonce( 'pwb_dismiss_notice' ), // ok
|
791 |
'pwb_admin_set_featured_brand' => wp_create_nonce( 'pwb_admin_set_featured_brand' ), // ok
|
792 |
'pwb_admin_save_screen_settings' => wp_create_nonce( 'pwb_admin_save_screen_settings' ), // ok
|
793 |
'pwb_admin_dummy_data' => wp_create_nonce( 'pwb_admin_dummy_data' ), // ok
|
22 |
add_action( 'widgets_init', array( $this, 'register_widgets' ) );
|
23 |
add_filter( 'woocommerce_structured_data_product', array( $this, 'product_microdata' ), 10, 2 );
|
24 |
add_action( 'pre_get_posts', array( $this, 'pwb_brand_filter' ) );
|
25 |
+
// add_action( 'wp_ajax_pwb_dismiss_notice', array( $this, 'dismiss_notice' ) );
|
26 |
+
// add_action( 'admin_notices', array( $this, 'review_notice' ) );
|
27 |
|
28 |
add_action(
|
29 |
'wp',
|
165 |
return $query_args;
|
166 |
}
|
167 |
|
168 |
+
/* public function review_notice() {
|
169 |
$show_notice = get_option( 'wc_pwb_notice_plugin_review', true );
|
170 |
$activate_on = get_option( 'pwb_activate_on', time() );
|
171 |
$now = time();
|
184 |
</div>
|
185 |
<?php
|
186 |
}
|
187 |
+
} */
|
188 |
|
189 |
+
/* public function dismiss_notice() {
|
190 |
if (
|
191 |
isset( $_REQUEST['nonce'] )
|
192 |
&&
|
208 |
}
|
209 |
}
|
210 |
wp_die();
|
211 |
+
} */
|
212 |
|
213 |
public function pwb_brand_filter( $query ) {
|
214 |
|
685 |
echo '<div class="pwb-single-product-brands pwb-clearfix">';
|
686 |
|
687 |
if ( $show_as == 'brand_link' ) {
|
688 |
+
$before_brands_links = '<span class="pwb-text-before-brands-links">';
|
689 |
$before_brands_links .= apply_filters( 'pwb_text_before_brands_links', esc_html( _n( 'Brand', 'Brands', count( $brands ), 'perfect-woocommerce-brands' ) ), count( $brands ) );
|
690 |
$before_brands_links .= ':</span>';
|
691 |
echo wp_kses_post( apply_filters( 'pwb_html_before_brands_links', $before_brands_links ) );
|
787 |
'nonce' => array(
|
788 |
'pwb_brands_export' => wp_create_nonce( 'pwb_brands_export' ), // ok
|
789 |
'pwb_brands_import' => wp_create_nonce( 'pwb_brands_import' ), // ok
|
790 |
+
// 'pwb_dismiss_notice' => wp_create_nonce( 'pwb_dismiss_notice' ), // ok
|
791 |
'pwb_admin_set_featured_brand' => wp_create_nonce( 'pwb_admin_set_featured_brand' ), // ok
|
792 |
'pwb_admin_save_screen_settings' => wp_create_nonce( 'pwb_admin_save_screen_settings' ), // ok
|
793 |
'pwb_admin_dummy_data' => wp_create_nonce( 'pwb_admin_dummy_data' ), // ok
|
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.2.
|
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.2.
|
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.2.4
|
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.2.4' );
|
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: 6.0
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.2.
|
9 |
WC requires at least: 3.0
|
10 |
WC tested up to: 6.9
|
11 |
License: GPLv3
|
@@ -90,6 +90,8 @@ You can also contribute [translating the plugin](https://translate.wordpress.org
|
|
90 |
|
91 |
|
92 |
== Changelog ==
|
|
|
|
|
93 |
= 2.2.3=
|
94 |
* Fix: php error
|
95 |
= 2.2.2=
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.2.4
|
9 |
WC requires at least: 3.0
|
10 |
WC tested up to: 6.9
|
11 |
License: GPLv3
|
90 |
|
91 |
|
92 |
== Changelog ==
|
93 |
+
= 2.2.4=
|
94 |
+
* Fix: rating notification
|
95 |
= 2.2.3=
|
96 |
* Fix: php error
|
97 |
= 2.2.2=
|