Make WordPress Core


Ignore:
Timestamp:
03/15/2014 05:04:54 AM (11 years ago)
Author:
nacin
Message:

XML-RPC: Include 'sticky' in the struct returned from metaWeblog.getRecentPosts.

Using wp.getPosts is preferred and non-WP XML-RPC APIs are no longer actively maintained. This is simply for parity with existing MW methods.

props soulseekah.
fixes #26679.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r27551 r27553  
    48474847                'wp_post_format' => $post_format,
    48484848                'date_modified' => $post_modified,
    4849                 'date_modified_gmt' => $post_modified_gmt
     4849                'date_modified_gmt' => $post_modified_gmt,
     4850                'sticky' => ( $entry['post_type'] === 'post' && is_sticky( $entry['ID'] ) ),
    48504851            );
    48514852
Note: See TracChangeset for help on using the changeset viewer.