Make template() compatible with wp admin
This commit is contained in:
@@ -52,7 +52,7 @@ function config($key = null, $default = null)
|
|||||||
*/
|
*/
|
||||||
function template($file, $data = [])
|
function template($file, $data = [])
|
||||||
{
|
{
|
||||||
if (remove_action('wp_head', 'wp_enqueue_scripts', 1)) {
|
if (!is_admin() && remove_action('wp_head', 'wp_enqueue_scripts', 1)) {
|
||||||
wp_enqueue_scripts();
|
wp_enqueue_scripts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user