WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18302, comment 88


Ignore:
Timestamp:
07/22/2016 07:32:10 AM (5 years ago)
Author:
gma992
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18302, comment 88

    initial v1  
    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.
     1I'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{{{
     5echo theme_file_uri('/foo.js');
     6
     7> 'http://localhost/wp-content/themes/twentyfifteen/foo.js'
     8
     9}}}
     10If '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.