New Feature for WordPress 2.9 – WordPress Image Editor

wp-image-edit1

We already wrote about some new features, such as new filter and the Trash-function in WordPress. It has long been known that WordPress 2.9 will add some features for image editing - the users want these features, right in the core and not as a Plugin. You can get a first insight into the current development version. Since not everybody is working with it, here are some screenshots of the editor for images. The screenshots certainly speak for themselves:

wp-image-edit2

wp-image-edit3

Deactivate WordPress Default Widgets

You do not always want to have all the widgets active, which comes within the WordPress core.

You can disable the unneccessary Widgets in your functions.php of your theme with a small function. The following syntax will switch off all the standard widgets. It should therefore be adjusted depending on your requirements:

// unregister all default WP Widgets
function unregister_default_wp_widgets() {

	unregister_widget('WP_Widget_Pages');

	unregister_widget('WP_Widget_Calendar');

	unregister_widget('WP_Widget_Archives');

	unregister_widget('WP_Widget_Links');

	unregister_widget('WP_Widget_Meta');

	unregister_widget('WP_Widget_Search');

	unregister_widget('WP_Widget_Text');

	unregister_widget('WP_Widget_Categories');

	unregister_widget('WP_Widget_Recent_Posts');

	unregister_widget('WP_Widget_Recent_Comments');

	unregister_widget('WP_Widget_RSS');

	unregister_widget('WP_Widget_Tag_Cloud');
}

add_action('widgets_init', 'unregister_default_wp_widgets', 1);

The function unregister_widget() needs as parameters the class, therefore the code is working since version 2.8 only. In prior versions, Widgets were supported differently.

How to create your own Widgets since WordPress Version 2.8 is explained in Build A WordPress 2.8 Widget With The New Widget API.

Change the WordPress Message

The notifications of WordPress for the author of an article or comments are not always right on the spot according to the needs. WordPress also knew that and created these functions so that it's easy to adapt notifications to your needs or can completely be replaced. Therefore, I will briefly show how to adjust the mails to your needs.

The two functions wp_notify_postauthor() and wp_notify_moderator() are used to send messages, but can be replaced. You can find these two functions in wp-includes/pluggable.php and there are all the functions included, which WordPress queries (if ( !function_exists('set_current_user') )), so that you can replace it easily. Therefore, it is a simple task to adjust the notifications in your WordPress installation.

wp-mail
Continue reading …