summaryrefslogtreecommitdiffstats
path: root/wp-includes/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/plugin.php')
-rw-r--r--wp-includes/plugin.php4
1 files changed, 2 insertions, 2 deletions
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 )