Variables passed by reference do not need to be set first.
props kovshenin. see #24222. git-svn-id: http://core.svn.wordpress.org/trunk@24129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -580,7 +580,6 @@ function get_content_chat( &$content, $remove = false ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$matches = array();
|
||||
$matched = preg_match( $newline_regex, $line, $matches );
|
||||
if ( ! $matched )
|
||||
continue;
|
||||
@@ -709,7 +708,6 @@ function get_content_quote( &$content, $remove = false, $replace = '' ) {
|
||||
if ( empty( $content ) )
|
||||
return '';
|
||||
|
||||
$matches = array();
|
||||
if ( ! preg_match( '/<blockquote[^>]*>(.+?)<\/blockquote>/is', $content, $matches ) ) {
|
||||
$quote = $content;
|
||||
if ( $remove || ! empty( $replace ) )
|
||||
@@ -783,8 +781,6 @@ function get_content_url( &$content, $remove = false ) {
|
||||
if ( empty( $content ) )
|
||||
return '';
|
||||
|
||||
$matches = array();
|
||||
|
||||
// the content is a URL
|
||||
$trimmed = trim( $content );
|
||||
if ( 0 === stripos( $trimmed, 'http' ) && ! preg_match( '#\s#', $trimmed ) ) {
|
||||
@@ -883,7 +879,6 @@ function get_the_remaining_content( $more_link_text = null, $strip_teaser = fals
|
||||
|
||||
$output = '';
|
||||
$has_teaser = false;
|
||||
$matches = array();
|
||||
|
||||
// If post password required and it doesn't match the cookie.
|
||||
if ( post_password_required() )
|
||||
|
||||
Reference in New Issue
Block a user