Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 3 years ago

#5972 closed enhancement (duplicate)

mw_getPost and mw_getRecentPosts ignore the field "post_status"

Reported by: censia's profile censia Owned by: josephscott's profile josephscott
Milestone: Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords:
Focuses: Cc:

Description

The field "post_status" is not included in the answer for getPost and getRecentPosts.
As a consequence, clients do not have any means to know the publish status of posts.

The fix is an easy one-liner.

Change History (2)

#1 @ryan
16 years ago

  • Owner changed from anonymous to josephscott

#2 @josephscott
16 years ago

  • Milestone 2.6 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This is already done in -trunk, see #4982 and revision 6358 http://trac.wordpress.org/changeset/6358

You might also be interested in the new wp.getPostStatusList and wp.getPageStatusList methods, which provide list of valid statuses for posts and pages.

Note: See TracTickets for help on using tickets.