[wp-trac] [WordPress Trac] #31078: Continue the better option for <title> tags

WordPress Trac noreply at wordpress.org
Wed Sep 23 07:00:51 UTC 2015


#31078: Continue the better option for <title> tags
-------------------------------------+-----------------------
 Reporter:  obenland                 |       Owner:  obenland
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  4.4
Component:  Themes                   |     Version:  4.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by nacin):

 Replying to [comment:20 obenland]:
 > Yes, we'd assume that PHP *is* operating under a different locale. There
 are a number of instances where we already make that assumption, namely in
 `get_the_archive_title()`.

 I think this is a bad assumption and one we should not make, whether in
 `get_the_archive_title()`, here, or anywhere else. If I reviewed
 `get_the_archive_title()`, and I think I did, then I simply missed it
 there and in past its incarnations in Twenty Eleven et al.

 `date()` isn't even locale-aware, according to the documentation:
 http://php.net/manual/en/function.date.php. Even if it were, I would
 venture to guess that the locale is almost never *installed*, let alone
 configured (WordPress doesn't use `setlocale()`).

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


More information about the wp-trac mailing list