{{in the late evening}} December 28th, 2007 › Tracking deprecated functions

This evening I have added some changes for the upcoming WordPress v2.4 release which will help theme, plugin and site developers track down when they are using deprecated WordPress functions. This new functionality relies, in part, on the new WP_DEBUG flag being enabled before anything interesting happens. With the new flag enabled a USER_NOTICE php error will be raised for each call to a deprecated function and if a deprecated file is included by a plugin. The error messages include the replacement function name and the version in which the function was deprecated.

The changes also introduce a pair of new hooks, deprecated_function_run and deprecated_file_included, which could be used by a plugin to create a log of all the functions used and provide the developer with information of what files need updating to use the replacement functions. These new hooks will fire whenever a deprecated function/file is used even if WP_DEBUG is disabled to allow for a simple plugin to log the errors without triggering the actual error on a live site.

Props to docwhat and darkdragon/santosj for their work on this change.

Join the discussion

{{in the late afternoon}} September 7th, 2007 › Living on the edge

I’m proud to announce that this site is now “living on the edge” - I finally found the time to write a Tag Importer for Bunny’s Technorati Tags which will hopefully make it into the final WordPress 2.3 release (if not the next Beta version).

Well it was about time to start running the my own code.

One of the new features that really sticks out after upgrade is the Plugin update notification - it lets you know when updates to plugins which are downloadable from http://wordpress.org/extend/plugins/ are available and includes a link to the plugin entry for you to download the update.

Read 2 Comments
« Previous PageNext Page »

28 queries. 1.289 seconds. Powered by WordPress.