From f9d5ef9fbb062b0c44c09207f947b515ab6dc66e Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 7 Dec 2006 16:58:13 +0000 Subject: WP Merge to rev 4626 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@821 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes/plugin.php') diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 64ceb9a..e06869f 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -9,7 +9,7 @@ function add_filter($tag, $function_to_add, $priority = 10, $accepted_args = 1) // check that we don't already have the same filter at the same priority if ( isset($wp_filter[$tag]["$priority"]) ) { - foreach($wp_filter[$tag]["$priority"] as $filter) { + foreach ( $wp_filter[$tag]["$priority"] as $filter ) { // uncomment if we want to match function AND accepted_args // if ( $filter == array($function, $accepted_args) ) { if ( $filter['function'] == $function_to_add ) @@ -153,7 +153,7 @@ function do_action_ref_array($tag, $args) { foreach ( (array) $wp_filter[$tag] as $priority => $functions ) { if ( !is_null($functions) ) { - foreach( (array) $functions as $function ) { + foreach ( (array) $functions as $function ) { $function_name = $function['function']; $accepted_args = $function['accepted_args']; if ( $accepted_args > 0 ) -- cgit