Changes between Initial Version and Version 1 of Ticket #63944
- Timestamp:
- 09/08/2025 06:54:14 AM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #63944 – Description
initial v1 2 2 3 3 The current workflow is that translations for a script are declared with: 4 ```php4 {{{#!php 5 5 wp_set_script_translations( 'my-script', 'my-domain', $optional_path ); 6 ``` 6 }}} 7 7 8 If I omit the `$optional_path`, translations are looked up only in the "global" `wp-content/languages/plugins` directory. No "local" plugin path is looked at. 8 9 9 10 I need to declare the local path explicitly if I want it to be used: 10 ```php11 {{{#!php 11 12 wp_set_script_translations( 'my-script', 'my-domain', plugin_dir_path( __FILE__ ) . 'languages' ); 12 ``` 13 }}} 13 14 14 15 The expected behavior, however, is that I can:
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)