Changeset 3982
- Timestamp:
- 02/01/2011 07:46:50 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-actions.php
r3917 r3982 29 29 // Redirect to root if activity does not exist 30 30 if ( !$activity = $activity['activities'][0] ) 31 bp_core_redirect( $bp->root_domain);31 bp_core_redirect( bp_get_root_domain() ); 32 32 33 33 // Do not redirect at default … … 57 57 // Allow redirect to be filtered 58 58 if ( !$redirect = apply_filters( 'bp_activity_permalink_redirect_url', $redirect, &$activity ) ) 59 bp_core_redirect( $bp->root_domain);59 bp_core_redirect( bp_get_root_domain() ); 60 60 61 61 // Redirect to the actual activity permalink page -
trunk/bp-activity/bp-activity-functions.php
r3903 r3982 851 851 else { 852 852 if ( 'activity_comment' == $activity_obj->type ) 853 $link = $bp->root_domain. '/' . $bp->activity->root_slug . '/p/' . $activity_obj->item_id . '/';853 $link = bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $activity_obj->item_id . '/'; 854 854 else 855 $link = $bp->root_domain. '/' . $bp->activity->root_slug . '/p/' . $activity_obj->id . '/';855 $link = bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $activity_obj->id . '/'; 856 856 } 857 857 -
trunk/bp-activity/bp-activity-screens.php
r3917 r3982 114 114 115 115 if ( !$activity = $activity['activities'][0] ) 116 bp_core_redirect( $bp->root_domain);116 bp_core_redirect( bp_get_root_domain() ); 117 117 118 118 // Default access is true … … 124 124 // Activity is from a group, but groups is currently disabled 125 125 if ( !bp_is_active( 'groups') ) 126 bp_core_redirect( $bp->root_domain);126 bp_core_redirect( bp_get_root_domain() ); 127 127 128 128 // Check to see if the group is not public, if so, check the … … 156 156 is_user_logged_in() ? 157 157 bp_core_redirect( $bp->loggedin_user->domain ) : 158 bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( $bp->root_domain. '/' . $bp->activity->slug . '/p/' . $bp->current_action ) ) );158 bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/p/' . $bp->current_action ) ) ); 159 159 } 160 160 -
trunk/bp-activity/bp-activity-template.php
r3917 r3982 836 836 // Delete link 837 837 if ( $bp->loggedin_user->is_super_admin || $bp->loggedin_user->id == $comment->user_id ) { 838 $delete_url = wp_nonce_url( $bp->root_domain. '/' . $bp->activity->slug . '/delete/?cid=' . $comment->id, 'bp_activity_delete_link' );838 $delete_url = wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/?cid=' . $comment->id, 'bp_activity_delete_link' ); 839 839 $content .= apply_filters( 'bp_activity_comment_delete_link', ' · <a href="' . $delete_url . '" class="delete acomment-delete" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>', $comment, $delete_url ); 840 840 } … … 973 973 global $activities_template, $bp; 974 974 975 return apply_filters( 'bp_get_activity_delete_link', '<a href="' . wp_nonce_url( $bp->root_domain. '/' . $bp->activity->slug . '/delete/' . $activities_template->activity->id, 'bp_activity_delete_link' ) . '" class="item-button delete-activity confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>' );975 return apply_filters( 'bp_get_activity_delete_link', '<a href="' . wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/' . $activities_template->activity->id, 'bp_activity_delete_link' ) . '" class="item-button delete-activity confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>' ); 976 976 } 977 977 … … 989 989 990 990 $latest_update = '"' . apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 180 ) ) ) ) . '"'; 991 $latest_update .= ' · <a href="' . $bp->root_domain. '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';991 $latest_update .= ' · <a href="' . bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>'; 992 992 993 993 return apply_filters( 'bp_get_activity_latest_update', $latest_update ); -
trunk/bp-blogs/bp-blogs-buddybar.php
r3952 r3982 49 49 if ( bp_blog_signup_enabled() ) { 50 50 echo '<li' . $alt . '>'; 51 echo '<a href="' . $bp->root_domain. '/' . $bp->blogs->root_slug . '/create/">' . __( 'Create a Blog!', 'buddypress' ) . '</a>';51 echo '<a href="' . bp_get_root_domain() . '/' . $bp->blogs->root_slug . '/create/">' . __( 'Create a Blog!', 'buddypress' ) . '</a>'; 52 52 echo '</li>'; 53 53 } -
trunk/bp-blogs/bp-blogs-template.php
r3937 r3982 222 222 223 223 if ( empty( $blogs_template->blog->domain ) ) 224 $permalink = $bp->root_domain. $blogs_template->blog->path;224 $permalink = bp_get_root_domain() . $blogs_template->blog->path; 225 225 else { 226 226 $protocol = 'http://'; … … 482 482 483 483 if ( bp_is_my_profile() ) 484 echo apply_filters( 'bp_create_blog_link', '<a href="' . $bp->root_domain. '/' . $bp->blogs->root_slug . '/create/">' . __( 'Create a Blog', 'buddypress' ) . '</a>' );484 echo apply_filters( 'bp_create_blog_link', '<a href="' . bp_get_root_domain() . '/' . $bp->blogs->root_slug . '/create/">' . __( 'Create a Blog', 'buddypress' ) . '</a>' ); 485 485 } 486 486 -
trunk/bp-core/bp-core-avatars.php
r3860 r3982 254 254 $email = bp_core_get_user_email( $item_id ); 255 255 } else if ( 'group' == $object || 'blog' == $object ) { 256 $email = "{$item_id}-{$object}@{ $bp->root_domain}";256 $email = "{$item_id}-{$object}@{bp_get_root_domain()}"; 257 257 } 258 258 } -
trunk/bp-core/bp-core-buddybar.php
r3952 r3982 323 323 global $bp; 324 324 325 echo '<a href="' . $bp->root_domain. '" id="admin-bar-logo">' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '</a>';325 echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '</a>'; 326 326 } 327 327 … … 333 333 return false; 334 334 335 echo '<li class="bp-login no-arrow"><a href="' . $bp->root_domain . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';335 echo '<li class="bp-login no-arrow"><a href="' . bp_get_root_domain() . '/wp-login.php?redirect_to=' . urlencode( bp_get_root_domain() ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>'; 336 336 337 337 // Show "Sign Up" link if user registrations are allowed … … 422 422 <a href="#"><?php _e( 'Visit', 'buddypress' ) ?></a> 423 423 <ul class="random-list"> 424 <li><a href="<?php echo trailingslashit( $bp->root_domain. '/' . $bp->members->root_slug ) . '?random-member' ?>"><?php _e( 'Random Member', 'buddypress' ) ?></a></li>424 <li><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . $bp->members->root_slug ) . '?random-member' ?>"><?php _e( 'Random Member', 'buddypress' ) ?></a></li> 425 425 426 426 <?php if ( bp_is_active( 'groups' ) ) : ?> 427 427 428 <li class="alt"><a href="<?php echo trailingslashit( $bp->root_domain. '/' . $bp->groups->root_slug ) . '?random-group' ?>"><?php _e( 'Random Group', 'buddypress' ) ?></a></li>428 <li class="alt"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . $bp->groups->root_slug ) . '?random-group' ?>"><?php _e( 'Random Group', 'buddypress' ) ?></a></li> 429 429 430 430 <?php endif; ?> … … 432 432 <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?> 433 433 434 <li><a href="<?php echo trailingslashit( $bp->root_domain. '/' . $bp->blogs->root_slug ) . '?random-blog' ?>"><?php _e( 'Random Blog', 'buddypress' ) ?></a></li>434 <li><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . $bp->blogs->root_slug ) . '?random-blog' ?>"><?php _e( 'Random Blog', 'buddypress' ) ?></a></li> 435 435 436 436 <?php endif; ?> -
trunk/bp-core/bp-core-filters.php
r3972 r3982 137 137 return wp_get_referer(); 138 138 139 return $bp->root_domain;139 return bp_get_root_domain(); 140 140 } 141 141 add_filter( 'login_redirect', 'bp_core_login_redirect' ); -
trunk/bp-core/bp-core-functions.php
r3955 r3982 513 513 514 514 if ( empty( $_POST['search-terms'] ) ) { 515 bp_core_redirect( $bp->root_domain);515 bp_core_redirect( bp_get_root_domain() ); 516 516 return; 517 517 } … … 543 543 544 544 if ( empty( $slug ) ) { 545 bp_core_redirect( $bp->root_domain);545 bp_core_redirect( bp_get_root_domain() ); 546 546 return; 547 547 } -
trunk/bp-core/bp-core-template.php
r3958 r3982 296 296 global $bp; 297 297 298 return apply_filters( 'bp_search_form_action', $bp->root_domain. '/' . BP_SEARCH_SLUG );298 return apply_filters( 'bp_search_form_action', bp_get_root_domain() . '/' . BP_SEARCH_SLUG ); 299 299 } 300 300 … … 386 386 global $bp; 387 387 if ( function_exists('wp_logout_url') ) 388 $logout_link = '<a href="' . wp_logout_url( $bp->root_domain) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';388 $logout_link = '<a href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>'; 389 389 else 390 $logout_link = '<a href="' . $bp->root_domain . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain. '">' . __( 'Log Out', 'buddypress' ) . '</a>';390 $logout_link = '<a href="' . bp_get_root_domain() . '/wp-login.php?action=logout&redirect_to=' . bp_get_root_domain() . '">' . __( 'Log Out', 'buddypress' ) . '</a>'; 391 391 392 392 echo apply_filters( 'bp_logout_link', $logout_link ); … … 562 562 global $bp; 563 563 564 return apply_filters( 'bp_get_root_domain', $bp->root_domain ); 564 if ( isset( $bp->root_domain ) && !empty( $bp->root_domain ) ) { 565 $domain = $bp->root_domain; 566 } else { 567 $domain = bp_core_get_root_domain(); 568 $bp->root_domain = $domain; 569 } 570 571 return apply_filters( 'bp_get_root_domain', $domain ); 565 572 } 566 573 -
trunk/bp-forums/bp-forums-filters.php
r3660 r3982 76 76 global $bp; 77 77 78 return apply_filters( 'bp_forums_filter_tag_link', $bp->root_domain. '/' . $bp->forums->slug . '/tag/' . $tag . '/' );78 return apply_filters( 'bp_forums_filter_tag_link', bp_get_root_domain() . '/' . $bp->forums->slug . '/tag/' . $tag . '/' ); 79 79 } 80 80 add_filter( 'bb_get_tag_link', 'bp_forums_filter_tag_link', 10, 4); … … 124 124 $content = htmlspecialchars_decode( $content ); 125 125 126 $pattern = "|<a href='" . $bp->root_domain. "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\.]+)</a>|";126 $pattern = "|<a href='" . bp_get_root_domain() . "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\.]+)</a>|"; 127 127 128 128 $content = preg_replace( $pattern, "$1", $content ); -
trunk/bp-forums/bp-forums-screens.php
r3959 r3982 10 10 if ( !bp_forums_is_installed_correctly() ) { 11 11 bp_core_add_message( __( 'The forums component has not been set up yet.', 'buddypress' ), 'error' ); 12 bp_core_redirect( $bp->root_domain);12 bp_core_redirect( bp_get_root_domain() ); 13 13 } 14 14 -
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 -
trunk/bp-groups/bp-groups-actions.php
r3917 r3982 33 33 34 34 $reset_steps = true; 35 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->root_slug . '/create/step/' . array_shift( array_keys( $bp->groups->group_creation_steps ) ) . '/' );35 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/step/' . array_shift( array_keys( $bp->groups->group_creation_steps ) ) . '/' ); 36 36 } 37 37 … … 39 39 if ( $bp->action_variables[1] && !$bp->groups->group_creation_steps[$bp->action_variables[1]] ) { 40 40 bp_core_add_message( __('There was an error saving group details. Please try again.', 'buddypress'), 'error' ); 41 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->root_slug . '/create/' );41 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/' ); 42 42 } 43 43 … … 61 61 if ( empty( $_POST['group-name'] ) || empty( $_POST['group-desc'] ) || !strlen( trim( $_POST['group-name'] ) ) || !strlen( trim( $_POST['group-desc'] ) ) ) { 62 62 bp_core_add_message( __( 'Please fill in all of the required fields', 'buddypress' ), 'error' ); 63 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->root_slug . '/create/step/' . $bp->groups->current_create_step . '/' );63 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/step/' . $bp->groups->current_create_step . '/' ); 64 64 } 65 65 … … 68 68 if ( !$bp->groups->new_group_id = groups_create_group( array( 'group_id' => $new_group_id, 'name' => $_POST['group-name'], 'description' => $_POST['group-desc'], 'slug' => groups_check_slug( sanitize_title( esc_attr( $_POST['group-name'] ) ) ), 'date_created' => bp_core_current_time(), 'status' => 'public' ) ) ) { 69 69 bp_core_add_message( __( 'There was an error saving group details, please try again.', 'buddypress' ), 'error' ); 70 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->root_slug . '/create/step/' . $bp->groups->current_create_step . '/' );70 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/step/' . $bp->groups->current_create_step . '/' ); 71 71 } 72 72 … … 95 95 if ( !$bp->groups->new_group_id = groups_create_group( array( 'group_id' => $bp->groups->new_group_id, 'status' => $group_status, 'enable_forum' => $group_enable_forum ) ) ) { 96 96 bp_core_add_message( __( 'There was an error saving group details, please try again.', 'buddypress' ), 'error' ); 97 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->root_slug . '/create/step/' . $bp->groups->current_create_step . '/' );97 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/step/' . $bp->groups->current_create_step . '/' ); 98 98 } 99 99 } … … 151 151 } 152 152 153 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->root_slug . '/create/step/' . $next_step . '/' );153 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/step/' . $next_step . '/' ); 154 154 } 155 155 } … … 274 274 $group = groups_get_groups( array( 'type' => 'random', 'per_page' => 1 ) ); 275 275 276 bp_core_redirect( $bp->root_domain. '/' . $bp->groups->slug . '/' . $group['groups'][0]->slug . '/' );276 bp_core_redirect( bp_get_root_domain() . '/' . $bp->groups->slug . '/' . $group['groups'][0]->slug . '/' ); 277 277 } 278 278 } -
trunk/bp-groups/bp-groups-classes.php
r3981 r3982 1147 1147 // Construct the admin edit tab for the new group extension 1148 1148 if ( !empty( $this->enable_edit_item ) && !empty( $bp->is_item_admin ) ) { 1149 add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . $bp->root_domain. '/' . $bp->groups->slug . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 );1149 add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . bp_get_root_domain() . '/' . $bp->groups->slug . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 ); 1150 1150 1151 1151 // Catch the edit screen and forward it to the plugin template -
trunk/bp-groups/bp-groups-loader.php
r3955 r3982 242 242 ); 243 243 244 $group_link = trailingslashit( $bp->root_domain. '/' . $this->root_slug . '/' . $this->current_group->slug );244 $group_link = trailingslashit( bp_get_root_domain() . '/' . $this->root_slug . '/' . $this->current_group->slug ); 245 245 246 246 // Add the "Home" subnav item, as this will always be present -
trunk/bp-groups/bp-groups-screens.php
r3957 r3982 680 680 // Ask for a login if the user is coming here via an email notification 681 681 if ( !is_user_logged_in() ) 682 bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . $bp->root_domain. '/' . $bp->current_component . '/' . $bp->current_item . '/admin/membership-requests/' ) );682 bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_item . '/admin/membership-requests/' ) ); 683 683 684 684 if ( !$bp->is_item_admin || 'public' == $bp->groups->current_group->status ) -
trunk/bp-groups/bp-groups-template.php
r3955 r3982 410 410 $group =& $groups_template->group; 411 411 412 return apply_filters( 'bp_get_group_permalink', $bp->root_domain. '/' . $bp->groups->root_slug . '/' . $group->slug . '/' );412 return apply_filters( 'bp_get_group_permalink', bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $group->slug . '/' ); 413 413 } 414 414 … … 422 422 $group =& $groups_template->group; 423 423 424 return apply_filters( 'bp_get_group_admin_permalink', $bp->root_domain. '/' . $bp->groups->root_slug . '/' . $group->slug . '/admin' );424 return apply_filters( 'bp_get_group_admin_permalink', bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $group->slug . '/admin' ); 425 425 } 426 426 … … 1049 1049 ?> 1050 1050 <?php if ( $bp->is_item_admin || $bp->is_item_mod ) { ?> 1051 <li<?php if ( 'edit-details' == $current_tab || empty( $current_tab ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/edit-details"><?php _e('Edit Details', 'buddypress') ?></a></li>1051 <li<?php if ( 'edit-details' == $current_tab || empty( $current_tab ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/edit-details"><?php _e('Edit Details', 'buddypress') ?></a></li> 1052 1052 <?php } ?> 1053 1053 … … 1056 1056 return false; 1057 1057 ?> 1058 <li<?php if ( 'group-settings' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/group-settings"><?php _e('Group Settings', 'buddypress') ?></a></li>1059 <li<?php if ( 'group-avatar' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/group-avatar"><?php _e('Group Avatar', 'buddypress') ?></a></li>1060 <li<?php if ( 'manage-members' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/manage-members"><?php _e('Manage Members', 'buddypress') ?></a></li>1058 <li<?php if ( 'group-settings' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/group-settings"><?php _e('Group Settings', 'buddypress') ?></a></li> 1059 <li<?php if ( 'group-avatar' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/group-avatar"><?php _e('Group Avatar', 'buddypress') ?></a></li> 1060 <li<?php if ( 'manage-members' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/manage-members"><?php _e('Manage Members', 'buddypress') ?></a></li> 1061 1061 1062 1062 <?php if ( $groups_template->group->status == 'private' ) : ?> 1063 <li<?php if ( 'membership-requests' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/membership-requests"><?php _e('Membership Requests', 'buddypress') ?></a></li>1063 <li<?php if ( 'membership-requests' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/membership-requests"><?php _e('Membership Requests', 'buddypress') ?></a></li> 1064 1064 <?php endif; ?> 1065 1065 1066 1066 <?php do_action( 'groups_admin_tabs', $current_tab, $group->slug ) ?> 1067 1067 1068 <li<?php if ( 'delete-group' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/delete-group"><?php _e('Delete Group', 'buddypress') ?></a></li>1068 <li<?php if ( 'delete-group' == $current_tab ) : ?> class="current"<?php endif; ?>><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/<?php echo $group->slug ?>/admin/delete-group"><?php _e('Delete Group', 'buddypress') ?></a></li> 1069 1069 <?php 1070 1070 } … … 1739 1739 $is_enabled = bp_are_previous_group_creation_steps_complete( $slug ); ?> 1740 1740 1741 <li<?php if ( $bp->groups->current_create_step == $slug ) : ?> class="current"<?php endif; ?>><?php if ( $is_enabled ) : ?><a href="<?php echo $bp->root_domain. '/' . $bp->groups->root_slug ?>/create/step/<?php echo $slug ?>/"><?php else: ?><span><?php endif; ?><?php echo $counter ?>. <?php echo $step['name'] ?><?php if ( $is_enabled ) : ?></a><?php else: ?></span><?php endif ?></li><?php1741 <li<?php if ( $bp->groups->current_create_step == $slug ) : ?> class="current"<?php endif; ?>><?php if ( $is_enabled ) : ?><a href="<?php echo bp_get_root_domain() . '/' . $bp->groups->root_slug ?>/create/step/<?php echo $slug ?>/"><?php else: ?><span><?php endif; ?><?php echo $counter ?>. <?php echo $step['name'] ?><?php if ( $is_enabled ) : ?></a><?php else: ?></span><?php endif ?></li><?php 1742 1742 $counter++; 1743 1743 } … … 1763 1763 $bp->action_variables[1] = array_shift( array_keys( $bp->groups->group_creation_steps ) ); 1764 1764 1765 return apply_filters( 'bp_get_group_creation_form_action', $bp->root_domain. '/' . $bp->groups->root_slug . '/create/step/' . $bp->action_variables[1] );1765 return apply_filters( 'bp_get_group_creation_form_action', bp_get_root_domain() . '/' . $bp->groups->root_slug . '/create/step/' . $bp->action_variables[1] ); 1766 1766 } 1767 1767 … … 2492 2492 // Append $action to $url if there is no $type 2493 2493 if ( !empty( $action ) ) 2494 $url = $bp->root_domain. '/' . $bp->groups->root_slug . '/' . $bp->groups->current_group->slug . '/' . $action;2494 $url = bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $bp->groups->current_group->slug . '/' . $action; 2495 2495 else 2496 $url = $bp->root_domain. '/' . $bp->groups->root_slug . '/' . $bp->groups->current_group->slug;2496 $url = bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $bp->groups->current_group->slug; 2497 2497 2498 2498 // Add a slash at the end of our user url -
trunk/bp-members/bp-members-functions.php
r3972 r3982 86 86 // If we are using a members slug, include it. 87 87 if ( !defined( 'BP_ENABLE_ROOT_PROFILES' ) ) 88 $domain = $bp->root_domain. '/' . $bp->members->root_slug . '/' . $username;88 $domain = bp_get_root_domain() . '/' . $bp->members->root_slug . '/' . $username; 89 89 else 90 $domain = $bp->root_domain. '/' . $username;90 $domain = bp_get_root_domain() . '/' . $username; 91 91 92 92 // Add a slash at the end -
trunk/bp-members/bp-members-signup.php
r3960 r3982 11 11 12 12 if ( bp_is_component_front_page( 'register' ) && ( is_user_logged_in() || !bp_get_signup_allowed() ) ) 13 bp_core_redirect( $bp->root_domain. '/' . $bp->members->slug );13 bp_core_redirect( bp_get_root_domain() . '/' . $bp->members->slug ); 14 14 15 15 // If the user is logged in, redirect away from here 16 16 if ( is_user_logged_in() ) 17 bp_core_redirect( $bp->root_domain);17 bp_core_redirect( bp_get_root_domain() ); 18 18 19 19 // If signups are disabled, just re-direct 20 20 if ( !bp_get_signup_allowed() ) 21 bp_core_redirect( $bp->root_domain);21 bp_core_redirect( bp_get_root_domain() ); 22 22 23 23 $bp->signup->step = 'request-details'; … … 73 73 // This situation doesn't naturally occur so bounce to website root 74 74 } else { 75 bp_core_redirect( $bp->root_domain);75 bp_core_redirect( bp_get_root_domain() ); 76 76 } 77 77 } … … 167 167 if ( !empty( $user->errors ) ) { 168 168 bp_core_add_message( $user->get_error_message(), 'error' ); 169 bp_core_redirect( $bp->root_domain. '/' . BP_ACTIVATION_SLUG );169 bp_core_redirect( bp_get_root_domain() . '/' . BP_ACTIVATION_SLUG ); 170 170 } 171 171 -
trunk/bp-members/bp-members-template.php
r3955 r3982 445 445 446 446 if ( !empty( $update['id'] ) ) 447 $update_content .= ' · <a href="' . $bp->root_domain. '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>';447 $update_content .= ' · <a href="' . bp_get_root_domain() . '/' . $bp->activity->root_slug . '/p/' . $update['id'] . '">' . __( 'View', 'buddypress' ) . '</a>'; 448 448 449 449 return apply_filters( 'bp_get_member_latest_update', $update_content ); … … 580 580 // Always add a log out list item to the end of the navigation 581 581 if ( function_exists( 'wp_logout_url' ) ) 582 $logout_link = '<li><a id="wp-logout" href="' . wp_logout_url( $bp->root_domain) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';582 $logout_link = '<li><a id="wp-logout" href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>'; 583 583 else 584 $logout_link = '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain. '">' . __( 'Log Out', 'buddypress' ) . '</a></li>';584 $logout_link = '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&redirect_to=' . bp_get_root_domain() . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>'; 585 585 586 586 echo apply_filters( 'bp_logout_nav_link', $logout_link ); … … 802 802 803 803 if ( bp_has_custom_signup_page() ) 804 $page = $bp->root_domain. '/' . BP_REGISTER_SLUG;805 else 806 $page = $bp->root_domain. '/wp-signup.php';804 $page = bp_get_root_domain() . '/' . BP_REGISTER_SLUG; 805 else 806 $page = bp_get_root_domain() . '/wp-signup.php'; 807 807 808 808 return apply_filters( 'bp_get_signup_page', $page ); … … 823 823 824 824 if ( bp_has_custom_activation_page() ) 825 $page = trailingslashit( $bp->root_domain) . BP_ACTIVATION_SLUG;826 else 827 $page = trailingslashit( $bp->root_domain) . 'wp-activate.php';825 $page = trailingslashit( bp_get_root_domain() ) . BP_ACTIVATION_SLUG; 826 else 827 $page = trailingslashit( bp_get_root_domain() ) . 'wp-activate.php'; 828 828 829 829 return apply_filters( 'bp_get_activation_page', $page ); -
trunk/bp-themes/bp-default/_inc/ajax.php
r3967 r3982 211 211 <?php echo bp_core_get_userlink( bp_get_activity_user_id() ) ?> · <?php printf( __( '%s ago', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ) ?> · 212 212 <a class="acomment-reply" href="#acomment-<?php bp_activity_id() ?>" id="acomment-reply-<?php echo esc_attr( $_POST['form_id'] ) ?>"><?php _e( 'Reply', 'buddypress' ) ?></a> 213 · <a href="<?php echo wp_nonce_url( $bp->root_domain. '/' . $bp->activity->slug . '/delete/' . bp_get_activity_id() . '?cid=' . $comment_id, 'bp_activity_delete_link' ) ?>" class="delete acomment-delete confirm" rel="nofollow"><?php _e( 'Delete', 'buddypress' ) ?></a>213 · <a href="<?php echo wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/' . bp_get_activity_id() . '?cid=' . $comment_id, 'bp_activity_delete_link' ) ?>" class="delete acomment-delete confirm" rel="nofollow"><?php _e( 'Delete', 'buddypress' ) ?></a> 214 214 </div> 215 215 -
trunk/bp-xprofile/bp-xprofile-screens.php
r3791 r3982 40 40 // Check the field group exists 41 41 if ( !xprofile_get_field_group( $bp->action_variables[1] ) ) 42 bp_core_redirect( $bp->root_domain);42 bp_core_redirect( bp_get_root_domain() ); 43 43 44 44 // Check to see if any new information has been submitted
Note: See TracChangeset
for help on using the changeset viewer.