Merge pull request #1949 from MWDelaney/master
Fix for plugins that don't enqueue their scripts properly
This commit is contained in:
@@ -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