WP Commit Digest for September 17 – 28

We added several new features in the last round of commits. A header generator for the default theme, image uploading, pretty post preview, and kses filtering of posts are the stand outs. We had the usual code cleanups and bug fixes as well. The new features need some tweaking and refinement, but overall they’re looking pretty good. One of my favorites is the very simple but very handy post preview.

Here’s a list of posts detailing what went down. Some of them even have screenshots. Check it out.

Earning Your Empty Calories

Before you binge on that box of chocolates, you must make yourself earn it. I had a powerful junk food craving tonight, so I forced myself to do the following in order to earn those empty calories.

  • Walk four miles to Trader Joe’s with an empty backpack
  • Buy junk food and wine
  • Load up the back pack
  • Trudge the pack full of empty but heavy calories four miles home
  • Sit down, eat junk food, wash it down with cheap wine
  • Think about those eight miles I walked so that I don’t feel so guilty
  • Resolve not to eat junk food again for awhile
  • Blog about it

Before you pick up those chocolates, ask yourself what you did to earn them. Nothing, right? Okay, go for a walk and come back.

For those of you who have earned a little junk food binge this week, I’ll share this bit of information. Trader Joe’s chocolate truffles are cheap, awesome, and powerfully addictive. I both love and curse the person who introduced me to them (Hi Meeta). As you eat them, feel free to use my name as an expletive.

Cleaner Role Creation Code

I just committed a change to how we populate roles during upgrade. The old way made adding new capabilities to existing roles a pain. The new way handles this nicely and is much easier on the eyes. Furthermore, it actually makes use of our role/cap API instead of going under the covers. What a concept, using our own API. :-)

Give the changeset a look to make sure I didn’t leave out or mangle any caps.

We Need a Bug Day

We need a bug day on IRC where we triage the tracker and bump off as many bugs as we can.  We have some bugs that are already fixed, some that shouldn’t be fixed, some that have almost-there patches, some that need discussion, and some that are incomprehensible.  I’d like to go down the list of bugs and make as many determinations as we can.  Hopefully we can match bugs with people willing to fix them.

Maybe we could do this after one of the Wednesday Meetups.

New Comment Functions

Courtesy of Andy we have some new comment creation functions.

  • wp_insert_comment() – Add a new comment to the DB
  • wp_update_comment() – Update an existing comment in the DB
  • wp_filter_comment() – Filter comment data
  • wp_allow_comment() – Perform various spam checks on a comment

This is in addition to the already existing wp_new_comment(). The extra functions allow importers to skip spam checks and comment notifications when importing comments. The new functions are already being put to use in the Blogger importer.