[wp-cvs] wordpress/wp-includes functions.php,1.208,1.209
Matthew Mullenweg
saxmatt at users.sourceforge.net
Fri Nov 19 07:37:20 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16087/wp-includes
Modified Files:
functions.php
Log Message:
Actions shouldn't change around what they're passed
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.208
retrieving revision 1.209
diff -C2 -d -r1.208 -r1.209
*** functions.php 10 Nov 2004 00:21:24 -0000 1.208
--- functions.php 19 Nov 2004 07:37:18 -0000 1.209
***************
*** 1234,1238 ****
// Filters: these are the core of WP's plugin architecture
! function apply_filters($tag, $string) {
global $wp_filter;
if (isset($wp_filter['all'])) {
--- 1234,1238 ----
// Filters: these are the core of WP's plugin architecture
! function apply_filters($tag, $string, $filter = true) {
global $wp_filter;
if (isset($wp_filter['all'])) {
***************
*** 1252,1256 ****
if (!is_null($functions)) {
foreach($functions as $function) {
! $string = call_user_func($function, $string);
}
}
--- 1252,1259 ----
if (!is_null($functions)) {
foreach($functions as $function) {
! if ($filter)
! $string = call_user_func($function, $string);
! else
! call_user_func($function, $string);
}
}
***************
*** 1286,1290 ****
function do_action($tag, $string) {
! return apply_filters($tag, $string);
}
--- 1289,1294 ----
function do_action($tag, $string) {
! apply_filters($tag, $string, false);
! return $string;
}
More information about the cvs
mailing list