Ticket #5304: 5304.diff
File 5304.diff, 1.5 KB (added by , 5 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
228 228 $url = get_post_type_archive_link( 'wp-parser-function' ) . 229 229 sanitize_title_with_dashes( html_entity_decode( $link ) ); 230 230 } 231 231 232 232 if ( $url ) { 233 233 $link = self::generate_link( $url, $link ); 234 234 } … … 264 264 265 265 return sprintf( '<a%s>%s</a>', $attributes, esc_html( $text ) ); 266 266 } 267 267 268 268 /** 269 269 * Fixes unintended markup generated by Markdown during parsing. 270 270 * … … 322 322 // Display as simple plaintext list. 323 323 $text = str_replace( ' * ', '<br /> * ', $text ); 324 324 } 325 if ( false !== strpos( $text, ' - ' ) ) { 326 // Display as simple plaintext list. 327 $text = str_replace( ' - ', '<br /> - ', $text ); 328 } 325 329 326 330 // Convert any @link or @see to actual link. 327 331 $text = self::make_doclink_clickable( $text ); … … 511 515 list( $wordtype, $type, $name, $description ) = explode( ' ', $part . ' ', 4 ); // extra spaces ensure we'll always have 4 items. 512 516 $description = trim( $description ); 513 517 $description = self::autolink_references( $description ); 518 $description = self::fix_param_description_parsedown_bug( $description ); 514 519 515 520 $skip_closing_li = false; 516 521