Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

Commit

Permalink
Do not add scripts and styles on AMP pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles El-Mir committed Sep 23, 2016
1 parent cc53081 commit eb77bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/W3/Plugin/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function ob_callback($buffer) {
/**
* Replace script and style tags
*/
if (function_exists('is_feed') && !is_feed()) {
if (function_exists('is_feed') && !is_feed() && $add_script_and_style) {
w3_require_once(W3TC_INC_DIR . '/functions/extract.php');
$head_prepend = '';
$body_prepend = '';
Expand Down

0 comments on commit eb77bb7

Please sign in to comment.