[wp-trac] [WordPress Trac] #30319: Twenty Fifteen: Incorrect use of sprintf() and _x() in template-tags.php

WordPress Trac noreply at wordpress.org
Wed Nov 12 16:12:25 UTC 2014


#30319: Twenty Fifteen: Incorrect use of sprintf() and _x() in template-tags.php
---------------------------+------------------------------
 Reporter:  aprea          |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by aprea):

 Thanks obenland!

 I was speaking to Dion about this last night on Slack, he suggested that
 it was perhaps done this way to improve code readability.

 I've attached another patch that removes the `sprintf()`s and places the
 screen reader text wrapper directly in the first format string as you
 suggested.

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


More information about the wp-trac mailing list