mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Cast categoryId to string to be compliant. fixes #3662
git-svn-id: http://svn.automattic.com/wordpress/trunk@4807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54cfb25317
commit
720df5dcf9
@ -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…
x
Reference in New Issue
Block a user