WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 11 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:

Description

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 20 months ago.

Download all attachments as: .zip

Change History (5)

@soulseekah20 months ago

comment:1 @soulseekah20 months ago

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

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

comment:2 @SergeyBiryukov20 months ago

  • Component changed from General to XML-RPC

comment:3 @maxcutler20 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 @markoheijnen11 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.