mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-20 10:03:43 +03:00
Remove unwanted text-domains from WPCS checks and fix missed old text-domains
This commit is contained in:
parent
7e8c847471
commit
6422f7fd24
|
@ -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>
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue