Changeset 2994 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-readme-parser.php
- Timestamp:
- 04/21/2016 07:41:53 PM (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
r2992 r2994 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory; 3 use Michelf\MarkdownExtra; 4 3 5 /** 4 6 * WordPress.org Plugin Readme Parser. … … 91 93 $line = $this->get_first_nonwhitespace( $contents ); 92 94 do { 93 $ key = $value = null;95 $value = null; 94 96 if ( strpos( $line, ':' ) === false ) { 95 97 // Some plugins have line-breaks within the headers. … … 258 260 while ( ( $line = array_shift( $contents ) ) !== null ) { 259 261 $trimmed = trim( $line ); 260 if ( ! empty( $ line) ) {262 if ( ! empty( $trimmed ) ) { 261 263 break; 262 264 } … … 343 345 344 346 /** 345 * Sanitize pro ided contributors to valid WordPress users347 * Sanitize provided contributors to valid WordPress users 346 348 * 347 349 * @param array $users Array of user_login's or user_nicename's. … … 370 372 } 371 373 if ( is_null( $markdown ) ) { 372 $markdown = new \Michelf\MarkdownExtra();374 $markdown = new MarkdownExtra(); 373 375 } 374 376
Note: See TracChangeset
for help on using the changeset viewer.