Define array to avoid notice.
Props ericmann fixes #22479 git-svn-id: http://core.svn.wordpress.org/trunk@22622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f8bbb4c6d0
commit
55dc9d1616
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue