Changeset 13266 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
- Timestamp:
- 03/04/2024 04:45:48 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
r13237 r13266 201 201 foreach ( $trimmed_sections as $section_name => $dummy ) { 202 202 $section_name = str_replace( 'trimmed_section_', '', $section_name ); 203 204 $max_length_field = "section-{$section_name}"; 205 if ( ! isset( $this->maximum_field_lengths[ $max_length_field ] ) ) { 206 $max_length_field = 'section'; 207 } 208 203 209 $warnings[] = sprintf( 204 210 /* translators: %s: section title */ 205 211 __( 'The %s section is too long and was truncated. A maximum of %s words is supported.', 'wporg-plugins' ), 206 212 '<code>' . esc_html( ucwords( str_replace( '_', ' ', $section_name ) ) ) . '</code>', 207 number_format_i18n( $readme->maximum_field_lengths[ 'section'] )213 number_format_i18n( $readme->maximum_field_lengths[ $max_length_field ] ) 208 214 ); 209 215 }
Note: See TracChangeset
for help on using the changeset viewer.