From 55dc9d1616ce6f31265d58c5c71cbc49c1130c0b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 16 Nov 2012 22:14:57 +0000 Subject: [PATCH] Define array to avoid notice. Props ericmann fixes #22479 git-svn-id: http://core.svn.wordpress.org/trunk@22622 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index d59b3b0661..da90648418 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -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']; }