[wp-trac] [WordPress Trac] #54561: Avoid translating several times widget media default strings

WordPress Trac noreply at wordpress.org
Thu Dec 2 18:36:00 UTC 2021


#54561: Avoid translating several times widget media default strings
--------------------------+-----------------------------
 Reporter:  Chouby        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 The translation being a rather expensive process, we should avoid to
 translate the same string several times.

 The class `Widget_Media` is a base class for 4 widgets. Its constructor is
 thus called 4 times, meaning that all the strings included in this
 constructor are translated 4 times.

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


More information about the wp-trac mailing list