REM State

11 Jan

In Series 2.1.0

There’s snow everywhere, the temperature is well below freezing over most of the area, and the only way out of my neighborhood is uphill. So, I’ve got extra time to work on personal projects today!

I’ve given In Series a little bit of a face lift. It’s still not perfect, but interacting with it should hopefully be a little bit easier now. What 2.1 brings is a UI that:

  • Has a list of existing series that you can add your post to
  • Lets you add your post to the beginning or end of an existing series
  • Allows you to add the post to a new series
  • Provides a way to remove a post from its current series (if it’s in one)
  • Displays which series the post is in

Existing plugin users should note that the newest release of the plugin uses different key names for the metadata. But don’t worry — so long as you don’t change the filename of the plugin, In Series will automatically upgrade your old metadata to the new format. Note that this upgrade is triggered by activating the plugin; if you have trouble with your metadata not getting upgraded, try deactivating and activating the plugin.

Please report bugs for 2.1.0 here. After I’ve fixed any bugs reported here, I’ll release a 2.1.1 version.

Also, remember to back up your database before activating this, or any, new version of In Series. While I’m pretty sure that this code works as expected, and while my testbed survived upgrades and series manipulations, I’d hate to hear that someone’s database got eaten because of a bug.

Get In Series 2.1.0

2 Responses to “In Series 2.1.0”

  1. AvatarQuandary
    1
    Author Comment

    Fixed.

    get_all_in_series() uses an “ORDER BY CAST(meta_value AS UNSIGNED) ASC” statement to order posts in a series. However, “meta_value” (in this case, the series order) can be negative. This leads to a bug where posts that should be the first in a series are sorted as the last.

    Reply to this comment.
  2. AvatarQuandary
    2
    Author Comment

    Fixed.

    get_all_series() is broken. all_series() used to return an array that used post_id for its keys, however, this caused problems for another part of my code (the series selection drop-down). The “fix” was to create an array of series, without post_id, because post_id was irrelevant (or so I thought). However, get_all_series() tries to use the key data to create links; since they key data no longer corresponds to post_id values, this won’t work.

    Reply to this comment.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Comment Preview:

© 2008 REM State | Entries (RSS) and Comments (RSS)

Global Positioning System Gazettewordpress logo