Making WordPress.org

Changeset 3349


Ignore:
Timestamp:
06/14/2016 09:30:13 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Only use the first line of the description for the short description of the plugin.

See #1724

File:
1 edited

Legend:

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

    r3348 r3349  
    200200                $this->sections = array_filter( $this->sections );
    201201
    202                 // Use the description for the short description if not provided.
     202                // Use the first line of the description for the short description if not provided.
    203203                if ( empty( $this->short_description ) && ! empty( $this->sections['description'] ) ) {
    204                         $this->short_description = $this->sections['description'];
     204                        $this->short_description = array_filter( explode( "\n", $this->sections['description'] ) )[0];
    205205                }
    206206
Note: See TracChangeset for help on using the changeset viewer.