Making WordPress.org

Changeset 13783


Ignore:
Timestamp:
06/07/2024 02:54:04 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Readme: Drop support for multiple lines in the short_description field. Concatenate with spaces instead.

This field is intended on being a single-line no-html field that describes a plugin.
While multiple setences are allowed, it's also capped at a maximum of 150 characters.

Fixes https://github.com/WordPress/wordpress.org/issues/325

File:
1 edited

Legend:

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

    r13618 r13783  
    366366                        $trimmed = trim( $line );
    367367                        if ( empty( $trimmed ) ) {
    368                                 $this->short_description .= "\n";
    369368                                continue;
    370369                        }
     
    372371                                 ( '#' === $trimmed[0] && isset( $trimmed[1] ) && '#' === $trimmed[1] )
    373372                        ) {
    374 
    375373                                // Stop after any Markdown heading.
    376374                                array_unshift( $contents, $line );
     
    378376                        }
    379377
    380                         $this->short_description .= $line . "\n";
     378                        $this->short_description .= $line . ' ';
    381379                }
    382380                $this->short_description = trim( $this->short_description );
Note: See TracChangeset for help on using the changeset viewer.