Ticket #823: bp-root-blog-all-files.patch
| File bp-root-blog-all-files.patch, 9.8 KB (added by , 17 years ago) |
|---|
-
bp-activity/bp-activity-templatetags.php
307 307 308 308 if ( !$component_names ) 309 309 return false; 310 311 $link = remove_query_arg( array( 'afilter' ), $_SERVER['REQUEST_URI'] ); 310 311 $link = $_SERVER['REQUEST_URI']; 312 $link = remove_query_arg( array( 'afilter' ), $link ); 312 313 $link = remove_query_arg( array( 'acpage' ), $link ); 313 314 314 315 foreach ( (array) $component_names as $component_name ) { -
bp-blogs/bp-blogs-templatetags.php
788 788 return false; 789 789 790 790 foreach ( $terms as $term ) { 791 $link = get_blog_option( 1, 'siteurl') . '/tag/' . $term->slug;791 $link = get_blog_option( BP_ROOT_BLOG, 'siteurl') . '/tag/' . $term->slug; 792 792 $link = apply_filters('term_link', $link); 793 793 794 794 $term_links[] = '<a href="' . $link . '" rel="tag">' . $term->name . '</a>'; -
bp-core.php
1333 1333 * @return The blog name for the root blog 1334 1334 */ 1335 1335 function bp_core_email_from_name_filter() { 1336 return get_blog_option( 1, 'blogname' );1336 return get_blog_option( BP_ROOT_BLOG, 'blogname' ); 1337 1337 } 1338 1338 add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' ); 1339 1339 -
bp-core/bp-core-avatars.php
233 233 if ( !$user_id ) 234 234 $user_id = $bp->loggedin_user->id; 235 235 236 $path = get_blog_option( 1, 'upload_path' );236 $path = get_blog_option( BP_ROOT_BLOG, 'upload_path' ); 237 237 $newdir = path_join( ABSPATH, $path ); 238 238 $newdir .= '/avatars/' . $user_id; 239 239 … … 241 241 242 242 @wp_mkdir_p( $newdir ); 243 243 244 $newurl = trailingslashit( get_blog_option( 1, 'siteurl' ) ) . '/avatars/' . $user_id;244 $newurl = trailingslashit( get_blog_option( BP_ROOT_BLOG, 'siteurl' ) ) . '/avatars/' . $user_id; 245 245 $newburl = $newurl; 246 246 $newsubdir = '/avatars/' . $user_id; 247 247 -
bp-core/bp-core-templatetags.php
218 218 } 219 219 220 220 function bp_site_name() { 221 echo apply_filters( 'bp_site_name', get_blog_option( 1, 'blogname' ) );221 echo apply_filters( 'bp_site_name', get_blog_option( BP_ROOT_BLOG, 'blogname' ) ); 222 222 } 223 223 224 224 function bp_is_home() { … … 523 523 } 524 524 525 525 function bp_has_custom_activation_page() { 526 if ( file_exists( WP_CONTENT_DIR . '/themes/' . get_blog_option( 1, 'template') . '/activate.php') )526 if ( file_exists( WP_CONTENT_DIR . '/themes/' . get_blog_option( BP_ROOT_BLOG, 'template') . '/activate.php') ) 527 527 return true; 528 528 529 529 return false; -
bp-friends/bp-friends-notifications.php
18 18 19 19 // Set up and send the message 20 20 $to = $ud->user_email; 21 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name );21 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ); 22 22 23 23 $message = sprintf( __( 24 24 "%s wants to add you as a friend. … … 55 55 56 56 // Set up and send the message 57 57 $to = $ud->user_email; 58 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name );58 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name ); 59 59 60 60 $message = sprintf( __( 61 61 '%s accepted your friend request. -
bp-groups/bp-groups-notifications.php
13 13 $poster_ud = get_userdata( $wire_post->user_id ); 14 14 $poster_profile_link = site_url() . '/' . BP_MEMBERS_SLUG . '/' . $poster_ud->user_login; 15 15 16 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'New wire post on group: %s', 'buddypress' ), stripslashes($group->name) );16 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New wire post on group: %s', 'buddypress' ), stripslashes($group->name) ); 17 17 18 18 foreach ( $group->user_dataset as $user ) { 19 19 if ( 'no' == get_usermeta( $user->user_id, 'notification_groups_wire_post' ) ) continue; … … 56 56 global $bp; 57 57 58 58 $group = new BP_Groups_Group( $group_id, false, true ); 59 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . __( 'Group Details Updated', 'buddypress' );59 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . __( 'Group Details Updated', 'buddypress' ); 60 60 61 61 foreach ( $group->user_dataset as $user ) { 62 62 if ( 'no' == get_usermeta( $user->user_id, 'notification_groups_group_updated' ) ) continue; … … 106 106 107 107 // Set up and send the message 108 108 $to = $ud->user_email; 109 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), stripslashes($group->name) );109 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), stripslashes($group->name) ); 110 110 111 111 $message = sprintf( __( 112 112 '%s wants to join the group "%s". … … 150 150 $to = $ud->user_email; 151 151 152 152 if ( $accepted ) { 153 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), stripslashes($group->name) );153 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), stripslashes($group->name) ); 154 154 $message = sprintf( __( 155 155 'Your membership request for the group "%s" has been accepted. 156 156 … … 160 160 ', 'buddypress' ), stripslashes($group->name), $group_link ); 161 161 162 162 } else { 163 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), stripslashes($group->name) );163 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), stripslashes($group->name) ); 164 164 $message = sprintf( __( 165 165 'Your membership request for the group "%s" has been rejected. 166 166 … … 202 202 // Set up and send the message 203 203 $to = $ud->user_email; 204 204 205 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), stripslashes($group->name) );205 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), stripslashes($group->name) ); 206 206 207 207 $message = sprintf( __( 208 208 'You have been promoted to %s for the group: "%s". … … 245 245 // Set up and send the message 246 246 $to = $invited_ud->user_email; 247 247 248 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), stripslashes($group->name) );248 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), stripslashes($group->name) ); 249 249 250 250 $message = sprintf( __( 251 251 'One of your friends %s has invited you to the group: "%s". -
bp-messages/bp-messages-notifications.php
17 17 18 18 // Set up and send the message 19 19 $to = $ud->user_email; 20 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), stripslashes($sender_name) );20 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), stripslashes($sender_name) ); 21 21 22 22 $content = sprintf( __( 23 23 '%s sent you a new message: … … 64 64 // To view the notice: %s 65 65 // 66 66 // --------------------- 67 // ', 'buddypress' ), get_blog_option( 1, 'blogname' ), stripslashes( strip_tags( $message_subject ) ), stripslashes( strip_tags( $message ) ), $message_link );67 // ', 'buddypress' ), get_blog_option( BP_ROOT_BLOG, 'blogname' ), stripslashes( strip_tags( $message_subject ) ), stripslashes( strip_tags( $message ) ), $message_link ); 68 68 // 69 69 // $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 70 70 // -
bp-xprofile/bp-xprofile-notifications.php
34 34 35 35 // Set up and send the message 36 36 $to = $ud->user_email; 37 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( '%s posted on your wire.', 'buddypress' ), stripslashes($poster_name) );37 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s posted on your wire.', 'buddypress' ), stripslashes($poster_name) ); 38 38 39 39 $message = sprintf( __( 40 40 '%s posted on your wire: