PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.22
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.22
1.4.22 1.4.21 1.4.20 1.4.19 1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 All 185 releases
← All changes | app/Attributes/AttributeFactory.php +4 -4 1.4.11 → 1.4.22 View file →
@@ -127,9 +127,9 @@
127 127 $key = str_replace( $prefix, '', $method_name );
128 128 }
129 129
130 130 // If the class is Cart or Customer, we don't need to pass any info.
131 - if ( $class_name === Cart::class || $class_name === Customer::class ) {
131 + if ( Cart::class === $class_name || Customer::class === $class_name ) {
132 132 return array(
133 133 new $class_name,
134 134 $method,
135 135 $key,
@@ -135,14 +135,14 @@
135 135 $key,
136 136 );
137 137 }
138 138
139 - if ( $class_name === CustomerHistory::class || $class_name === ProductHistory::class ) {
139 + if ( CustomerHistory::class === $class_name || ProductHistory::class === $class_name ) {
140 140 // remove prefix from method name.
141 141 $method = str_replace( $prefix . '_', '', $method_name );
142 142 }
143 143
144 - if ( $class_name === ProductHistory::class ) {
144 + if ( ProductHistory::class === $class_name ) {
145 145 $product = $info['product'];
146 146 \assert( $product instanceof \WC_Product );
147 147
148 148 return array(
@@ -151,9 +151,9 @@
151 151 $key,
152 152 );
153 153 }
154 154
155 - if ( $class_name === Product::class ) {
155 + if ( Product::class === $class_name ) {
156 156 $product = $info['product'];
157 157 \assert( $product instanceof \WC_Product );
158 158
159 159 return array(