WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 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:

Description

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)

comment:1 Denis-de-Bernardy5 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.