Changeset 57922
- Timestamp:
- 04/04/2024 01:36:25 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r57639 r57922 1190 1190 $relative = explode( '/', $relative ); 1191 1191 1192 $languages_path = WP_LANG_DIR . '/ ' . $relative[0];1192 $languages_path = WP_LANG_DIR . '/plugins'; 1193 1193 1194 1194 $relative = array_slice( $relative, 2 ); // Remove plugins/<plugin name> or themes/<theme name>. -
trunk/tests/phpunit/tests/l10n/loadScriptTextdomain.php
r55562 r57922 14 14 * @ticket 46387 15 15 * @ticket 49145 16 * @ticket 60891 16 17 * 17 18 * @dataProvider data_resolve_relative_path … … 122 123 ), 123 124 ), 125 // @ticket 60891 126 array( 127 '/languages/plugins/internationalized-plugin-en_US-2f86cb96a0233e7cb3b6f03ad573be0b.json', 128 'plugin-in-custom-plugin-dir', 129 '/wp-content/mods/my-plugin/js/script.js', 130 'internationalized-plugin', 131 array( 132 'plugins_url', 133 static function () { 134 return 'https://example.com/wp-content/mods'; 135 }, 136 ), 137 ), 124 138 ); 125 139 }
Note: See TracChangeset
for help on using the changeset viewer.