[wp-trac] [WordPress Trac] #4961: multiple wp_dropdown_categories
broken
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 12 08:23:10 GMT 2007
#4961: multiple wp_dropdown_categories broken
---------------------+------------------------------------------------------
Reporter: pixline | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4 (next)
Component: General | Version:
Severity: normal | Keywords: has-patch
---------------------+------------------------------------------------------
Writing a complex template management panel, I've found that is
impossibile to use multiple wp_dropdown_categories because of a function
called stamp_cat() , that is located inside &get_categories() and re-
instanziated every dropdown request. This produce errors like:
Fatal error: Cannot redeclare stamp_cat() (previously declared in
/Users/gomez/Sites/wpmu/wp-includes/category.php:99) in
/Users/gomez/Sites/wpmu/wp-includes/category.php on line 99
I moved stamp_cat outside &get_categories, and it works for me. I've also
made a patch for that, but I'm not sure if this can have some downside in
other areas (maybe there's a reason for stamp_cat to be there, and I
simply can't know it).
Bug first reported on <a
href="http://trac.mu.wordpress.org/ticket/420">WPMU Trac</a>, and bounced
back here because is a shared issue.
--
Ticket URL: <http://trac.wordpress.org/ticket/4961>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list