abs-wc-widget-coding-stds
Few coding standard fixes in the file abstract-wc-widget.php
This commit is contained in:
parent
6fd8971b8d
commit
8dbb795610
|
@ -59,8 +59,8 @@ abstract class WC_Widget extends WP_Widget {
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$widget_ops = array(
|
$widget_ops = array(
|
||||||
'classname' => $this->widget_cssclass,
|
'classname' => $this->widget_cssclass,
|
||||||
'description' => $this->widget_description,
|
'description' => $this->widget_description,
|
||||||
'customize_selective_refresh' => true,
|
'customize_selective_refresh' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ abstract class WC_Widget extends WP_Widget {
|
||||||
$link = get_term_link( get_query_var( 'product_tag' ), 'product_tag' );
|
$link = get_term_link( get_query_var( 'product_tag' ), 'product_tag' );
|
||||||
} else {
|
} else {
|
||||||
$queried_object = get_queried_object();
|
$queried_object = get_queried_object();
|
||||||
$link = get_term_link( $queried_object->slug, $queried_object->taxonomy );
|
$link = get_term_link( $queried_object->slug, $queried_object->taxonomy );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Min/Max.
|
// Min/Max.
|
||||||
|
|
Loading…
Reference in New Issue