WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12046 closed defect (bug) (fixed)

Make the length field for enclosures an INT in metaWeblog.getPost results

Reported by: josephscott Owned by: josephscott
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: XML-RPC Keywords: has-patch
Focuses: Cc:

Description

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.

Attachments (1)

xmlrpc.php.diff (487 bytes) - added by josephscott 6 years ago.

Download all attachments as: .zip

Change History (3)

@josephscott6 years ago

comment:1 @ryan6 years ago

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

(In [12870]) Cast length to int. Props josephscott. fixes #12046

comment:2 @nacin6 years ago

  • Milestone changed from Unassigned to 3.0
Note: See TracTickets for help on using tickets.