Make WordPress Core

Ticket #27908: 27908.patch

File 27908.patch, 877 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/post-template.php

     
    265265                if ( $more ) {
    266266                        $output .= '<span id="more-' . $post->ID . '"></span>' . $content[1];
    267267                } else {
    268                         if ( ! empty( $more_link_text ) )
     268                        if ( ! empty( $more_link_text ) ) {
     269                                $more_link_text = preg_replace( '/ (?![^<>]*>)/', '&nbsp;', $more_link_text );
    269270
    270271                                /**
    271272                                 * Filter the Read More link text.
     
    276277                                 * @param string $more_link_text    Read More text.
    277278                                 */
    278279                                $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                        }
    279281                        $output = force_balance_tags( $output );
    280282                }
    281283        }