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:
parent
f675bc1e34
commit
a2d75840ce
|
@ -5218,6 +5218,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
if ( !current_user_can('edit_post', $post_ID) )
|
if ( !current_user_can('edit_post', $post_ID) )
|
||||||
return new IXR_Error(401, __('Sorry, you cannot edit this post.'));
|
return new IXR_Error(401, __('Sorry, you cannot edit this post.'));
|
||||||
|
|
||||||
|
$catids = array();
|
||||||
foreach ( $categories as $cat ) {
|
foreach ( $categories as $cat ) {
|
||||||
$catids[] = $cat['categoryId'];
|
$catids[] = $cat['categoryId'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue