Changeset 12678 for trunk/src/bp-core/bp-core-filters.php
- Timestamp:
- 07/04/2020 11:42:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r12588 r12678 692 692 function bp_setup_nav_menu_item( $menu_item ) { 693 693 if ( is_admin() ) { 694 if ( 'bp_nav_menu_item' === $menu_item->object ) { 695 $menu_item->type = 'custom'; 696 $menu_item->url = $menu_item->guid; 697 698 if ( ! in_array( array( 'bp-menu', 'bp-'. $menu_item->post_excerpt .'-nav' ), $menu_item->classes ) ) { 699 $menu_item->classes[] = 'bp-menu'; 700 $menu_item->classes[] = 'bp-'. $menu_item->post_excerpt .'-nav'; 701 } 702 } 703 694 704 return $menu_item; 695 705 }
Note: See TracChangeset
for help on using the changeset viewer.