Merge pull request #721 from 0dp/patch-6
Using filepath instead of uri in asset_path
This commit is contained in:
commit
1ab4078751
|
@ -10,7 +10,7 @@
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function asset_path($filename) {
|
function asset_path($filename) {
|
||||||
$manifest_path = get_stylesheet_directory_uri() .'/rev-manifest.json';
|
$manifest_path = get_stylesheet_directory() .'/rev-manifest.json';
|
||||||
if ( file_exists($manifest_path ) ) {
|
if ( file_exists($manifest_path ) ) {
|
||||||
$manifest = json_decode( file_get_contents( $manifest_path ), TRUE );
|
$manifest = json_decode( file_get_contents( $manifest_path ), TRUE );
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in New Issue