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
This commit is contained in:
Mark Jaquith 2013-03-30 17:04:08 +00:00
parent 4a03b8dd61
commit 4b50a68937

View File

@ -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();