Warning: Undefined array key "rcommentid" in /www/blog/wordpress/wp-content/plugins/wp-recaptcha/recaptcha.php on line 348

Warning: Undefined array key "rchash" in /www/blog/wordpress/wp-content/plugins/wp-recaptcha/recaptcha.php on line 349
An old Planet bug resurfaces – May Contain Traces of Bolts

An old Planet bug resurfaces

So, I see that Planet still hasn’t fixed the bug I pointed out (and provided a patch for) in 2008. Specifically, it sorts entries by “updated” rather “published”. As a consequence, some years-old blog posts I recently re-tagged showed up as new on Planet NUUG.

Here’s the patch, although I have no idea whether it still applies:

--- __init__.py.orig    2006-07-27 02:01:54.000000000 +0200
+++ __init__.py 2008-01-28 11:38:02.000000000 +0100
@@ -924,7 +924,7 @@
         added in previous updates and don't creep into the next one.
         """
 
-        for other_key in ("updated", "modified", "published", "issued", "created"):
+        for other_key in ("published", "issued", "created", "updated", "modified"):
             if self.has_key(other_key):
                 date = self.get_as_date(other_key)
                 break

Leave a Reply

Your email address will not be published.


Warning: Undefined array key "rerror" in /www/blog/wordpress/wp-content/plugins/wp-recaptcha/recaptcha.php on line 291
 

This site uses Akismet to reduce spam. Learn how your comment data is processed.