Changeset 4652
- Timestamp:
- 07/12/2011 03:29:12 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r4651 r4652 832 832 833 833 case 'forums': 834 $slug = bp_is_active( 'forums' ) ? $bp->forums->root_slug: '';834 $slug = bp_is_active( 'forums' ) ? bp_get_groups_root_slug() : ''; 835 835 $query_string = '/?fs='; 836 836 break; -
trunk/bp-forums/bp-forums-filters.php
r4536 r4652 76 76 global $bp; 77 77 78 return apply_filters( 'bp_forums_filter_tag_link', bp_get_root_domain() . '/' . $bp->forums->root_slug. '/tag/' . $tag . '/' );78 return apply_filters( 'bp_forums_filter_tag_link', bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/tag/' . $tag . '/' ); 79 79 } 80 80 add_filter( 'bb_get_tag_link', 'bp_forums_filter_tag_link', 10, 4); -
trunk/bp-forums/bp-forums-template.php
r4648 r4652 689 689 global $bp; 690 690 691 return apply_filters( 'bp_get_my_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug. '/personal/' );691 return apply_filters( 'bp_get_my_forum_topics_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/personal/' ); 692 692 } 693 693 … … 698 698 global $bp; 699 699 700 return apply_filters( 'bp_get_unreplied_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug. '/unreplied/' );700 return apply_filters( 'bp_get_unreplied_forum_topics_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/unreplied/' ); 701 701 } 702 702 … … 708 708 global $bp; 709 709 710 return apply_filters( 'bp_get_popular_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug. '/popular/' );710 return apply_filters( 'bp_get_popular_forum_topics_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/popular/' ); 711 711 } 712 712 … … 717 717 global $bp; 718 718 719 return apply_filters( 'bp_get_newest_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug. '/' );719 return apply_filters( 'bp_get_newest_forum_topics_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/' ); 720 720 } 721 721 … … 726 726 global $bp; 727 727 728 if ( !bp_is_directory() || ! $bp->current_action)728 if ( !bp_is_directory() || !bp_current_action() ) 729 729 return 'newest'; 730 730 731 732 return apply_filters( 'bp_get_forum_topic_type', $bp->current_action ); 731 return apply_filters( 'bp_get_forum_topic_type', bp_current_action() ); 733 732 } 734 733 … … 739 738 global $bp; 740 739 741 if ( bp_is_directory() && $bp->forums->slug == $bp->current_component ) 742 return apply_filters( 'bp_get_forums_tag_name', $bp->action_variables[0] ); 740 if ( bp_is_directory() && bp_is_forums_component() && !empty( $bp->action_variables[0] ) ) 741 $tag_name = $bp->action_variables[0]; 742 else 743 $tag_name = false; 744 745 return apply_filters( 'bp_get_forums_tag_name', $tag_name ); 743 746 } 744 747 … … 1177 1180 global $bp; 1178 1181 1179 return apply_filters( 'bp_get_forum_directory_permalink', trailingslashit( bp_get_root_domain() . '/' . $bp->forums->root_slug) );1182 return apply_filters( 'bp_get_forum_directory_permalink', trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ) ); 1180 1183 } 1181 1184
Note: See TracChangeset
for help on using the changeset viewer.