[wp-trac] [WordPress Trac] #13874: Add package argument to "_deprecated_function" function
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 6 04:22:27 UTC 2012
#13874: Add package argument to "_deprecated_function" function
------------------------------+-----------------------------
Reporter: johnjamesjacoby | Owner: westi
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: Warnings/Notices | Version:
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+-----------------------------
Changes (by ericmann):
* keywords: has-patch needs-refresh => has-patch
Comment:
As I started walking through the code to refresh the patch, I realized
that placing `$package` at the ''end'' of the function calls, along with
setting a default value of "core," made this a relatively small patch to
apply. There's no real need to walk back through every instance of the
`_deprecated_function()`/`_deprecated_file()`/`_deprecated_argument()`
calls since they'll all inherit the right value for `$package` anyway.
But this should open things up for plugin and theme devs to specify their
own deprecated functions in the future.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13874#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list