Changeset 3982 for trunk/bp-forums/bp-forums-template.php
- Timestamp:
- 02/01/2011 07:46:50 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/bp-forums-template.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-template.php
r3933 r3982 395 395 396 396 /* Currently this will only work with group forums, extended support in the future */ 397 return apply_filters( 'bp_get_the_topic_object_permalink', $bp->root_domain. '/' . $bp->groups->root_slug . '/' . $forum_template->topic->object_slug . '/forum/' );397 return apply_filters( 'bp_get_the_topic_object_permalink', bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $forum_template->topic->object_slug . '/forum/' ); 398 398 } 399 399 … … 548 548 549 549 if ( !empty( $forum_template->topic->object_slug ) ) 550 $permalink = trailingslashit( $bp->root_domain. '/' . $bp->groups->root_slug . '/' . $forum_template->topic->object_slug );550 $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $forum_template->topic->object_slug ); 551 551 else if ( !empty( $bp->is_single_item ) ) 552 $permalink = trailingslashit( $bp->root_domain. '/' . $bp->current_component . '/' . $bp->current_item );552 $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_item ); 553 553 else 554 $permalink = trailingslashit( $bp->root_domain. '/' . $bp->current_component . '/' . $bp->current_action );554 $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_action ); 555 555 556 556 return apply_filters( 'bp_get_the_topic_permalink', trailingslashit( $permalink . 'forum/topic/' . $forum_template->topic->topic_slug ) ); … … 663 663 global $bp; 664 664 665 return apply_filters( 'bp_get_my_forum_topics_link', $bp->root_domain. '/' . $bp->forums->slug . '/personal/' );665 return apply_filters( 'bp_get_my_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug . '/personal/' ); 666 666 } 667 667 … … 672 672 global $bp; 673 673 674 return apply_filters( 'bp_get_unreplied_forum_topics_link', $bp->root_domain. '/' . $bp->forums->slug . '/unreplied/' );674 return apply_filters( 'bp_get_unreplied_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug . '/unreplied/' ); 675 675 } 676 676 … … 682 682 global $bp; 683 683 684 return apply_filters( 'bp_get_popular_forum_topics_link', $bp->root_domain. '/' . $bp->forums->slug . '/popular/' );684 return apply_filters( 'bp_get_popular_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug . '/popular/' ); 685 685 } 686 686 … … 691 691 global $bp; 692 692 693 return apply_filters( 'bp_get_newest_forum_topics_link', $bp->root_domain. '/' . $bp->forums->slug . '/' );693 return apply_filters( 'bp_get_newest_forum_topics_link', bp_get_root_domain() . '/' . $bp->forums->slug . '/' ); 694 694 } 695 695 … … 1101 1101 1102 1102 if ( $bp->is_single_item ) 1103 $permalink = trailingslashit( $bp->root_domain. '/' . $bp->current_component . '/' . $bp->current_item );1103 $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_item ); 1104 1104 else 1105 $permalink = trailingslashit( $bp->root_domain. $bp->current_component . '/' . $bp->current_action );1105 $permalink = trailingslashit( bp_get_root_domain() . $bp->current_component . '/' . $bp->current_action ); 1106 1106 1107 1107 return apply_filters( 'bp_get_forum_permalink', trailingslashit( $permalink . 'forum' ) ); … … 1114 1114 global $bp; 1115 1115 1116 return apply_filters( 'bp_get_forum_directory_permalink', trailingslashit( $bp->root_domain. '/' . $bp->forums->root_slug ) );1116 return apply_filters( 'bp_get_forum_directory_permalink', trailingslashit( bp_get_root_domain() . '/' . $bp->forums->root_slug ) ); 1117 1117 } 1118 1118 … … 1137 1137 global $topic_template; 1138 1138 1139 return apply_filters( 'bp_get_forum_action', $bp->root_domain. esc_attr( $_SERVER['REQUEST_URI'] ) );1139 return apply_filters( 'bp_get_forum_action', bp_get_root_domain() . esc_attr( $_SERVER['REQUEST_URI'] ) ); 1140 1140 } 1141 1141 … … 1146 1146 global $bp; 1147 1147 1148 return apply_filters( 'bp_get_forum_topic_action', $bp->root_domain. esc_attr( $_SERVER['REQUEST_URI'] ) );1148 return apply_filters( 'bp_get_forum_topic_action', bp_get_root_domain() . esc_attr( $_SERVER['REQUEST_URI'] ) ); 1149 1149 } 1150 1150
Note: See TracChangeset
for help on using the changeset viewer.