[wp-trac] Re: [WordPress Trac] #8723: Instances of same class that
call variable hook first generate same wp_filter_id
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 24 07:08:31 GMT 2009
#8723: Instances of same class that call variable hook first generate same
wp_filter_id
------------------------------+---------------------------------------------
Reporter: bkrausz | Owner: jacobsantos
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.8.1
Component: Plugins | Version: 2.8
Severity: major | Resolution:
Keywords: has-patch tested |
------------------------------+---------------------------------------------
Comment(by Denis-de-Bernardy):
@wpnorris: you sure this works with static classes?
{{{
class foo {
function bar() {
}
}
add_action('hook', array('foo', 'bar'));
}}}
I might be wrong, but I believe foo->wp_filter_id++ is fatal in some php
versions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8723#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list