[wp-trac] [WordPress Trac] #54760: If Site Title is empty don't use '[ ]' as site title in email but domain name

WordPress Trac noreply at wordpress.org
Fri Jan 7 12:01:05 UTC 2022


#54760: If Site Title is empty don't use '[ ]' as site title in email but domain
name
-------------------------+-----------------------------
 Reporter:  Presskopp    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Mail         |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 In the email you get when a plugin was automatically updated or if core
 has been updated, if no site title is set, you'll get something like:

 {{{[] Your site has updated ...}}}

 while it should be something like {{{[site title] Your site has updated
 ...}}}

 In that case I'd like to see the domain name as the title like in

 {{{[example.com] Your site has updated ...}}}

 This could be archived by something like

 {{{#!php
 if ( '' != $site_title ) {
         $site_title = wp_specialchars_decode( get_bloginfo( 'name' ),
 ENT_QUOTES );
         } else {
         $site_title = parse_url( home_url(), PHP_URL_HOST );
         }
 }}}

 in {{{class-wp-automatic-updater.php}}} ~ L.1350

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54760>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list