Opened 9 years ago
Last modified 5 years ago
#35774 assigned enhancement
WordPress admin <title> structure
Reported by: | ramiy | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch 2nd-opinion |
Focuses: | administration | Cc: |
Description
Currently the admin titles has a wired structure. Few examples:
- Dashboard ‹ Site Name — WordPress
- Posts ‹ Site Name — WordPress
- Writing Settings ‹ Site Name — WordPress
Same structure applies for plugin setting pages.
page-title ‹ site-name — WordPress
The problem with this structure:
- Why are we using
‹
character? why not›
. - We should add RTL support for the separator.
- The
Site Name
and theWordPress
, they look like bad combination.
Few suggestions:
Attachments (3)
Change History (32)
#1
@
9 years ago
- Keywords has-patch added
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.
This ticket was mentioned in Slack in #core by chriscct7. View the logs.
9 years ago
#3
@
9 years ago
- Milestone changed from Awaiting Review to 4.5
- Owner set to chriscct7
- Status changed from new to reviewing
#4
@
9 years ago
I think ‹
(in Dashboard ‹ Site Name
) implies hierarchy, Dashboard › Site Name
would seem confusing to me.
That said, we could probably use —
instead and simplify it to Dashboard — Site Name
(without the WordPress suffix), like in #meta1105.
35774-option1.patch looks good to me, but we should also add translator comments for placeholders.
#5
@
9 years ago
@SergeyBiryukov, I was talking to @adamsilverstein on slack,
Currently, the admin 'separator' char is hardcoded. The attached patch (35774-option2.patch and 35774-option3.patch) moves the 'separator' into a string.
Ticket #35737 moved the 'separator' into a string for Login Pages. This ticket will do the same for Admin Pages.
The next step is to create a filter for the 'separator'. The filter will be used in admin page and login pages for unified title structure.
#6
@
9 years ago
And I remember what I wrote on the meta ticket. Direction-free separator like —
is much better than ›
. But I didn't want to rock the boat too much.
This ticket was mentioned in Slack in #core by ramiy. View the logs.
9 years ago
#10
@
9 years ago
- Milestone changed from 4.5 to Future Release
- Type changed from defect (bug) to enhancement
This ticket was mentioned in Slack in #core by ramiy. View the logs.
8 years ago
#14
follow-up:
↓ 15
@
8 years ago
- Keywords needs-patch added; has-patch removed
The patch needs translator comments.
#15
in reply to:
↑ 14
@
8 years ago
- Keywords has-patch added; needs-patch removed
Replying to jorbin:
The patch needs translator comments.
We don't need translator-comments. The patch removes translatable-strings. The placeholders '%1$s %2$s %3$s'
are part of the sprintf()
function, they are not a translatable strings.
This ticket was mentioned in Slack in #core by chriscct7. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jorbin. View the logs.
8 years ago
#21
@
8 years ago
IMO the current title is fine as is. It's fully translatable which means placeholders can be set as needed.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 years ago
This ticket was mentioned in Slack in #core-i18n by ramiy. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by ianbelanger. View the logs.
5 years ago
#27
@
5 years ago
- Milestone changed from Future Release to 5.2.3
I like the 35774-option2.patch
that would use an emdash over needing to be concerned with RTL settings.
Replace
‹
with—
and remove— WordPress