mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 19:13:44 +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. -->
|
provided as a comma-delimited list. -->
|
||||||
<rule ref="WordPress.WP.I18n">
|
<rule ref="WordPress.WP.I18n">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="text_domain" type="array" value="wporg-5ftf,wordpressorg,wporg" />
|
<property name="text_domain" type="array" value="wporg-5ftf" />
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
|
@ -293,7 +293,7 @@ function parse_contributors( $contributors ) {
|
||||||
|
|
||||||
if ( ! empty( $invalid_contributors ) ) {
|
if ( ! empty( $invalid_contributors ) ) {
|
||||||
/* translators: Used between sponsor names in a list, there is a space after the comma. */
|
/* 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(
|
return new WP_Error(
|
||||||
'invalid_contributor',
|
'invalid_contributor',
|
||||||
|
|
|
@ -52,7 +52,7 @@ get_header();
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<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">
|
<div class="pledge-company-description">
|
||||||
<?php
|
<?php
|
||||||
|
@ -97,7 +97,7 @@ get_header();
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<h2><?php esc_html_e( 'Contributors', 'wporg' ); ?></h2>
|
<h2><?php esc_html_e( 'Contributors', 'wporg-5ftf' ); ?></h2>
|
||||||
|
|
||||||
<?php if ( ! empty( $contributors ) ) : ?>
|
<?php if ( ! empty( $contributors ) ) : ?>
|
||||||
<ul class="pledge-contributors has-contrib-names">
|
<ul class="pledge-contributors has-contrib-names">
|
||||||
|
|
|
@ -39,7 +39,7 @@ $total_hours = $pledge->{ PledgeMeta\META_PREFIX . 'pledge-total-hours' };
|
||||||
|
|
||||||
$contributor_title = sprintf(
|
$contributor_title = sprintf(
|
||||||
esc_html(
|
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() ),
|
wp_kses_post( get_the_title() ),
|
||||||
intval( $total_hours )
|
intval( $total_hours )
|
||||||
|
|
Loading…
Reference in a new issue