diff --git a/view/Requirements.php b/view/Requirements.php index e7e8ab2fa..426f12862 100644 --- a/view/Requirements.php +++ b/view/Requirements.php @@ -695,9 +695,10 @@ class Requirements_Backend { // We put script tags into the body, for performance. // If your template already has script tags in the body, then we put our script // tags just before those. Otherwise, we put it at the bottom. - $p1 = strripos($content, ' $p2) { + $p1 = stripos($content, ']*>)/i", $jsRequirements . "\\1", $content);