[wp-trac] [WordPress Trac] #12046: Make the length field for enclosures an INT in metaWeblog.getPost results
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 26 18:59:55 UTC 2010
#12046: Make the length field for enclosures an INT in metaWeblog.getPost results
--------------------------+-------------------------------------------------
Reporter: josephscott | Owner: josephscott
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: XML-RPC | Version: 3.0
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Because we trim() the enclosure data being sent back from a
metaWeblog.getPost request the length field ends up being a STRING, when
it's supposed to be an INT. It's easy enough to fix, simply cast the
length field to an INT.
I've included a trivial patch to do just that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12046>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list