Changeset 4176
- Timestamp:
- 09/08/2006 11:18:03 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4175 r4176 2076 2076 } 2077 2077 2078 add_action('update_option_home', 'update_home_siteurl' );2079 add_action('update_option_siteurl', 'update_home_siteurl' );2078 add_action('update_option_home', 'update_home_siteurl', 10, 2); 2079 add_action('update_option_siteurl', 'update_home_siteurl', 10, 2); 2080 2080 2081 2081 ?> -
trunk/wp-includes/plugin.php
r3893 r4176 103 103 function do_action($tag, $arg = '') { 104 104 global $wp_filter; 105 $extra_args = array_slice(func_get_args(), 2); 106 if ( is_array($arg) ) 107 $args = array_merge($arg, $extra_args); 108 else 109 $args = array_merge(array($arg), $extra_args); 105 $args = array($arg); 106 for ( $a = 2; $a < func_num_args(); $a++ ) 107 $args[] = func_get_args($a); 110 108 111 109 merge_filters($tag); … … 122 120 123 121 if ( $accepted_args == 1 ) { 124 if ( is_array($arg) ) 125 $the_args = $arg; 126 else 127 $the_args = array($arg); 122 $the_args = array($arg); 128 123 } elseif ( $accepted_args > 1 ) { 129 124 $the_args = array_slice($args, 0, $accepted_args);
Note: See TracChangeset
for help on using the changeset viewer.