Cast categoryId to string to be compliant. fixes #3662
git-svn-id: https://develop.svn.wordpress.org/trunk@4807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c5cb379adf
commit
ddd9ef5216
@ -1433,7 +1433,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
foreach($catids as $catid) {
|
foreach($catids as $catid) {
|
||||||
$categories[] = array(
|
$categories[] = array(
|
||||||
'categoryName' => get_cat_name($catid),
|
'categoryName' => get_cat_name($catid),
|
||||||
'categoryId' => $catid,
|
'categoryId' => (string) $catid,
|
||||||
'isPrimary' => $isPrimary
|
'isPrimary' => $isPrimary
|
||||||
);
|
);
|
||||||
$isPrimary = false;
|
$isPrimary = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user