Define array to avoid notice.

Props ericmann
fixes #22479


git-svn-id: https://develop.svn.wordpress.org/trunk@22622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-11-16 22:14:57 +00:00
parent f675bc1e34
commit a2d75840ce
1 changed files with 1 additions and 0 deletions

View File

@ -5218,6 +5218,7 @@ class wp_xmlrpc_server extends IXR_Server {
if ( !current_user_can('edit_post', $post_ID) )
return new IXR_Error(401, __('Sorry, you cannot edit this post.'));
$catids = array();
foreach ( $categories as $cat ) {
$catids[] = $cat['categoryId'];
}