Opened 3 years ago
Closed 3 years ago
#53535 closed defect (bug) (fixed)
Site health/i18n: add a separator between tab names and "Site health"
Reported by: | audrasjb | Owned by: | Clorith |
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Site Health | Keywords: | needs-patch i18n-change |
Focuses: | Cc: |
Description
The current implementation of Site Health tab names is missing a separator between "Site Health" and the name of the tab.
$title = sprintf( // translators: %s: The currently displayed tab. __( 'Site Health %s' ), ( isset( $_GET['tab'] ) ? esc_html( $tabs[ $_GET['tab'] ] ) : esc_html( reset( $tabs ) ) ) );
With the default tabs, it displays "Site Health Info" and "Site Health Status", but with the introduction of custom tabs, I think we should add a separator between "Site Health" and the name of the tab.
I'd propose to rather use "–" or ":", so it will work on any custom tab name provided by developers.
Attachments (1)
Change History (7)
#4
@
3 years ago
- Keywords needs-testing removed
- Owner set to Clorith
- Status changed from new to assigned
Good catch @swissspidy, and yes there's a missing active link indicator there as you mentioned. Besides than that I think @audrasjb has the right idea with the label, let's get both tackled before RC-1.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.
Unrelated, but shouldn't the
isset()
check there really beisset( $_GET['tab'], $tabs[ $_GET['tab'] )
? Otherwise there would be "Undefined array key" notices/warnings when using something like?tab=thisdoesnotexist
.Related to that, the "Status" tab is not marked as active (blue border below the tab) when just visiting the
site-health.php
site. Clicking on "Status" links tosite-health.php?tab
, making it active.Tested using 5.8-beta4-51247