[wp-trac] [WordPress Trac] #16980: Empty Values are ignored by class-ixr.php

WordPress Trac noreply at wordpress.org
Sun Dec 27 01:18:17 UTC 2015


#16980: Empty Values are ignored by class-ixr.php
--------------------------+-----------------------------
 Reporter:  nprasath002   |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  XML-RPC       |     Version:  3.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by dd32):

 This caused #35185  -  XML-RPC endpoints have been using `isset()` on
 fields for quite some time, relying upon the fact that elements that
 weren't specified (or specified as empty) were being discarded.

 It seems that at least one client, the `WordPress::API` CPAN module relied
 upon this behaviour, by sending all fields, even ones which were
 unspecified by the caller, to XML-RPC.

 The fix appears to be  that all XML RPC endpoints need to switch from
 `isset()` to `!empty()` as that's what their intentions are, but that's
 unlikely to happen in a point release, which means [35509] will be
 reverted unless there's a strong reason not to (or that sending empty
 fields, like is happening #35185, is invalid per spec), It'll need a
 champion to work on it for 4.5 inclusion then.

 @solarissmoke @nprasath002 @ericmann I know that your comments are mostly
 5 years old, but any chance you could take a glance at the above ticket?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16980#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list