Make WordPress Core

Changeset 16508


Ignore:
Timestamp:
11/20/2010 03:50:56 PM (14 years ago)
Author:
westi
Message:

Ensure that we return post IDs as strings to honour API defintions. See #15517

File:
1 edited

Legend:

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

    r16484 r16508  
    17711771            'dateCreated' => new IXR_Date(mysql2date('Ymd\TH:i:s', $post_data['post_date'], false)),
    17721772            'content'     => $content,
    1773             'postid'  => $post_data['ID']
     1773            'postid'  => (string) $post_data['ID']
    17741774        );
    17751775
     
    18251825                'dateCreated' => new IXR_Date($post_date),
    18261826                'content' => $content,
    1827                 'postid' => $entry['ID'],
     1827                'postid' => (string) $entry['ID'],
    18281828            );
    18291829
     
    28082808                'dateCreated' => new IXR_Date($post_date),
    28092809                'userid' => $entry['post_author'],
    2810                 'postid' => $entry['ID'],
     2810                'postid' => (string) $entry['ID'],
    28112811                'description' => $post['main'],
    28122812                'title' => $entry['post_title'],
     
    30173017                'dateCreated' => new IXR_Date($post_date),
    30183018                'userid' => $entry['post_author'],
    3019                 'postid' => $entry['ID'],
     3019                'postid' => (string) $entry['ID'],
    30203020                'title' => $entry['post_title'],
    30213021                'date_created_gmt' => new IXR_Date($post_date_gmt)
Note: See TracChangeset for help on using the changeset viewer.