@@ -2333,7 +2333,7 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
23332333 /* translators: New user registration notification email subject. %s: Site title. */
23342334 $ subject = sprintf ( __ ( '[%s] New User Registration ' ), $ blogname );
23352335
2336- $ message = WP_Mailer::render ( WP_Mailer::get_email ( 'new_user_admin ' )['body ' ], $ email_data );
2336+ $ message = WP_Mailer::render ( WP_Mailer::get_email ( 'new_user_admin ' )[ 'body ' ], $ email_data );
23372337
23382338 $ wp_new_user_notification_email_admin = array (
23392339 'to ' => get_option ( 'admin_email ' ),
@@ -2348,13 +2348,16 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
23482348 WP_Mailer::send (
23492349 'new_user_admin ' ,
23502350 array (
2351- 'to ' => $ wp_new_user_notification_email_admin ['to ' ],
2352- 'headers ' => $ wp_new_user_notification_email_admin ['headers ' ],
2351+ 'to ' => $ wp_new_user_notification_email_admin [ 'to ' ],
2352+ 'headers ' => $ wp_new_user_notification_email_admin [ 'headers ' ],
23532353 ),
2354- array_merge ( $ email_data , array (
2355- 'subject ' => $ wp_new_user_notification_email_admin ['subject ' ],
2356- 'body ' => $ wp_new_user_notification_email_admin ['message ' ],
2357- ) )
2354+ array_merge (
2355+ $ email_data ,
2356+ array (
2357+ 'subject ' => $ wp_new_user_notification_email_admin [ 'subject ' ],
2358+ 'body ' => $ wp_new_user_notification_email_admin [ 'message ' ],
2359+ )
2360+ )
23582361 );
23592362
23602363 if ( $ switched_locale ) {
@@ -2409,7 +2412,7 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
24092412 /* translators: Login details notification email subject. %s: Site title. */
24102413 $ subject = sprintf ( __ ( '[%s] Login Details ' ), $ blogname );
24112414
2412- $ message = WP_Mailer::render ( WP_Mailer::get_email ( 'new_user ' )['body ' ], $ email_data );
2415+ $ message = WP_Mailer::render ( WP_Mailer::get_email ( 'new_user ' )[ 'body ' ], $ email_data );
24132416
24142417 $ wp_new_user_notification_email = array (
24152418 'to ' => $ user ->user_email ,
@@ -2424,13 +2427,16 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' )
24242427 WP_Mailer::send (
24252428 'new_user ' ,
24262429 array (
2427- 'to ' => $ wp_new_user_notification_email ['to ' ],
2428- 'headers ' => $ wp_new_user_notification_email ['headers ' ],
2430+ 'to ' => $ wp_new_user_notification_email [ 'to ' ],
2431+ 'headers ' => $ wp_new_user_notification_email [ 'headers ' ],
24292432 ),
2430- array_merge ( $ email_data , array (
2431- 'subject ' => $ wp_new_user_notification_email ['subject ' ],
2432- 'body ' => $ wp_new_user_notification_email ['message ' ],
2433- ) )
2433+ array_merge (
2434+ $ email_data ,
2435+ array (
2436+ 'subject ' => $ wp_new_user_notification_email [ 'subject ' ],
2437+ 'body ' => $ wp_new_user_notification_email [ 'message ' ],
2438+ )
2439+ )
24342440 );
24352441
24362442 if ( $ switched_locale ) {
0 commit comments