[wp-trac] Re: [WordPress Trac] #4361: Notify user of theme using
deprecated code
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 20 14:15:54 GMT 2007
#4361: Notify user of theme using deprecated code
-----------------------------+----------------------------------------------
Reporter: Otto42 | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 2.4
Component: Template | Version:
Severity: minor | Resolution:
Keywords: hunt-irrelevant |
-----------------------------+----------------------------------------------
Comment (by darkdragon):
I'm not saying this feature wouldn't be awesome, I'm saying the patch is
not awesome. You have a few options other than throwing an user error.
1. Use the file logging (the same used in the wpdb object).[[BR]]
2. An API which records which deprecated functions have run, how many
times and by what functions (using debug_backtrace since well, if you are
debugging then performance isn't an issue, but allow this to be enabled),
and allow plugins to output the results.
I would go with the second, since someone who is likely to be debugging
would want know. You can name the plugin something like, "Find out if your
theme is compatible with the next WordPress release!" and people should
come.
However, an epiphany came to me and I think creating a web site for the
purpose of finding out if a theme or plugin uses deprecated functions is
not difficult at all.
--
Ticket URL: <http://trac.wordpress.org/ticket/4361#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list