Changeset 59264 for trunk/tests/phpunit/tests/l10n/loadScriptTextdomain.php
- Timestamp:
- 10/21/2024 02:11:56 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/loadScriptTextdomain.php
r59126 r59264 29 29 } 30 30 31 public function data_resolve_relative_path() {31 public static function data_resolve_relative_path() { 32 32 return array( 33 33 // @ticket 45528 … … 44 44 'https://my-cdn.com/wordpress/wp-includes/js/script.js', 45 45 'default', 46 array( 'load_script_textdomain_relative_path', array( $this, 'relative_path_from_cdn' ), 2 ),46 array( 'load_script_textdomain_relative_path', array( __CLASS__, 'relative_path_from_cdn' ), 2 ), 47 47 ), 48 48 // Test for WordPress installs in a subdirectory. … … 147 147 } 148 148 149 public function relative_path_from_cdn( $relative, $src ) {149 public static function relative_path_from_cdn( $relative, $src ) { 150 150 if ( 0 === strpos( $src, 'https://my-cdn.com/wordpress/' ) ) { 151 151 return substr( $src, strlen( 'https://my-cdn.com/wordpress/' ) );
Note: See TracChangeset
for help on using the changeset viewer.