Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#6648 closed defect (bug) (invalid)

wp_set_post_categories not working properly

Reported by: mjvillarejo's profile mjvillarejo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

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)

#1 @ryan
16 years ago

It's supposed to accept an array of ints.

#2 @ryan
16 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#3 @santosj
16 years ago

  • Milestone 2.7 deleted
Note: See TracTickets for help on using tickets.