Changeset 13262 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php
- Timestamp:
- 03/04/2024 03:35:55 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php
r13237 r13262 157 157 public $maximum_field_lengths = array( 158 158 'short_description' => 150, 159 'section' => 1500, 159 'section' => 2500, 160 'section-changelog' => 5000, 161 'section-faq' => 5000, 160 162 ); 161 163 … … 449 451 450 452 foreach ( $this->sections as $section => $content ) { 451 $this->sections[ $section ] = $this->trim_length( $content, 'section', 'words' ); 453 $max_length = "section-{$section}"; 454 if ( ! isset( $this->maximum_field_lengths[ $max_length ] ) ) { 455 $max_length = 'section'; 456 } 457 458 $this->sections[ $section ] = $this->trim_length( $content, $max_length, 'words' ); 452 459 453 460 if ( $content !== $this->sections[ $section ] ) {
Note: See TracChangeset
for help on using the changeset viewer.