Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 3 years ago

#3662 closed defect (bug) (fixed)

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

Reported by: foolswisdom's profile foolswisdom Owned by: ryan's profile ryan
Milestone: 2.1.1 Priority: low
Severity: normal Version: 2.1
Component: XML-RPC Keywords: xml-rpc has-patch commit
Focuses: 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 (2)

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

Download all attachments as: .zip

Change History (5)

#1 @ryan
17 years ago

  • Owner changed from anonymous to ryan

#2 in reply to: ↑ description @alexkucera
17 years ago

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.

#3 @ryan
17 years ago

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

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

Note: See TracTickets for help on using tickets.