REM State

09 May

Next 3.0 release “Real Soon Now”

Update: There’s a reason “real soon now” is quoted out. It’s over a month later, and I’m still testing. In Series 3.0.5 will eventually get released, though!

Sorry for all the not-posting I’ve been doing lately; work’s killing me, and I’ve been taking a little break. That said, I have been working on bugs and testing; I’m trying to perfect an issue with the %-tokens needing to expand correctly when used as a value for an HTML attribute (bug 21). I have a mostly-working solution; I just need to hammer out the trickier corner cases (correctly dealing with the case where an expanded token results in another token inside an HTML attribute). Once that’s out of the way, I get to run the full set of tests on all the WordPress versions I’ve got (anyone want to volunteer to help? I’ll provide the test cases, the database, the web server, and everything!). Granted that all the tests pass, I’ll cut 3.0.6, and that should be the last version of 3.0 I’ll need to release for a while.

Oh, and thanks to everyone who gave suggestions for 3.1 features; I appreciate it. :)

8 Responses to “Next 3.0 release “Real Soon Now””

  1. AvatarAnanda
    1

    We’re patiently waiting ;-)

    Reply to this comment.
  2. AvatarQuandary
    2
    Author Comment

    I’m working on it. I swear. I think I have the replacement problem thoroughly solved; all that’s left is to write up the new testcases, perform the test pass, and hope that there aren’t any more bugs waiting. :)

    Reply to this comment.
  3. AvatarHenrik
    3

    I’m looking forward to it. Meanwhile, I believe I’ve discovered a bug of some sort… It appears that InSeries appends the TOC to every post, whether it’s in a series or not (In the source there are two div’s: ). Under normal operation, this doesn’t matter.

    However, when viewing part of the series, the_content expands in all posts, even those that are not part of the series. As I have a sideblog (based on excluding a category on the front page, then listing it in the sidebar), where the full posts are shown in the sidebar, the TOC expands in every single post there as well, when viewing an InSeries post.

    Example (unfortunately in Swedish):
    http://www.henriksjoholm.se/2007/04/17/i-kina/ is the first post in a series about China. When viewing this, you also see the TOC under the posts in the sidebar, heades “Bloggrannar” (blog neighbourhood).

    Again, thanks for your great work!

    Reply to this comment.
  4. AvatarQuandary
    4
    Author Comment

    @Henrik

    Are you using a plugin to accomplish this? If so, can you provide a link to it? I need to understand how that page is generated in order to figure out what’s going on. In Series uses get_the_ID() (if present) or $post->ID (if not) to figure out the current post, then does a reverse-lookup to figure out which series data should be inserted. This lookup happens every time the_content() is called, so my first inclination would be that the source is somehow abusing or circumventing “The Loop” to get its results.

    Thanks for the report. :)

    Reply to this comment.
  5. AvatarHenrik
    5

    Thanks for the response.

    Yes, actually, I’m using to plugins to accomplish this:
    First, “customizable post listings” (http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/) to generate a listing.
    Secondly, it’s embedded in one of my favorites - “widgetize anything” (http://www.erik-rasmussen.com/blog/2006/11/30/widgetize-anything/).

    The actual code within the widget:
    echo ‘<ul><li><a href=”/category/sideblog”>Arkiv</a&gt:</li&gt:</ul&gt:’;
    echo ‘<div id=”sidoblogg”&gt:<ul&gt:’;
    c2c_get_recent_posts(5,$format = “<li&gt:<h3&gt:%post_title%</h3&gt: %post_content%<p&gt: (%post_date%)</p&gt:</li&gt:”,$categories = ‘17′);
    echo ‘</ul&gt:</div&gt:’;

    (not sure whether this will display correctly, but hopefully it’ll be enough to grasp the general idea).

    Reply to this comment.
  6. AvatarHenrik
    6

    As it didn’t show up correctly, here’s another attempt:

    echo ‘<ul><li><a href=”/category/sideblog”>Arkiv</a></li></ul>’;
    echo ‘<div id=”sidoblogg”><ul>’;
    c2c_get_recent_posts(5,$format = “<li><h3>%post_title%</h3> %post_content%<p> (%post_date%)</p></li>”,$categories = ‘17′);
    echo ‘</ul></div>’;

    Reply to this comment.
  7. AvatarQuandary
    7
    Author Comment

    @Henrik

    The Customizable Post Listings plugin only sets $post; it does not set all of the other global values (among them $id, which is what get_the_ID uses) used by “The Loop.” Any plugin that uses the WordPress template tags (including In Series) is going to choke in one way or another when Customizable Post Listings calls apply_filters directly.

    Reply to this comment.
  8. AvatarQuandary
    8
    Author Comment

    @Henrik

    And just so I’m not leaving you in the cold, the problem should be solvable with a call to setup_postdata($post), which will set up all the other bits required to make “The Loop” switch over to the new post. It’s a two-line change; I’ve sent you a copy via e-mail.

    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