[wp-trac] Re: [WordPress Trac] #4625: apply_filters is broken
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 13 14:00:00 GMT 2007
#4625: apply_filters is broken
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: defect | Status: new
Priority: highest omg bbq | Milestone: 2.2.2
Component: General | Version: 2.2.1
Severity: normal | Resolution:
Keywords: |
-------------------------------+--------------------------------------------
Comment (by Otto42):
A simpler change to fix this would be to change the while (
next($wp_filters[$tag]) ) into:
while ( next($wp_filters[$tag]) !== FALSE)
next() returns the next entry in $wp_filters[$tag], or false when there's
no more there. While it's true that the empty array could fail the boolean
evaluation, it cannot fail a !== FALSE check.
--
Ticket URL: <http://trac.wordpress.org/ticket/4625#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list