[wp-trac] [WordPress Trac] #23230: Change hyphen in front of "Draft" to em dash
WordPress Trac
noreply at wordpress.org
Sun Jul 28 23:35:46 UTC 2013
#23230: Change hyphen in front of "Draft" to em dash
----------------------------------+------------------------------
Reporter: kkalvaa | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.5
Severity: normal | Resolution:
Keywords: ui-focus ui-feedback |
----------------------------------+------------------------------
Comment (by McGuive7):
'''23230.diff:'''
Changes the ' - ' to a translatable (with context specified) &mdash in
`_post_states()` and `_media_states()` in /wp-admin/includes/template.php.
Two other things worth noting:
1. ' - ' appears in numerous other files including:
* /wp-admin/includes/class-wp-ms-sites-list-table.php
* /wp-includes/class-pop3.php
* /wp-includes/formatting.php
* /wp-includes/functions.php
* /wp-includes/ID3/module.tag.id3v2.php
* /xmlrpc.php
2. A quick search for ' - ' also revealed that many plugins utilize ' - '
instead of —. So it might be best to stick with that ndash
convention, instead of switching to &mdash. Not as correct
typographically, but perhaps more consistent.
Final thought: being as the ' - ' lives independently in a bunch of
different files, might it be a good idea to abstract it to a more global
variable?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23230#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list