cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

Implement a filter hook to remove HTML comments (or remove them altogether) #276

Closed cabrerahector closed 3 years ago

cabrerahector commented 3 years ago

Is your feature request related to a problem? Please describe.

Currently, WordPress Popular Posts outputs some HTML comments to the page as means to get some quick debugging info (plugin version and also to locate WPP on page more easily.)

Since the introduction of the Debug screen though this has become rather unnecessary (at least the version number part of the HTML code) and adds -even if ever so slightly- clutter to the HTML code.

Describe the solution you'd like

We could add a filter hook to remove HTML comments entirely (as plugin user Henning suggested here) or simply get rid of them.