Changeset 31403 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 02/10/2015 07:46:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r31300 r31403 254 254 update_option( 'adminhash', $new_admin_email ); 255 255 256 $email_text = __( ' Dear user,256 $email_text = __( 'Howdy ###USERNAME###, 257 257 258 258 You recently requested to have the administration email address on 259 259 your site changed. 260 260 261 If this is correct, please click on the following link to change it: 261 262 ###ADMIN_URL### … … 274 275 * 275 276 * The following strings have a special meaning and will get replaced dynamically: 277 * ###USERNAME### The current user's username. 276 278 * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break. 277 279 * ###EMAIL### The new email. … … 286 288 $content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email ); 287 289 290 $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); 288 291 $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'options.php?adminhash='.$hash ) ), $content ); 289 292 $content = str_replace( '###EMAIL###', $value, $content ); … … 332 335 update_option( $current_user->ID . '_new_email', $new_user_email ); 333 336 334 $email_text = __( ' Dear user,337 $email_text = __( 'Howdy ###USERNAME###, 335 338 336 339 You recently requested to have the email address on your account changed. 340 337 341 If this is correct, please click on the following link to change it: 338 342 ###ADMIN_URL### … … 351 355 * 352 356 * The following strings have a special meaning and will get replaced dynamically: 357 * ###USERNAME### The current user's username. 353 358 * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break. 354 359 * ###EMAIL### The new email. … … 363 368 $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email ); 364 369 370 $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); 365 371 $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'profile.php?newuseremail='.$hash ) ), $content ); 366 372 $content = str_replace( '###EMAIL###', $_POST['email'], $content);
Note: See TracChangeset
for help on using the changeset viewer.