[wp-trac] Re: [WordPress Trac] #5110: in_category function does no
sanity checking
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 9 13:55:52 GMT 2007
#5110: in_category function does no sanity checking
----------------------+-----------------------------------------------------
Reporter: tomsing1 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3.1
Component: Template | Version: 2.3
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Changes (by stormerider):
* summary: on_category function in category-template.php outputs warning
with different themes => in_category function
does no sanity checking
Comment:
This is in_category, not on_category.
Some error checking should be performed to see if $category is null, and
if so, return false. Diff attached.
--
Ticket URL: <http://trac.wordpress.org/ticket/5110#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list