[wp-trac] [WordPress Trac] #10535: _wp_filter_build_unique_id issues with the first time a filter is hooked by a class
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 9 19:56:45 UTC 2010
#10535: _wp_filter_build_unique_id issues with the first time a filter is hooked by
a class
-------------------------------------+--------------------------------------
Reporter: simonwheatley | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.0.2
Component: Plugins | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch tested commit |
-------------------------------------+--------------------------------------
Comment(by jacobsantos):
I was right.
{{{<?php
$filter = $wp_filter[ $tag ];
reset( $filter );
do {
foreach ( (array) current($filter) as $the_ )
if ( !is_null($the_['function']) )
call_user_func_array($the_['function'],
array_slice($args, 0, (int) $the_['accepted_args']));
} while ( next($filter) !== false );
?>
}}}
Will display 'test' in your example.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10535#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list