Make WordPress Core

Opened 2 years ago

Last modified 4 months ago

#20048 new enhancement

Allow mt.getRecentPostTitles to return the sticky flag

Reported by: daniloercoli Owned by:
Milestone: Awaiting Review 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 4 months ago.

Download all attachments as: .zip

Change History (4)

soulseekah4 months ago

comment:1 soulseekah4 months ago

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

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

comment:2 SergeyBiryukov4 months ago

  • Component changed from General to XML-RPC

comment:3 maxcutler4 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.

Note: See TracTickets for help on using tickets.