[wp-trac] [WordPress Trac] #53589: Twenty Twenty One: Translation file loaded twice

WordPress Trac noreply at wordpress.org
Sun Apr 10 22:27:21 UTC 2022

#53589: Twenty Twenty One: Translation file loaded twice
 Reporter:  Chouby                               |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Bundled Theme                        |     Version:  5.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch commit assigned-for-       |     Focuses:
  commit                                         |  performance
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


 In [changeset:"53121" 53121]:
 #!CommitTicketReference repository="" revision="53121"
 Twenty Twenty One: Prevent loading translation file twice.

 This changes wraps the registration of patterns and pattern categories in
 a function hooked to `init`, to avoid loading the Twenty Twenty One
 translation file twice.

 Props zodiac1978, sabernhardt, audrasjb.
 Fixes #53589.

Ticket URL: <https://core.trac.wordpress.org/ticket/53589#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list