[wp-trac] [WordPress Trac] #58919: Add a hook to set_cached_mo_files() to allow flexible caching strategies for globbing *.mo files

WordPress Trac noreply at wordpress.org
Tue Jan 16 12:11:02 UTC 2024


#58919: Add a hook to set_cached_mo_files() to allow flexible caching strategies
for globbing *.mo files
--------------------------------------+-------------------------
 Reporter:  mreishus                  |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by swissspidy):

 In [changeset:"57290" 57290]:
 {{{
 #!CommitTicketReference repository="" revision="57290"
 I18N: Do not use `trailingslashit` in `WP_Textdomain_Registry`.

 This usage of `trailingslashit()`, introduced in [57287], is not only
 redundant, but also discouraged in order to avoid `formatting.php`
 dependency (which might not always be loaded).

 Props SergeyBiryukov.
 See #58919.
 }}}

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


More information about the wp-trac mailing list