diff --git a/plugins/woocommerce/changelog/pr-52218 b/plugins/woocommerce/changelog/pr-52218 new file mode 100644 index 00000000000..5a4d5392681 --- /dev/null +++ b/plugins/woocommerce/changelog/pr-52218 @@ -0,0 +1,4 @@ +Significance: patch +Type: tweak + +Fix capitalization of Privacy policy and Terms and conditions diff --git a/plugins/woocommerce/includes/wc-template-functions.php b/plugins/woocommerce/includes/wc-template-functions.php index 57b733b9802..81e1f9608ed 100644 --- a/plugins/woocommerce/includes/wc-template-functions.php +++ b/plugins/woocommerce/includes/wc-template-functions.php @@ -960,8 +960,8 @@ function wc_privacy_policy_text( $type = 'checkout' ) { function wc_replace_policy_page_link_placeholders( $text ) { $privacy_page_id = wc_privacy_policy_page_id(); $terms_page_id = wc_terms_and_conditions_page_id(); - $privacy_link = $privacy_page_id ? '' . __( 'privacy policy', 'woocommerce' ) . '' : __( 'privacy policy', 'woocommerce' ); - $terms_link = $terms_page_id ? '' . __( 'terms and conditions', 'woocommerce' ) . '' : __( 'terms and conditions', 'woocommerce' ); + $privacy_link = $privacy_page_id ? '' . __( 'Privacy policy', 'woocommerce' ) . '' : __( 'Privacy policy', 'woocommerce' ); + $terms_link = $terms_page_id ? '' . __( 'Terms and conditions', 'woocommerce' ) . '' : __( 'Terms and conditions', 'woocommerce' ); $find_replace = array( '[terms]' => $terms_link,