Changeset 3349
- Timestamp:
- 06/14/2016 09:30:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-readme-parser.php
r3348 r3349 200 200 $this->sections = array_filter( $this->sections ); 201 201 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. 203 203 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]; 205 205 } 206 206
Note: See TracChangeset
for help on using the changeset viewer.