abs-wc-widget-coding-stds

Few coding standard fixes in the file abstract-wc-widget.php
This commit is contained in:
Faisal Alvi 2018-12-07 18:57:03 +05:30
parent 6fd8971b8d
commit 8dbb795610
1 changed files with 3 additions and 3 deletions

View File

@ -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.