Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1 from waitxd/patch-2

fix issue with roots_print_scripts when $wp_scripts is NULL
  • Loading branch information...
commit bd0f8d01363f4e3e0668b0541990d256849d82e0 2 parents e4cb2d8 + cda3a57
Rakesh Tembhurne rakeshtembhurne authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  inc/roots-scripts.php
3  inc/roots-scripts.php
@@ -9,12 +9,13 @@ function roots_scripts() {
9 9
10 10 add_action('wp_enqueue_scripts', 'roots_scripts');
11 11
12   -if (basename($_SERVER['PHP_SELF']) != 'wp-login.php' && !is_admin()) {
  12 +if (!is_admin()) {
13 13 add_action('wp_print_scripts', 'roots_print_scripts');
14 14 }
15 15
16 16 function roots_print_scripts() {
17 17 global $wp_scripts;
  18 + if (! isset($wp_scripts)) return;
18 19
19 20 $wp_scripts->all_deps($wp_scripts->queue);
20 21 $scripts = $locales = array();

0 comments on commit bd0f8d0

Please sign in to comment.
Something went wrong with that request. Please try again.