[wp-trac] Re: [WordPress Trac] #5338: Preformance Tweaks for
WordPress Trunk Plugin API, plugin.php
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 11 19:30:22 GMT 2007
#5338: Preformance Tweaks for WordPress Trunk Plugin API, plugin.php
--------------------------+-------------------------------------------------
Reporter: darkdragon | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4
Component: Optimization | Version: 2.4
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment (by Quandary):
The foreach setup breaks in this implementation, because the priority
array is not pre-filled; you'll get a bug if, e.g., a pri-1 callback adds
a pri-2 callback on the currently-executing hook, and there are no pri-2
callbacks yet. Please see the ''second'' patch attached to bug #5335.
I'm also pretty sure that filters (as implemented for apply_filters) are
applicable to strings ''only''. do_action is more generic, but it has a
completely separate implementation for that.
--
Ticket URL: <http://trac.wordpress.org/ticket/5338#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list