Making WordPress.org

Changeset 4604


Ignore:
Timestamp:
01/03/2017 03:17:10 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Append the Other Notes section to the Description.
This works better with the new plugin directory format. This content was previously hidden.

Fixes #2321.

File:
1 edited

Legend:

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

    r4573 r4604  
    327327                if ( empty( $this->sections['description'] ) ) {
    328328                        $this->sections['description'] = $this->short_description;
     329                }
     330
     331                // Suffix the Other Notes section to the description.
     332                if ( !empty( $this->sections['other_notes'] ) ) {
     333                        $this->sections['description'] .= "\n" . $this->sections['other_notes'];
     334                        unset( $this->sections['other_notes'] );
    329335                }
    330336
Note: See TracChangeset for help on using the changeset viewer.