Front-end Editor: Version 1.9

WordPress 3.0 is here, and so is a new version of Front-end Editor.

Fully editable widgets

Previously, you could only edit widget titles and text widgets. Now you can edit any widget. You will see the same controls as on the widget management screen.

Custom Post Type Support: Front-end Editor can now handle any post type, not just posts and pages.

Configurable editor buttons: You can now add or remove buttons to the nicEdit panel from the settings page. Props go to lostingraphics.

Improved Overlay Compatibility: No matter what overlay script you use to display your images (Lightbox, Shutter etc.), double-clicking on thumbnails will just work.

Editable term descriptions: You can now edit individual term descriptions, besides titles. See category_description().

Removed “Reset post date” option

I removed it because it wasn’t related to front-end editing per-se. It was a business rule that very few users needed to enforce.

If you were one of them, here is some code you can use to reset the post date, each time you edit a published post:

function reset_post_date($post) {
	if ( 'post' == $post['post_type'] && 'publish' == $post['post_status'] ) {
		$post['post_date'] = current_time('mysql');
		$post['post_date_gmt'] = current_time('mysql', 1);
	}

	return $post;
}
add_filter('wp_insert_post_data', 'reset_post_date');

Just drop it in your theme’s functions.php file and you’re done.

comments powered by Disqus