From 32b4cdbcd87d1300ec2ec6c73123b9e6359c0e15 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 30 Sep 2024 17:07:32 -0400 Subject: [PATCH] Pledge details: Prevent count & label from wrapping for contributor data string. Fixes #316 --- themes/wporg-5ftf-2024/inc/block-bindings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/wporg-5ftf-2024/inc/block-bindings.php b/themes/wporg-5ftf-2024/inc/block-bindings.php index 20f3a74..1e5571c 100644 --- a/themes/wporg-5ftf-2024/inc/block-bindings.php +++ b/themes/wporg-5ftf-2024/inc/block-bindings.php @@ -51,10 +51,10 @@ function get_meta_binding_value( $args, $block ) { case 'org-contribution-details': $contribution_data = XProfile\get_aggregate_contributor_data_for_pledge( $block->context['postId'] ); return sprintf( - __( '%1$s sponsors %2$s for a total of %3$s hours per week across %4$d teams.', 'wporg-5ftf' ), + __( '%1$s sponsors %2$s for a total of %3$s hours per week across %4$d teams.', 'wporg-5ftf' ), get_the_title( $block->context['postId'] ), sprintf( - _n( '%d contributor', '%d contributors', $contribution_data['contributors'], 'wporg-5ftf' ), + _n( '%d contributor', '%d contributors', $contribution_data['contributors'], 'wporg-5ftf' ), number_format_i18n( absint( $contribution_data['contributors'] ) ) ), number_format_i18n( absint( $contribution_data['hours'] ) ),