[wp-trac] [WordPress Trac] #25429: `get_the_category_by_ID` triggers PHP notice on non-existent category

WordPress Trac noreply at wordpress.org
Thu Oct 3 17:04:55 UTC 2013


#25429: `get_the_category_by_ID` triggers PHP notice on non-existent category
-----------------------------------+------------------------------
 Reporter:  ericmann               |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Taxonomy               |     Version:  2.3
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------

Comment (by SergeyBiryukov):

 [attachment:25429.4.diff] fixes the notice and clarifies the return value
 for `get_category()` and `get_tag()`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25429#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list