Disable rewriting HTML if admin
-
Hi there,
In html-rewrite.php you disable the rewriting of the HTML output for administrators using the obstart function, but in the section that sets up the filter for W3TC you don’t make the same check.This seems, in my case, to rewrite the HTML even for administrators as I am using W3TC – which since I am trying to lazy load jQuery breaks all my admin screens 🙂 I don’t need jQuery on the front end so I’m keen to not have to load it.
I’ve add a if ( is_admin() ) return $buffer; line and get the desired result, but obviously any update to the plugin will overwrite my changes.
Not sure if this is by design or a bug though so writing just in case 🙂
Ta!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Disable rewriting HTML if admin’ is closed to new replies.