Skip to content

Commit

Permalink
Update misc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHolbrook authored Jun 27, 2018
1 parent aee397b commit 7e11870
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ function is_acf_loadable() {
*/
function get_inline_svg( $path = null ) {

if ( file_exists( $path ) ) {
return file_get_contents( $path );
}

$full_path = sprintf( '%s/%s',
get_template_directory(),
$path
Expand Down Expand Up @@ -142,4 +146,4 @@ function remove_filters_for_anonymous_class( $hook_name = '', $class_name = '',
}

return $status;
}
}

0 comments on commit 7e11870

Please sign in to comment.