#6648 closed defect (bug) (invalid)
wp_set_post_categories not working properly
| Reported by: | mjvillarejo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
hi, i detected that the funcion doesn't work properly because it makes from the array of categories, an array of numbers based on the 'intval' function line ~1493 of posts.php,
$post_categories = array_map('intval', $post_categories);
to fix it, just comment the array_map line.
Regards,
MV
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It's supposed to accept an array of ints.