Make WordPress Core

Opened 4 years ago

Closed 15 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 2 years ago.

Download all attachments as: .zip

Change History (5)

2 years ago

#1 @soulseekah
2 years ago

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

Last edited 2 years ago by SergeyBiryukov (previous) (diff)

#2 @SergeyBiryukov
2 years ago

  • Component changed from General to XML-RPC

#3 @maxcutler
2 years 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.

#4 @markoheijnen
15 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.