| 1 | | I'd love some advice to keep building the tests regarding this ticket, for example when the style-sheet or file is in a sub-directory the function fails, not sure if I fail to understand how the new function works or I'm on the right direction. |
| | 1 | I'd love some advice to keep building the tests regarding this ticket, for example when the style-sheet or file is in a sub-directory the test fails as the path given is just after the theme folder, for example: |
| | 2 | |
| | 3 | |
| | 4 | {{{ |
| | 5 | echo theme_file_uri('/foo.js'); |
| | 6 | |
| | 7 | > 'http://localhost/wp-content/themes/twentyfifteen/foo.js' |
| | 8 | |
| | 9 | }}} |
| | 10 | If 'foo.js' is inside a folder like '/js', the path will be wrong. Not sure if I fail to understand how the new function works or I'm on the right direction. |