mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
Bunch of whitespace and coding standardization.
git-svn-id: https://develop.svn.wordpress.org/trunk@4626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 )
|
||||
@@ -135,7 +135,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 )
|
||||
@@ -175,4 +175,4 @@ function register_deactivation_hook($file, $function) {
|
||||
add_action('deactivate_' . $file, $function);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user