Completed
Pull Request — master (#5)
by
unknown
02:29
created
woocommerce-template.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		$alt_option       = get_option( 'dc_alt_text' );
71 71
 		$text             = dp_alt_products_text( $prod_text_option, $text_option, __( 'This product has been discontinued.', 'woocommerce-discontinued-products' ) );
72 72
 		$alt              = dp_alt_products_text( $prod_alt_option, $alt_option, __( 'You may be interested in:', 'woocommerce-discontinued-products' ) );
73
-		$notice           = $no_alt ? '<h4 class="discontinued-notice">' . esc_html($text) . '</H4>' : '<h4 class="discontinued-notice">' . esc_html($text) . '</H4><h4 class="discontinued-notice-alt">' . esc_html($alt) . '</H4>';
73
+		$notice           = $no_alt ? '<h4 class="discontinued-notice">' . esc_html( $text ) . '</H4>' : '<h4 class="discontinued-notice">' . esc_html( $text ) . '</H4><h4 class="discontinued-notice-alt">' . esc_html( $alt ) . '</H4>';
74 74
 		return $notice;
75 75
 	}
76 76
 }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	function discontinued_template_loop_price( $price, $product ) {
121 121
 		$product_id = $product->get_id();
122 122
 		if ( dp_is_discontinued( $product_id ) ) {
123
-			if(is_admin()){
123
+			if ( is_admin() ) {
124 124
 				return 'Discontinued';
125 125
 			}
126 126
 			$prod_text_option = get_post_meta( $product_id, '_discontinued_product_text', true );
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 	function discontinued_template_loop_price( $price, $product ) {
121 121
 		$product_id = $product->get_id();
122 122
 		if ( dp_is_discontinued( $product_id ) ) {
123
-			if(is_admin()){
123
+			if(is_admin()) {
124 124
 				return 'Discontinued';
125 125
 			}
126 126
 			$prod_text_option = get_post_meta( $product_id, '_discontinued_product_text', true );
Please login to merge, or discard this patch.
includes/wc-class-dp-discontinued-product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
 							'compare' => 'NOT EXISTS'
308 308
 						)
309 309
 					));
310
-				$query->set('meta_query', $args);
310
+				$query->set( 'meta_query', $args );
311 311
 			}
312 312
 			return $query;
313 313
 		}
Please login to merge, or discard this patch.