Opened 10 years ago
Closed 9 years ago
#40185 closed defect (bug) (fixed)
Add opens in a new window to the Preview link
| Reported by: | rianrietveld | Owned by: | rianrietveld |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | target-blank has-patch commit |
| Cc: | Focuses: | accessibility |
Description
Tracking ticket #23432
For some links it is useful to open in a new window. One of them is the Preview link when adding or editing a post.
Then the screen reader user has to be warned the link opens in a new window.
Attachments (3)
Change History (12)
#3
@
10 years ago
@swissspidy last patch adds comment for translators.
I checked the other places where this string occurs and there was no comment yet.
#5
@
10 years ago
- Keywords needs-refresh added
- We use
accessibility texttranslator comment for strings like this, see [40033] for example. - Looks like there's an extra tab character in line 60.
Looks good to me otherwise :)
#6
@
10 years ago
Minor nitpicking: sprintf() arguments generally don't need a lot of tabs or spaces for alignment, this should be enough:
$preview_button = sprintf( '%1$s<span class="screen-reader-text"> %2$s</span>', esc_html( $preview_button_text ), /* translators: accessibility text */ esc_html__( '(link opens in a new window)' ) );
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Do we want to add a comment like
hidden accessibility text? See #29748.