Ticket #22479: mt_setPostCategories.diff

File mt_setPostCategories.diff, 484 bytes (added by ericmann, 6 months ago)

Explicitly define the $catids array before trying to manipulate it.

  • wp-includes/class-wp-xmlrpc-server.php

     
    52185218                if ( !current_user_can('edit_post', $post_ID) ) 
    52195219                        return new IXR_Error(401, __('Sorry, you cannot edit this post.')); 
    52205220 
     5221                $catids = array(); 
    52215222                foreach ( $categories as $cat ) { 
    52225223                        $catids[] = $cat['categoryId']; 
    52235224                }