[wpmu-trac] [WordPress MU Trac] #420: multiple
wp_dropdown_categories broken
WordPress MU Trac
wpmu-trac at lists.automattic.com
Tue Sep 11 14:34:21 GMT 2007
#420: multiple wp_dropdown_categories broken
------------------------+---------------------------------------------------
Reporter: pixline | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: component1 | Version: 1.0
Severity: blocker | 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)
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/420>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list