Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#8716 closed defect (bug) (worksforme)

get_category('of a string') throws an error 500

Reported by: Malaiac Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: General Keywords:
Focuses: Cc:


yes, it's better not to try a get_category of a string in the first place, but it's a bit of overreacting, isn't it ?

try get_category('whatever'); should be a intval($category) inside get_category() before asking to get_term

Change History (1)

#1 @Denis-de-Bernardy
9 years ago

  • Milestone 2.8 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

calling that generates no error 500 in trunk... please re-open if you can reproduce, with a step by step procedure to reproduce the issue.

Note: See TracTickets for help on using tickets.