[wp-trac] [WordPress Trac] #35774: WordPress admin <title> structure

WordPress Trac noreply at wordpress.org
Mon Feb 8 13:52:46 UTC 2016


#35774: WordPress admin <title> structure
----------------------------+------------------------------
 Reporter:  ramiy           |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+------------------------------
Changes (by ramiy):

 * keywords:   => has-patch


Comment:

 In the second option, I use a similar structure to the login pages (ticket
 #35737), without the `WordPress` suffix. Only when no site-title defined
 (multisite), we use `WordPress`.

 Old structure:
 {{{
 if ( $admin_title == $title )
         $admin_title = sprintf( __( '%1$s — WordPress' ), $title );
 else
         $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress'
 ), $title, $admin_title );
 }}}

 New structure:
 {{{
 if ( $admin_title == $title )
         $admin_title = sprintf( '%1$s %2$s %3$s', $title, $separator, __(
 'WordPress' ) );
 else
         $admin_title = sprintf( '%1$s %2$s %3$s', $title, $separator,
 $admin_title );
 }}}

 Hoping to create more consistent `<title>` structure across different
 wordpress pages.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35774#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list