Completed
Pull Request — master (#5)
by
unknown
02:05
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 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
 			
304 304
 			// ALSO HIDE ON PRODUCT TAG PAGES
305 305
 			$q_object = get_queried_object();
306
-			if (isset($q_object->taxonomy) && $q_object->taxonomy == 'product_tag'){
306
+			if ( isset( $q_object->taxonomy ) && $q_object->taxonomy == 'product_tag' ) {
307 307
 				$ids_to_hide = $this->hide_from_shop;
308 308
 			}
309 309
 			
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@
 block discarded – undo
303 303
 			
304 304
 			// ALSO HIDE ON PRODUCT TAG PAGES
305 305
 			$q_object = get_queried_object();
306
-			if (isset($q_object->taxonomy) && $q_object->taxonomy == 'product_tag'){
306
+			if (isset($q_object->taxonomy) && $q_object->taxonomy == 'product_tag') {
307 307
 				$ids_to_hide = $this->hide_from_shop;
308 308
 			}
309 309
 			
Please login to merge, or discard this patch.