| 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. |
| | 1 | I tried to fix the following bug #10599 |
| | 2 | Found out when you send and empty value via xmlrpc it converts it to null value. |
| 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 | |
| | 10 | IXR client passes a null value instead of an empty value. |
| | 11 | |
| | 12 | In mw_post method consider this statement |
| | 13 | |
| | 14 | {{{ |
| | 15 | $tags_input = isset( $content_structmt_keywords? ) ? $content_struct[mt_keywords] : null; |
| | 16 | }}} |
| | 17 | |
| | 18 | |
| | 19 | Even if you send an empty value this statement fails because |
| | 20 | |
| | 21 | |
| | 22 | {{{ |
| | 23 | $content_struct[mt_keywords] |
| | 24 | }}} |
| | 25 | |
| | 26 | is set to null by IXR client. |