WordPress Development Tips: Updates and Deprecated Notices
Outdated: This post is preserved for reference and may no longer reflect current tools or services.
This post collects a couple of small WordPress development tips I found useful at the time.
Stop the WordPress FTP credentials prompt
As described in WordPress needs access to your web server, you can prevent WordPress from asking for FTP credentials when requesting an update.
Add the following lines to your wp-config.php file, just above /* That's all, stop editing! Happy blogging. */
$method = 'direct';
define('FS_METHOD','direct');
Fix issues with your own plugin or another plugin
A useful plugin for WordPress development is called Log Deprecated Notices.
First, change WP_DEBUG to true in your wp-config.php file.
define( 'WP_DEBUG', true );
Next, download the latest version from the Log Deprecated Notices plugin page. Once installed, it will appear under Tools → Deprecated Calls.
The deprecated call and line number will be displayed, along with an alternative suggestion for fixing it.
Note: It is best to do this only in a development environment.