mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-15 06:45:47 +03:00
Use a unique text-domain, wporg-5ftf (#110)
* Use a unique text-domain, wporg-5ftf * Fix plugin i18n strings * Remove unwanted text-domains from WPCS checks and fix missed old text-domains * Remove type=array from phpcs * Re-add type=array * Small WPCS fix * WPCS: replace var with
This commit is contained in:
parent
aec40e6c7e
commit
0754ae0b28
17 changed files with 108 additions and 108 deletions
|
@ -20,26 +20,26 @@ $allowed_html = array_merge(
|
|||
wp_kses_allowed_html( 'data' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => true
|
||||
)
|
||||
'class' => true,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
$more = sprintf(
|
||||
__( '… <a href="%s">continue reading <span class="screen-reader-text">%s</span></a>', 'wporg-5ftf' ),
|
||||
$more_text = sprintf(
|
||||
__( '… <a href="%1$s">continue reading <span class="screen-reader-text">%2$s</span></a>', 'wporg-5ftf' ),
|
||||
esc_url( get_permalink() ),
|
||||
esc_html( get_the_title() )
|
||||
);
|
||||
|
||||
$content = apply_filters( 'the_content', $data['org-description'] );
|
||||
$content = strip_tags( $content );
|
||||
$content = wp_trim_words( $content, 55, $more );
|
||||
$content = wp_trim_words( $content, 55, $more_text );
|
||||
|
||||
$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…
Add table
Add a link
Reference in a new issue