Make WordPress Core

Opened 5 years ago

Last modified 4 weeks ago

#16980 closed defect (bug)

Empty Values are converted to null by class-ixr.php — at Initial Version

Reported by: nprasath002 Owned by:
Milestone: 4.4 Priority: normal
Severity: normal Version: 3.1
Component: XML-RPC Keywords: has-patch
Focuses: Cc:


I tried to fix the following bug
Found out when you send and empty value via xmlrpc
it converts it to null value.
Say you send and array of arguments for mw_editpost, set
$content_structmt_keywords? = ;
IXR client passes a null value instead of an
empty value.

In mw_post method consider this statement
$tags_input = isset( $content_structmt_keywords? ) ? $content_structmt_keywords? : null;

Even if you send an empty value this statement fails because $content_structmt_keywords? is set to null by IXR client.

Change History (0)

Note: See TracTickets for help on using tickets.