﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
22479,Undefined Variable in `mt_setPostCategories()`,ericmann,ryan,"This will likely only ever come up if `WP_DEBUG` is set to true, but we're attempting to add elements to an array inside a `foreach` without first creating the array.  We then pass a potentially non-existent object along to `wp_set_post_categories()`.

This creates a PHP notice that, if `WP_DEBUG` is turned on with the server, breaks the document returned to XML-RPC clients attempting to use `mt.setPostCategories` to update categories.

The fix is simple.  Just create an empty array before trying to add elements to it or passing it out of the function.",defect (bug),closed,normal,3.5,XML-RPC,3.4.2,minor,fixed,has-patch commit,
