Opened 14 years ago
Closed 14 years ago
#20543 closed defect (bug) (fixed)
Removing a custom field via XML-RPC results in a PHP Notice
| Reported by: | scott.gonzalez | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | XML-RPC | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
In order to remove a custom field, you pass the id without a key or value, but the code is currently checking for a value before determining if the field should be deleted.
PHP Notice: Undefined index: value in .../wp-includes/class-wp-xmlrpc-server.php on line 279
testing against HEAD.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
http://unit-tests.trac.wordpress.org/changeset/697
php wp-test.php -d -t TestXMLRPCServer_wp_editPost (-d forcing WP_DEBUG on) -- before patch, error due to this notice.