Update helpers.php

This commit is contained in:
Michael W. Delaney
2017-08-14 11:18:40 -04:00
committed by GitHub
parent a031f8d17a
commit 6c472480d0

View File

@@ -52,6 +52,10 @@ function config($key = null, $default = null)
*/
function template($file, $data = [])
{
if (remove_action('wp_head', 'wp_enqueue_scripts', 1)) {
wp_enqueue_scripts();
}
return sage('blade')->render($file, $data);
}