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:
parent
4a03b8dd61
commit
4b50a68937
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue