[wp-trac] [WordPress Trac] #11737: PHP Notice in get_cat_name()

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 07:44:30 UTC 2010


#11737: PHP Notice in get_cat_name()
------------------------------+---------------------------------------------
 Reporter:  miqrogroove       |       Owner:  westi
     Type:  defect (bug)      |      Status:  new  
 Priority:  normal            |   Milestone:  3.0  
Component:  Warnings/Notices  |     Version:       
 Severity:  normal            |    Keywords:       
------------------------------+---------------------------------------------
Changes (by sirzooro):

 * cc: sirzooro (added)


Comment:

 I think returning `WP_Error` is better than calling `wp_die()`, because in
 this case WP (directly or with plugin help) may return 404 to browser
 and/or display page "no category found".

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


More information about the wp-trac mailing list