From f8680b6c3ad752df55d13e8bd7c73dad9c5a2b06 Mon Sep 17 00:00:00 2001 From: rob1n Date: Wed, 11 Apr 2007 22:47:36 +0000 Subject: [PATCH] regex fixes. Props Nazgul. fixes #3698 git-svn-id: https://develop.svn.wordpress.org/trunk@5244 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 2 +- wp-includes/post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 4ead5961ca..636d1358b6 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -80,7 +80,7 @@ function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_ $page = count($pages); // give them the highest numbered page that DOES exist $content = $pages[$page-1]; - if ( preg_match('//', $content, $matches) ) { + if ( preg_match('//', $content, $matches) ) { $content = explode($matches[0], $content, 2); if ( !empty($matches[1]) && !empty($more_link_text) ) $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1]))); diff --git a/wp-includes/post.php b/wp-includes/post.php index 7b84716e96..fa08e89ae3 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -74,7 +74,7 @@ function &get_children($args = '', $output = OBJECT) { // get extended entry info () function get_extended($post) { //Match the new style more links - if ( preg_match('//', $post, $matches) ) { + if ( preg_match('//', $post, $matches) ) { list($main, $extended) = explode($matches[0], $post, 2); } else { $main = $post;