From 6422f7fd2407b81f7689239b15f66ac0916c9aaf Mon Sep 17 00:00:00 2001 From: Jb Date: Sat, 23 Nov 2019 18:48:10 +0100 Subject: [PATCH] Remove unwanted text-domains from WPCS checks and fix missed old text-domains --- phpcs.xml.dist | 2 +- plugins/wporg-5ftf/includes/pledge-form.php | 2 +- themes/wporg-5ftf/single-5ftf_pledge.php | 4 ++-- themes/wporg-5ftf/template-parts/content-5ftf_pledge.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index e0de47e..5f98c99 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -143,7 +143,7 @@ provided as a comma-delimited list. --> - + diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index 1020101..c17f32f 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -293,7 +293,7 @@ function parse_contributors( $contributors ) { if ( ! empty( $invalid_contributors ) ) { /* translators: Used between sponsor names in a list, there is a space after the comma. */ - $item_separator = _x( ', ', 'list item separator', 'wporg' ); + $item_separator = _x( ', ', 'list item separator', 'wporg-5ftf' ); return new WP_Error( 'invalid_contributor', diff --git a/themes/wporg-5ftf/single-5ftf_pledge.php b/themes/wporg-5ftf/single-5ftf_pledge.php index 2326f08..bca4e80 100644 --- a/themes/wporg-5ftf/single-5ftf_pledge.php +++ b/themes/wporg-5ftf/single-5ftf_pledge.php @@ -52,7 +52,7 @@ get_header();
-

+

-

+

    diff --git a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php index be0eb6d..957f1d8 100644 --- a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php +++ b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php @@ -39,7 +39,7 @@ $total_hours = $pledge->{ PledgeMeta\META_PREFIX . 'pledge-total-hours' }; $contributor_title = sprintf( esc_html( - _n( '%1$s has pledged %2$d hour a week', '%1$s has pledged %2$d hours a week', $total_hours, 'wordpressorg' ) + _n( '%1$s has pledged %2$d hour a week', '%1$s has pledged %2$d hours a week', $total_hours, 'wporg-5ftf' ) ), wp_kses_post( get_the_title() ), intval( $total_hours )