With AMP enabled, javascript:window.print() was still showing on front end causing AMP not to be automatically validated. This removes the link if AMP is enabled.
Testing procedure
Screenshots (if appropriate):
Types of changes
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (modification of the currently available functionality)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[X] My code follows the code style of this project (WordPress coding standards, etc).
[X] My code has appropriate phpdoc comments with a description, @since, @params and @return.
[X] My code is tested for both new installs and for users that are upgrading from older versions.
Description
With AMP enabled, javascript:window.print() was still showing on front end causing AMP not to be automatically validated. This removes the link if AMP is enabled.
Testing procedure
Screenshots (if appropriate):
Types of changes
Checklist:
@since
,@params
and@return
.