[pLog-svn] r2967 - plog/branches/lifetype-1.0.4

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Feb 17 17:29:00 GMT 2006


Author: mark
Date: 2006-02-17 17:28:59 +0000 (Fri, 17 Feb 2006)
New Revision: 2967

Modified:
   plog/branches/lifetype-1.0.4/xmlrpc.php
Log:
Fixed the bug http://bugs.lifetype.net/view.php?id=837

Modify the getRecentPosts() and metaWeblogGetRecentPosts() return $post in all categories and in all status, instead of $post in in_main_page and published only.

According to:
http://xmlrpc.free-conversant.com/docs/bloggerAPI#getRecentPosts
http://www.xmlrpc.com/metaWeblogApi

These two specs does not define very clear about the status and categories.

I just refer to wp xmlrpc implementation, they will return all categories and all status. But they add a new field of return post to show the post status.

Modified: plog/branches/lifetype-1.0.4/xmlrpc.php
===================================================================
--- plog/branches/lifetype-1.0.4/xmlrpc.php	2006-02-16 20:52:19 UTC (rev 2966)
+++ plog/branches/lifetype-1.0.4/xmlrpc.php	2006-02-17 17:28:59 UTC (rev 2967)
@@ -611,6 +611,7 @@
                 $blogid,
                 -1,
                 $number
+                -1
             );
 
             foreach($list as $item)
@@ -663,8 +664,7 @@
                 $blogid,  
                 -1,  // date
                 $number, // number of articles
-                0,  // category id
-                POST_STATUS_PUBLISHED  // only published articles
+                -1  // category id
             );
 
             foreach($list as $item)



More information about the pLog-svn mailing list