← All changes
|
includes/elementor/modules/product-quantity/widgets/product-quantity.php
+2
-2
1.1.4
→
2.7.0
View file →
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | public function get_icon() { |
| 23 | 23 | return 'sellkit-element-icon sellkit-quantity-selector-icon'; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - protected function _register_controls() { | |
| 26 | + protected function register_controls() { | |
| 27 | 27 | $this->start_controls_section( |
| 28 | 28 | 'style_tab', |
| 29 | 29 | [ |
| 30 | 30 | 'label' => __( 'Style', 'sellkit' ), |
| @@ -136,9 +136,9 @@ | ||
| 136 | 136 | $this->end_controls_section(); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | protected function render() { |
| 140 | - global $product; | |
| 140 | + global $product; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WooCommerce template pattern. | |
| 141 | 141 | |
| 142 | 142 | $product = $this->get_product_object(); |
| 143 | 143 | |
| 144 | 144 | if ( empty( $product ) ) { |