Make WordPress Core

Opened 4 years ago

Closed 13 months ago

#20048 closed enhancement (wontfix)

Allow mt.getRecentPostTitles to return the sticky flag

Reported by: daniloercoli Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: XML-RPC Keywords: mobile needs-patch
Focuses: Cc:


Would be nice to return the value of the sticky flag in the mt.getRecentPostTitles response. This XML-RPC call is mostly used on mobile clients, and we need to show a visual indicator on "sticky" posts. Obviously, we can call metaWeblog.getRecentPosts, but it is a "more expensive" XML-RPC call.

Attachments (1)

20048.diff (622 bytes) - added by soulseekah 22 months ago.

Download all attachments as: .zip

Change History (5)

@soulseekah22 months ago

comment:1 @soulseekah22 months ago

Sorry, wrong ticket, misread getRecentPostTitles vs. getRecentPosts. Moved to #26679

Last edited 22 months ago by SergeyBiryukov (previous) (diff)

comment:2 @SergeyBiryukov22 months ago

  • Component changed from General to XML-RPC

comment:3 @maxcutler22 months ago

  • Cc maxcutler added

As with #26679, my recommendation is to instead just use wp.getPosts method instead. You can make it just as lightweight as mt.getRecentPostTitles by using the fields argument to limit the data returned.

comment:4 @markoheijnen13 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I agree with maxcutler here and you should go with wp.getPosts

Note: See TracTickets for help on using tickets.