jaredatch / Shared-Counts

WordPress plugin that leverages SharedCount.com API to quickly retrieve, cache, and display various social sharing counts.
GNU General Public License v2.0
47 stars 16 forks source link

Remove print javascript when AMP is enabled #92

Closed chriswathen closed 4 years ago

chriswathen commented 4 years ago

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):

Screen Shot 2019-12-06 at 12 10 58 AM

Types of changes

Checklist: