Ticket #27908: 27908.patch
File 27908.patch, 877 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/post-template.php
265 265 if ( $more ) { 266 266 $output .= '<span id="more-' . $post->ID . '"></span>' . $content[1]; 267 267 } else { 268 if ( ! empty( $more_link_text ) ) 268 if ( ! empty( $more_link_text ) ) { 269 $more_link_text = preg_replace( '/ (?![^<>]*>)/', ' ', $more_link_text ); 269 270 270 271 /** 271 272 * Filter the Read More link text. … … 276 277 * @param string $more_link_text Read More text. 277 278 */ 278 279 $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text ); 280 } 279 281 $output = force_balance_tags( $output ); 280 282 } 281 283 }