[wp-trac] Re: [WordPress Trac] #5184: Make it obvious when you're using deprecated functions

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 12 13:09:40 GMT 2007


#5184: Make it obvious when you're using deprecated functions
-------------------------+--------------------------------------------------
 Reporter:  westi        |        Owner:  westi
     Type:  enhancement  |       Status:  new  
 Priority:  normal       |    Milestone:  2.4  
Component:  Template     |      Version:       
 Severity:  normal       |   Resolution:       
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by johnbillion):

 Idea: Upon plugin activation when in WP_DEBUG mode, the plugin is grepped
 for deprecated functions and a warning displayed if any are found.

 The [http://smithsrus.com/downloads/wordpress-upgrade-preflight-check/
 Upgrade Preflight plugin] hunts down potential 2.3 compatibility problems
 by traversing the plugin directory and using `file_get_contents` and
 `strpos` to find problem strings. A similar system could be used on plugin
 activation to hunt down deprecated functions within the a plugin.

 Same thing could also be done for themes (related: #4361).

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5184#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list