From 36f2b7d744df02d67cc208f869e7fe0b743e179e Mon Sep 17 00:00:00 2001 From: Andrej Mernik Date: Mon, 18 Nov 2019 07:58:46 +0100 Subject: [PATCH 1/8] Allow related title changes This modification enables the change of the related products title via a filter --- templates/single-product/related.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/single-product/related.php b/templates/single-product/related.php index 7617263aa4d..02360090ae4 100644 --- a/templates/single-product/related.php +++ b/templates/single-product/related.php @@ -22,9 +22,12 @@ if ( ! defined( 'ABSPATH' ) ) { if ( $related_products ) : ?> - - Date: Fri, 22 Nov 2019 07:07:27 +0100 Subject: [PATCH 8/8] Change phpcs:ignore syntax --- templates/single-product/related.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/single-product/related.php b/templates/single-product/related.php index 13831d878d5..a9b4210be57 100644 --- a/templates/single-product/related.php +++ b/templates/single-product/related.php @@ -38,7 +38,7 @@ if ( $related_products ) : ?> get_id() ); - setup_postdata( $GLOBALS['post'] =& $post_object ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited, Squiz.PHP.DisallowMultipleAssignments.Found + setup_postdata( $GLOBALS['post'] =& $post_object ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited, Squiz.PHP.DisallowMultipleAssignments.Found wc_get_template_part( 'content', 'product' ); ?>