- Timestamp:
- 04/04/2022 08:19:12 PM (3 years ago)
- File:
-
- 1 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 ) {
Note: See TracChangeset
for help on using the changeset viewer.