Changeset 53063
- Timestamp:
- 04/04/2022 08:19:12 PM (2 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r52539 r53063 1237 1237 $body[] = "\n" . __( 'The WordPress Team' ); 1238 1238 1239 if ( '' !== get_option( 'blogname' ) ) { 1240 $site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1241 } else { 1242 $site_title = parse_url( home_url(), PHP_URL_HOST ); 1243 } 1244 1239 1245 $body = implode( "\n", $body ); 1240 1246 $to = get_site_option( 'admin_email' ); 1241 $subject = sprintf( $subject, wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ));1247 $subject = sprintf( $subject, $site_title ); 1242 1248 $headers = ''; 1243 1249 … … 1348 1354 } 1349 1355 1350 $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); 1356 if ( '' !== get_bloginfo( 'name' ) ) { 1357 $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); 1358 } else { 1359 $site_title = parse_url( home_url(), PHP_URL_HOST ); 1360 } 1351 1361 1352 1362 if ( $failures ) { -
trunk/src/wp-admin/includes/misc.php
r53060 r53063 1473 1473 $content = str_replace( '###SITEURL###', home_url(), $content ); 1474 1474 1475 if ( '' !== get_option( 'blogname' ) ) { 1476 $site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 1477 } else { 1478 $site_title = parse_url( home_url(), PHP_URL_HOST ); 1479 } 1480 1475 1481 wp_mail( 1476 1482 $value, … … 1478 1484 /* translators: New admin email address notification email subject. %s: Site title. */ 1479 1485 __( '[%s] New Admin Email Address' ), 1480 wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES )1486 $site_title 1481 1487 ), 1482 1488 $content -
trunk/src/wp-admin/includes/user.php
r53060 r53063 579 579 $role = $roles[ $_REQUEST['role'] ]; 580 580 581 if ( '' !== get_bloginfo( 'name' ) ) { 582 $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); 583 } else { 584 $site_title = parse_url( home_url(), PHP_URL_HOST ); 585 } 586 581 587 return sprintf( 582 588 /* translators: 1: Site title, 2: Site URL, 3: User role. */ … … 591 597 %%s' 592 598 ), 593 wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ),599 $site_title, 594 600 home_url(), 595 601 wp_specialchars_decode( translate_user_role( $role['name'] ) ) -
trunk/src/wp-admin/user-new.php
r52978 r53063 113 113 $switched_locale = switch_to_locale( get_user_locale( $user_details ) ); 114 114 115 if ( '' !== get_option( 'blogname' ) ) { 116 $site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 117 } else { 118 $site_title = parse_url( home_url(), PHP_URL_HOST ); 119 } 120 115 121 /* translators: 1: Site title, 2: Site URL, 3: User role, 4: Activation URL. */ 116 122 $message = __( … … 128 134 /* translators: Joining confirmation notification email subject. %s: Site title. */ 129 135 __( '[%s] Joining Confirmation' ), 130 wp_specialchars_decode( get_option( 'blogname' ) )136 $site_title 131 137 ); 132 138 $new_user_email['message'] = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.