Update helpers.php
This commit is contained in:
committed by
GitHub
parent
a031f8d17a
commit
6c472480d0
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user