Making WordPress.org


Ignore:
Timestamp:
03/04/2024 03:35:55 AM (17 months ago)
Author:
dd32
Message:

Plugin Directory: Increase the maximum wordcount for descriptions from 1,500 to 2,500 words, and FAQ and Changelogs to 5,000 words.

This increases the limits placed in [13235] to reduce the impact upon some plugins, while still maintaining some level of reasonableness for end-users.

See #7477.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php

    r13237 r13262  
    157157    public $maximum_field_lengths = array(
    158158        'short_description' => 150,
    159         'section'           => 1500,
     159        'section'           => 2500,
     160        'section-changelog' => 5000,
     161        'section-faq'       => 5000,
    160162    );
    161163
     
    449451
    450452        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' );
    452459
    453460            if ( $content !== $this->sections[ $section ] ) {
Note: See TracChangeset for help on using the changeset viewer.