Here is the code for WordPress 3.0.