Ticket #3662 (closed defect (bug): fixed)

Opened 5 years ago

Last modified 5 years ago

Can't post using Ecto b/c categoryID should be string not int

Reported by: foolswisdom Owned by: ryan
Priority: low Milestone: 2.1.1
Component: XML-RPC Version: 2.1
Severity: normal Keywords: xml-rpc has-patch commit
Cc:

Description

Can't post using Ecto b/c categoryID should be string not int

ADDITIONAL DETAILS

FROM  http://nslog.com/2007/01/23/categoryid_in_wordpress_21_breaks_ecto/

When requesting new information in ecto (via "Refresh"), ecto attempts to retrieve the last 15-20 or so entries, their categories, their dates, etc. WordPress 2.1 sends this:

<member><name>categoryId</name><value><int>7</int></value></member>

It should send this:

<member><name>categoryId</name><value><string>7</string></value></member>

ALSO SEE  http://wordpress.com/forums/topic.php?id=5922

This patch is well tested on WordPress.com since 12/10/06 and was not previously merged in error.

Attachments

3662-xmlrpc-categoryId.diff Download (400 bytes) - added by foolswisdom 5 years ago.
3662-xmlrpc-categoryId.trunk.diff Download (402 bytes) - added by foolswisdom 5 years ago.

Change History

comment:1   ryan5 years ago

  • Owner changed from anonymous to ryan

Replying to foolswisdom:

Can't post using Ecto b/c categoryID should be string not int

ADDITIONAL DETAILS

FROM  http://nslog.com/2007/01/23/categoryid_in_wordpress_21_breaks_ecto/

When requesting new information in ecto (via "Refresh"), ecto attempts to retrieve the last 15-20 or so entries, their categories, their dates, etc. WordPress 2.1 sends this:

<member><name>categoryId</name><value><int>7</int></value></member>

It should send this:

<member><name>categoryId</name><value><string>7</string></value></member>

ALSO SEE  http://wordpress.com/forums/topic.php?id=5922

This patch is well tested on WordPress.com since 12/10/06 and was not previously merged in error.

I just applied the patch to my Wordpress 2.1 install as Lloyd suggestd on the Testers mailing list. Works like a charm. Thank you.

comment:3   ryan5 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [4807]) Cast categoryId to string to be compliant. fixes #3662

Note: See TracTickets for help on using tickets.