[buddypress-trac] [BuddyPress Trac] #9293: check if taxonomy exists before adding the menu

buddypress-trac noreply at wordpress.org
Fri Dec 26 01:10:37 UTC 2025


#9293: check if taxonomy exists before adding the menu
--------------------------+---------------------
 Reporter:  shawfactor    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  14.5.0
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------

Comment (by vapvarun):

 Attached patch adds a taxonomy_exists('bp_group_type') check at the start
 of bp_groups_admin_types_menu().

 When bp_group_type is filtered out via bp_get_default_taxonomies, the
 function now bails early instead of adding a broken menu link.

 Tested locally - verified the menu is correctly skipped when taxonomy
 doesn't exist.

 Thanks @shawfactor for the report!

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9293#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list