-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent styles from being removed when in Customizer preview with Sta…
…ndard mode (#4553) * Prevent styles from being removed when in Customizer preview with Standard mode enabled * Revert "Prevent styles from being removed when in Customizer preview with Standard mode enabled" This reverts commit 9d0e2ad. * Re-work AmpBoilerplate to only remove boilerplate-specific styles * Remove now-unused AmpProject\DevMode * Improve phpdoc explaining refined behavior * Remove trailing comma from function args * Simplify logic in removeStyleAndNoscriptTags * Remove all boilerplates not just the identified one * Rename method to isBoilerplateStyle and improve docs Co-Authored-By: Alain Schlesser <alain.schlesser@gmail.com> Co-authored-by: Weston Ruter <westonruter@google.com> Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
- Loading branch information
1 parent
f6710a0
commit dba6055
Showing
3 changed files
with
89 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters