Remove unwanted text-domains from WPCS checks and fix missed old text-domains

This commit is contained in:
Jb 2019-11-23 18:48:10 +01:00
parent 7e8c847471
commit 6422f7fd24
4 changed files with 5 additions and 5 deletions

View file

@ -143,7 +143,7 @@
provided as a comma-delimited list. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="wporg-5ftf,wordpressorg,wporg" />
<property name="text_domain" type="array" value="wporg-5ftf" />
</properties>
</rule>
</ruleset>

View file

@ -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',

View file

@ -52,7 +52,7 @@ get_header();
</header>
<div class="entry-content">
<h2><?php esc_html_e( 'About', 'wporg' ); ?></h2>
<h2><?php esc_html_e( 'About', 'wporg-5ftf' ); ?></h2>
<div class="pledge-company-description">
<?php
@ -97,7 +97,7 @@ get_header();
</ul>
<?php endif; ?>
<h2><?php esc_html_e( 'Contributors', 'wporg' ); ?></h2>
<h2><?php esc_html_e( 'Contributors', 'wporg-5ftf' ); ?></h2>
<?php if ( ! empty( $contributors ) ) : ?>
<ul class="pledge-contributors has-contrib-names">

View file

@ -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 )