Changeset 4386
- Timestamp:
- 11/21/2016 02:46:11 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php
r4196 r4386 459 459 $text = wp_kses( $text, $allowed ); 460 460 461 // wpautop() will eventually replace all \n's with <br>s, and that isn't what we want. 462 $text = preg_replace( "/(?<![> ])\n/", ' ', $text ); 461 // wpautop() will eventually replace all \n's with <br>s, and that isn't what we want (The text may be line-wrapped in the readme, we don't want that, we want paragraph-wrapped text) 462 // TODO: This incorrectly also applies within `<code>` tags which we don't want either. 463 //$text = preg_replace( "/(?<![> ])\n/", ' ', $text ); 463 464 464 465 $text = trim( $text );
Note: See TracChangeset
for help on using the changeset viewer.