WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #16980


Ignore:
Timestamp:
03/27/2011 01:14:55 PM (7 years ago)
Author:
ocean90
Comment:

Copied from the comment.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16980 – Description

    initial v2  
    1 I tried to fix the following bug
    2 http://core.trac.wordpress.org/ticket/10599
    3 Found out when you send and empty value via xmlrpc
    4 it converts it to null value.
    5 Say you send and array of arguments for mw_editpost, set
    6 $content_struct['mt_keywords'] = '';
    7 IXR client  passes a null value instead of an '' empty value.
     1I tried to fix the following bug #10599
     2Found out when you send and empty value via xmlrpc it converts it to null value.
    83
    9 In mw_post method consider this statement
    10 $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] : null;
     4 Say you send and array of arguments for mw_editpost, set
    115
    12 Even if you send an '' empty value this statement fails because $content_struct['mt_keywords'] is set to null by IXR client.
     6{{{
     7$content_struct[mt_keywords] = '';
     8}}}
     9 
     10IXR client passes a null value instead of an empty value.
     11
     12In mw_post method consider this statement
     13
     14{{{
     15$tags_input = isset( $content_structmt_keywords? ) ? $content_struct[mt_keywords] : null;
     16}}}
     17
     18
     19Even if you send an empty value this statement fails because
     20
     21
     22{{{
     23$content_struct[mt_keywords]
     24}}}
     25 
     26is set to null by IXR client.