From 4b50a68937aac5393a8e1af4884141c050e6928e 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: http://core.svn.wordpress.org/trunk@23880 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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();