From 3f1f5162b68f9a0d3d46cbf471517eb1bf4370fe Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 30 Mar 2013 17:04:08 +0000 Subject: [PATCH] Avoid PHP notice on blank chat lines. props SergeyBiryukov. see #23625 git-svn-id: https://develop.svn.wordpress.org/trunk@23880 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-formats.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index c59c2861e5..0b159e2ca8 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -520,6 +520,8 @@ function get_content_chat( &$content, $remove = false ) { $author = $time = ''; if ( ! empty( $lines[$index + 1] ) && ! preg_match( $delimiter_regex, $lines[$index + 1] ) ) break; + else + continue; } $matches = array();