Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 5 years ago

#3662 closed defect (bug) (fixed)

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: Focuses:

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 20 years ago.
3662-xmlrpc-categoryId.trunk.diff (402 bytes ) - added by foolswisdom 20 years ago.

Download all attachments as: .zip

Change History (5)

#1 @ryan
20 years ago

  • Owner changed from anonymous to ryan

#2 in reply to: ↑ description @alexkucera
20 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
20 years ago

  • Resolutionfixed
  • Status newclosed

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

Note: See TracTickets for help on using tickets.