Changeset 1867 for trunk/wp-includes/functions.php
- Timestamp:
- 11/19/2004 07:37:18 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1849 r1867 1234 1234 // Filters: these are the core of WP's plugin architecture 1235 1235 1236 function apply_filters($tag, $string ) {1236 function apply_filters($tag, $string, $filter = true) { 1237 1237 global $wp_filter; 1238 1238 if (isset($wp_filter['all'])) { … … 1252 1252 if (!is_null($functions)) { 1253 1253 foreach($functions as $function) { 1254 $string = call_user_func($function, $string); 1254 if ($filter) 1255 $string = call_user_func($function, $string); 1256 else 1257 call_user_func($function, $string); 1255 1258 } 1256 1259 } … … 1286 1289 1287 1290 function do_action($tag, $string) { 1288 return apply_filters($tag, $string); 1291 apply_filters($tag, $string, false); 1292 return $string; 1289 1293 } 1290 1294
Note:
See TracChangeset
for help on using the changeset viewer.