Performance improvements using strpos. Fixes #7611 and #7610 props johnbillion.

git-svn-id: https://develop.svn.wordpress.org/trunk@8754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-08-27 20:47:01 +00:00
parent 5dfa1c4922
commit e7559c8134
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1752,7 +1752,7 @@ function setup_postdata($post) {
if ( is_single() || is_page() || is_feed() )
$more = 1;
$content = $post->post_content;
if ( preg_match('/<!--nextpage-->/', $content) ) {
if ( strpos( $content, '<!--nextpage-->' ) ) {
if ( $page > 1 )
$more = 1;
$multipage = 1;