Index: wp-includes/plugin.php
===================================================================
--- wp-includes/plugin.php	(revision 26369)
+++ wp-includes/plugin.php	(working copy)
@@ -187,19 +187,21 @@
 		$merged_filters[ $tag ] = true;
 	}
 
-	reset( $wp_filter[ $tag ] );
+	// Localize the filters global for iteration
+	$the_filters = $wp_filter[ $tag ];
+	reset( $the_filters );
 
 	if ( empty($args) )
 		$args = func_get_args();
 
 	do {
-		foreach( (array) current($wp_filter[$tag]) as $the_ )
+		foreach( (array) current( $the_filters ) as $the_ )
 			if ( !is_null($the_['function']) ){
 				$args[1] = $value;
 				$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
 			}
 
-	} while ( next($wp_filter[$tag]) !== false );
+	} while ( next( $the_filters ) !== false );
 
 	array_pop( $wp_current_filter );
 
@@ -248,14 +250,16 @@
 		$merged_filters[ $tag ] = true;
 	}
 
-	reset( $wp_filter[ $tag ] );
+	// Localize the filters global for iteration
+	$the_filters = $wp_filter[ $tag ];
+	reset( $the_filters );
 
 	do {
-		foreach( (array) current($wp_filter[$tag]) as $the_ )
+		foreach( (array) current( $the_filters ) as $the_ )
 			if ( !is_null($the_['function']) )
 				$args[0] = call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
 
-	} while ( next($wp_filter[$tag]) !== false );
+	} while ( next( $the_filters ) !== false );
 
 	array_pop( $wp_current_filter );
 
@@ -421,14 +425,16 @@
 		$merged_filters[ $tag ] = true;
 	}
 
-	reset( $wp_filter[ $tag ] );
+	// Localize the filters global for iteration
+	$the_filters = $wp_filter[ $tag ];
+	reset( $the_filters );
 
 	do {
-		foreach ( (array) current($wp_filter[$tag]) as $the_ )
+		foreach ( (array) current( $the_filters ) as $the_ )
 			if ( !is_null($the_['function']) )
 				call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
 
-	} while ( next($wp_filter[$tag]) !== false );
+	} while ( next( $the_filters ) !== false );
 
 	array_pop($wp_current_filter);
 }
@@ -499,14 +505,16 @@
 		$merged_filters[ $tag ] = true;
 	}
 
-	reset( $wp_filter[ $tag ] );
+	// Localize the filters global for iteration
+	$the_filters = $wp_filter[ $tag ];
+	reset( $the_filters );
 
 	do {
-		foreach( (array) current($wp_filter[$tag]) as $the_ )
+		foreach( (array) current( $the_filters ) as $the_ )
 			if ( !is_null($the_['function']) )
 				call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
 
-	} while ( next($wp_filter[$tag]) !== false );
+	} while ( next( $the_filters ) !== false );
 
 	array_pop($wp_current_filter);
 }
@@ -732,13 +740,15 @@
 function _wp_call_all_hook($args) {
 	global $wp_filter;
 
-	reset( $wp_filter['all'] );
+	// Localize the filters global for iteration
+	$the_filters = $wp_filter['all'];
+	reset( $the_filters );
 	do {
-		foreach( (array) current($wp_filter['all']) as $the_ )
+		foreach( (array) current( $the_filters ) as $the_ )
 			if ( !is_null($the_['function']) )
 				call_user_func_array($the_['function'], $args);
 
-	} while ( next($wp_filter['all']) !== false );
+	} while ( next( $the_filters ) !== false );
 }
 
 /**
