Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21888 closed defect (bug) (fixed)

Correct wp_count_terms() @return value

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: nacin's profile nacin
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Inline Docs Keywords: has-patch
Focuses: Cc:


wp_count_terms() calls get_terms(), which returns a WP_Error object on failure:

Attachments (1)

21888.patch (579 bytes) - added by SergeyBiryukov 12 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
12 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [21843]:

Update docs to reflect that wp_count_terms() can return WP_Error when the taxonomy does not exist. props SergeyBiryukov, fixes #21888.

Note: See TracTickets for help on using tickets.