Index: wp-includes/ms-functions.php
===================================================================
--- wp-includes/ms-functions.php	(revision 24123)
+++ wp-includes/ms-functions.php	(working copy)
@@ -460,7 +460,6 @@
 		$errors->add( 'user_name', __( 'Sorry, usernames may not contain the character &#8220;_&#8221;!' ) );
 
 	// all numeric?
-	$match = array();
 	preg_match( '/[0-9]*/', $user_name, $match );
 	if ( $match[0] == $user_name )
 		$errors->add('user_name', __('Sorry, usernames must have letters too!'));
@@ -572,7 +571,6 @@
 		$errors->add( 'blogname', __( 'Sorry, you may not use that site name.' ) );
 
 	// all numeric?
-	$match = array();
 	preg_match( '/[0-9]*/', $blogname, $match );
 	if ( $match[0] == $blogname )
 		$errors->add('blogname', __('Sorry, site names must have letters too!'));
Index: wp-includes/shortcodes.php
===================================================================
--- wp-includes/shortcodes.php	(revision 24123)
+++ wp-includes/shortcodes.php	(working copy)
@@ -152,7 +152,6 @@
  */
 function has_shortcode( $content, $tag ) {
 	if ( shortcode_exists( $tag ) ) {
-		$matches = array();
 		preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER );
 		if ( empty( $matches ) )
 			return false;
Index: wp-includes/post-template.php
===================================================================
--- wp-includes/post-template.php	(revision 24123)
+++ wp-includes/post-template.php	(working copy)
@@ -185,7 +185,6 @@
 
 	$output = '';
 	$has_teaser = false;
-	$matches = array();
 
 	// If post password required and it doesn't match the cookie.
 	if ( post_password_required() )
Index: wp-includes/media.php
===================================================================
--- wp-includes/media.php	(revision 24123)
+++ wp-includes/media.php	(working copy)
@@ -1908,7 +1908,6 @@
  */
 function get_content_media( $type, &$content, $html = true, $remove = false, $limit = 0 ) {
 	$items = array();
-	$matches = array();
 
 	if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) {
 		foreach ( $matches as $shortcode ) {
@@ -1927,7 +1926,6 @@
 	if ( $html )
 		return $items;
 
-	$src = '';
 	$data = array();
 
 	foreach ( $items as $item ) {
@@ -1958,7 +1956,6 @@
  */
 function get_embedded_media( $type, &$content, $remove = false, $limit = 0 ) {
 	$html = array();
-	$matches = '';
 
 	foreach ( array( $type, 'object', 'embed', 'iframe' ) as $tag ) {
 		if ( preg_match( '#' . get_tag_regex( $tag ) . '#', $content, $matches ) ) {
@@ -2206,7 +2203,6 @@
  * @return array The found images or srcs
  */
 function get_content_images( &$content, $html = true, $remove = false, $limit = 0 ) {
-	$matches = array();
 	$tags = array();
 	$captions = array();
 
@@ -2255,7 +2251,6 @@
 	if ( $html )
 		return $tags;
 
-	$src = '';
 	$srcs = array();
 
 	foreach ( $tags as $tag ) {
@@ -2300,9 +2295,7 @@
  * @return array A list of galleries, which in turn are a list of their srcs in order
  */
 function get_content_galleries( &$content, $html = true, $remove = false, $limit = 0 ) {
-	$src = '';
 	$galleries = array();
-	$matches = array();
 
 	if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) {
 		foreach ( $matches as $shortcode ) {
@@ -2493,7 +2486,6 @@
 		$urls[] = get_attachment_link( $media->ID );
 
 		$count = 1;
-		$matches = array();
 		$content = $post->post_content;
 
 		if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) {
Index: wp-includes/post-formats.php
===================================================================
--- wp-includes/post-formats.php	(revision 24123)
+++ wp-includes/post-formats.php	(working copy)
@@ -580,7 +580,6 @@
 				continue;
 		}
 
-		$matches = array();
 		$matched = preg_match( $newline_regex, $line, $matches );
 		if ( ! $matched )
 			continue;
@@ -709,7 +708,6 @@
 	if ( empty( $content ) )
 		return '';
 
-	$matches = array();
 	if ( ! preg_match( '/<blockquote[^>]*>(.+?)<\/blockquote>/is', $content, $matches ) ) {
 		$quote = $content;
 		if ( $remove || ! empty( $replace ) )
@@ -783,8 +781,6 @@
 	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 @@
 
 	$output = '';
 	$has_teaser = false;
-	$matches = array();
 
 	// If post password required and it doesn't match the cookie.
 	if ( post_password_required() )
Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php	(revision 24123)
+++ wp-includes/formatting.php	(working copy)
@@ -3264,7 +3264,6 @@
 		$filtered = trim( preg_replace('/[\r\n\t ]+/', ' ', $filtered) );
 	}
 
-	$match = array();
 	$found = false;
 	while ( preg_match('/%[a-f0-9]{2}/i', $filtered, $match) ) {
 		$filtered = str_replace($match[0], '', $filtered);
