[wp-trac] [WordPress Trac] #54797: Allow languages path in register_block_type

WordPress Trac noreply at wordpress.org
Thu Sep 11 10:19:29 UTC 2025


#54797: Allow languages path in register_block_type
----------------------------------------+-----------------------------
 Reporter:  Rahe                        |       Owner:  gziolo
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  Future Release
Component:  I18N                        |     Version:  5.5
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------------

Comment (by swissspidy):

 We shouldn't need costly directory traversal or file operations when the
 information is already available via `WP_Textdomain_Registry`.

 Actually, with #63944 we probably don't need to do anything at all
 anymore. `wp_set_script_translations` / `load_script_textdomain` will now
 look up the registry for the textdomain and use the returned path if
 available.

 @gziolo Perhaps you could help confirm this, but I think we can close this
 one as a duplicate of #63944.

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


More information about the wp-trac mailing list