Ticket #46471: 46471.1.diff
| File 46471.1.diff, 683 bytes (added by , 7 years ago) |
|---|
-
src/wp-includes/post-template.php
297 297 $content = $pages[ $page - 1 ]; 298 298 if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) { 299 299 $content = explode( $matches[0], $content, 2 ); 300 301 // Remove the core/more block tags now that it has been split up. 302 $content = preg_replace( '/<!-- \/?wp:more(.*?) -->/', '', $content ); 303 300 304 if ( ! empty( $matches[1] ) && ! empty( $more_link_text ) ) { 301 305 $more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) ); 302 306 }