WordPress 2.7 was planned for November 10th

WordPress 2.7 was planned for November 10th, but that day will probably only feature the release of the first so called “release candidate”. This means that the real 2.7 release will probably happen somewhere half way November.

To be honest, I’m quite happy with that. I’ve been testing trunk for a while, and it didn’t feel stable at all. I’d actually already been advising people to wait 2.7 out a bit and see what the general reaction would be. This gives it a way better chance of becoming stable.

There’s quite a bit of news to share this week, and a nice template hack to improve your speed in handling comments!

Usually, you will have the edit option in your themes comments section, to edit each comment. However, very often I’ll want to spam a spam comment that slipped by, or delete a useless comment. So basically I want a del and a spam button.

It’s actually very easy to add that, just add the following to your functions.php

function delete_comment_link($id) {  if (current_user_can(‘edit_post’)) {    echo ‘| <a href=”‘.admin_url(“comment.php?action=cdc&c=$id”).'”>del</a> ‘;    echo ‘| <a href=”‘.admin_url(“comment.php?action=cdc&dt=spam&c=$id”).'”>spam</a>’;  }}

And then, in your comments.php, right after the edit_comment_link declaration, add delete_comment_link(get_comment_ID());. That’s it, you should now have a “del” and “spam” link too!

https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/digg_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/reddit_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/stumbleupon_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/delicious_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/furl_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/newsvine_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/technorati_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/google_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/myspace_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/facebook_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/yahoobuzz_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/mixx_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/twitter_32.png https://webabout.org/wordpress/wp-content/plugins/sociofluid/images/meneame_32.png


  1. […] Admin Icons Hides the icons in the expanded WordPress 2.7 admin […]