[wp-trac] [WordPress Trac] #44340: Make use of sprintf function while translating strings

WordPress Trac noreply at wordpress.org
Sat Jun 9 09:16:56 UTC 2018


#44340: Make use of sprintf function while translating strings
--------------------------+-----------------------------
 Reporter:  saimonh       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  4.9.6
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 This is not a bug rather it's an improvement. In the wp-includes/user.php
 file, there are some <strong> tag has which has been used inside the
 translated __() function.

 So it's better to make use of sprintf function here than hard-coding the
 <strong> tag.

 Screenshot: https://d.pr/free/i/qbHq2z

 Regards

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44340>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list