Changeset 2635
- Timestamp:
- 02/08/2010 04:24:52 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2631 r2635 2053 2053 global $bp; 2054 2054 2055 if ( false === strpos( wp_get_referer(), 'wp-login.php' ) && empty( $_REQUEST['nr'] ) )2055 if ( false === strpos( wp_get_referer(), 'wp-login.php' ) && false === strpos( wp_get_referer(), 'activate' ) && empty( $_REQUEST['nr'] ) ) 2056 2056 return wp_get_referer(); 2057 2057 -
trunk/bp-core/bp-core-activation.php
r2617 r2635 83 83 * email address is no longer necessary. It's also a terrible idea security wise. 84 84 * 85 * The only exception to this is when an admin has generated an account for a user. 86 * 85 87 * This will only disable the email if a custom registration template is being used. 86 88 */ … … 91 93 return false; 92 94 } 93 add_filter( 'wpmu_welcome_user_notification', 'bp_core_disable_welcome_email' ); 95 if ( !is_admin() && empty( $_GET['e'] ) ) 96 add_filter( 'wpmu_welcome_user_notification', 'bp_core_disable_welcome_email' ); 94 97 95 98 // Notify user of signup success. … … 116 119 return false; 117 120 } 118 add_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 ); 121 if ( !is_admin() ) 122 add_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 ); 119 123 120 124 function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) { … … 128 132 $admin_email = 'support@' . $_SERVER['SERVER_NAME']; 129 133 134 /* If this is an admin generated activation, add a param to email the user login details */ 135 if ( is_admin() ) 136 $email = '&e=1'; 137 130 138 $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) ); 131 139 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 132 $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url , clean_url("http://{$domain}{$path}" ) );140 $message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n", 'buddypress' ), $activate_url . $email, clean_url("http://{$domain}{$path}" ) ); 133 141 $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' ); 134 142 … … 138 146 return false; 139 147 } 140 add_filter( 'wpmu_signup_user_notification', 'bp_core_activation_signup_user_notification', 1, 4 ); 148 if ( !is_admin() || ( is_admin() && empty( $_POST['noconfirmation'] ) ) ) 149 add_filter( 'wpmu_signup_user_notification', 'bp_core_activation_signup_user_notification', 1, 4 ); 141 150 142 151 ?> -
trunk/bp-themes/bp-default/functions.php
r2629 r2635 208 208 function bp_dtheme_show_notice() { ?> 209 209 <div id="message" class="updated fade"> 210 <p><?php printf( __( 'Theme activated! This theme contains <a href="%s">custom ization options</a> and <a href="%s">custom header image</a> support. <a href="%s">Sidebar widgets</a> are also supported.', 'buddypress' ), admin_url( 'themes.php?page=theme-options-page' ), admin_url( 'themes.php?page=custom-header' ), admin_url( 'widgets.php' ) ) ?></p>210 <p><?php printf( __( 'Theme activated! This theme contains <a href="%s">custom header image</a> support and <a href="%s">sidebar widgets</a>.', 'buddypress' ), admin_url( 'themes.php?page=custom-header' ), admin_url( 'widgets.php' ) ) ?></p> 211 211 </div> 212 212 -
trunk/bp-themes/bp-default/registration/activate.php
r2284 r2635 18 18 <?php do_action( 'bp_before_activate_content' ) ?> 19 19 20 <p><?php _e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ) ?></p> 21 20 <?php if ( isset( $_GET['e'] ) ) : ?> 21 <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ) ?></p> 22 <?php else : ?> 23 <p><?php _e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ) ?></p> 24 <?php endif; ?> 22 25 23 26 <?php else : ?> -
trunk/bp-xprofile/bp-xprofile-templatetags.php
r2368 r2635 454 454 455 455 /* Check for updated posted values, but errors preventing them from being saved first time */ 456 if ( isset( $_POST['field_' . $field->id . '_day'] ) && $day != $_POST['field_' . $field->id . '_day']) {457 if ( !empty( $_POST['field_' . $field->id . '_day'] ))456 if ( !empty( $_POST['field_' . $field->id . '_day'] ) ) { 457 if ( $day != $_POST['field_' . $field->id . '_day'] ) 458 458 $day = $_POST['field_' . $field->id . '_day']; 459 459 } 460 460 461 if ( isset( $_POST['field_' . $field->id . '_month'] ) && $month != $_POST['field_' . $field->id . '_month']) {462 if ( !empty( $_POST['field_' . $field->id . '_month'] ))461 if ( !empty( $_POST['field_' . $field->id . '_month'] ) ) { 462 if ( $month != $_POST['field_' . $field->id . '_month'] ) 463 463 $month = $_POST['field_' . $field->id . '_month']; 464 464 } 465 465 466 if ( isset( $_POST['field_' . $field->id . '_year'] ) && $year != date("j",$_POST['field_' . $field->id . '_year'] ) ) {467 if ( !empty($_POST['field_' . $field->id . '_year'] ) )466 if ( !empty( $_POST['field_' . $field->id . '_year'] ) ) { 467 if ( $year != date( "j", $_POST['field_' . $field->id . '_year'] ) ) 468 468 $year = $_POST['field_' . $field->id . '_year']; 469 469 }
Note: See TracChangeset
for help on using the changeset viewer.