filemtime throws warning on localhost

I have registered a function to load theme scripts, which is working fine online, but when i transfere to work on localhost it starts to throw warnings because of the difference of handling pathes between live server and windows which uses the instead of /, so how to fix this to make it work on both local and live server..

Here is my code:

wp_enqueue_style( ‘firebrick-skin’ , get_theme_file_uri(‘/assets/css/skins/firebrick.css’) ,array(‘main’), filemtime(get_theme_file_path(‘/assets/css/skins/firebrick.css’)));

Read more here:: filemtime throws warning on localhost

Leave a Reply

Your email address will not be published. Required fields are marked *