[wp-trac] [WordPress Trac] #11212: Add filter to wp_parse_args()
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 21 09:27:52 UTC 2009
#11212: Add filter to wp_parse_args()
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: lowest | Milestone: 2.9
Component: General | Version: 2.9
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by Denis-de-Bernardy):
If we pass __FUNCTION__ and wp_parse_args gets used in a plugin without
it, won't this result in php warnings in your
viper_thread_comments_depth() function -- since it would then be declared
as needing two args?
It seems to me that wp_parse_args-__FUNCTION__ would then make more sense.
But by doing so, there also is the problem of objects, which lands us to
where we are with filter IDs (and more than the mere 5ms mentioned above).
Suggesting we close as wontfix and add the missing filters here and there
as needed, personally... (Don't get me wrong, I like the idea too. But it
somehow feels like a monster in the making if we proceed.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11212#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list