Changeset 5727
- Timestamp:
- 02/11/2012 09:19:15 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-settings.php
r5585 r5727 296 296 * @since BuddyPress (r3203) 297 297 * 298 * @uses get_option()298 * @uses bp_get_option() 299 299 * @uses esc_attr() 300 300 * @uses apply_filters() … … 307 307 308 308 // Get the option and sanitize it 309 $value = get_option( $option, $default );309 $value = bp_get_option( $option, $default ); 310 310 311 311 // Slug? -
trunk/bp-core/admin/bp-core-update.php
r5721 r5727 500 500 501 501 $prefix = ''; 502 $permalink_structure = get_option( 'permalink_structure' );502 $permalink_structure = bp_get_option( 'permalink_structure' ); 503 503 $structures = array( '', $prefix . '/%year%/%monthnum%/%day%/%postname%/', $prefix . '/%year%/%monthnum%/%postname%/', $prefix . '/archives/%post_id%' ); 504 504 -
trunk/bp-groups/bp-groups-notifications.php
r5714 r5727 67 67 68 68 $ud = bp_core_get_core_userdata( $admin_id ); 69 $requesting_ud = bp_core_get_core_userdata( $requesting_user_id );70 69 $group_requests = bp_get_group_permalink( $group ) . 'admin/membership-requests'; 71 70 $profile_link = bp_core_get_user_domain( $requesting_user_id ); … … 75 74 // Set up and send the message 76 75 $to = $ud->user_email; 77 $sitename = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );76 $sitename = wp_specialchars_decode( bp_get_option( 'blogname' ), ENT_QUOTES ); 78 77 $subject = '[' . $sitename . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name ); 79 78 -
trunk/bp-loader.php
r5725 r5727 478 478 require( $this->plugin_dir . 'bp-core/bp-core-update.php' ); 479 479 require( $this->plugin_dir . 'bp-core/bp-core-caps.php' ); 480 require( $this->plugin_dir . 'bp-core/bp-core-options.php' ); 480 481 require( $this->plugin_dir . 'bp-core/admin/bp-core-update.php' ); 481 482 } -
trunk/bp-members/bp-members-functions.php
r5705 r5727 930 930 931 931 if ( empty( $user_id ) ) { 932 $errors->add( 'registerfail', sprintf( __('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'buddypress' ), get_option( 'admin_email' ) ) );932 $errors->add( 'registerfail', sprintf( __('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'buddypress' ), bp_get_option( 'admin_email' ) ) ); 933 933 return $errors; 934 934 } … … 1109 1109 $activate_url = esc_url( $activate_url ); 1110 1110 1111 $from_name = ( '' == get_option( 'blogname' ) ) ? __( 'BuddyPress', 'buddypress' ) : esc_html(get_option( 'blogname' ) );1111 $from_name = ( '' == bp_get_option( 'blogname' ) ) ? __( 'BuddyPress', 'buddypress' ) : esc_html( bp_get_option( 'blogname' ) ); 1112 1112 1113 1113 $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url ); -
trunk/bp-members/bp-members-template.php
r5710 r5727 1141 1141 1142 1142 if ( is_multisite() ) { 1143 if ( in_array( $bp->site_options['registration'], array( 'all', 'user' ) ) ) 1143 if ( in_array( $bp->site_options['registration'], array( 'all', 'user' ) ) ) { 1144 1144 $signup_allowed = true; 1145 } 1145 1146 1146 1147 } else { 1147 if ( get_option( 'users_can_register') )1148 if ( bp_get_option( 'users_can_register') ) { 1148 1149 $signup_allowed = true; 1150 } 1149 1151 } 1150 1152
Note: See TracChangeset
for help on using the changeset viewer.