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

Don't output the wpp-meta wrapper tag if no metadata is being displayed. #308

Closed cabrerahector closed 2 years ago

cabrerahector commented 2 years ago

Describe the bug

See: Extra span being printed.

To Reproduce

if (function_exists('wpp_get_mostpopular')) {
    wpp_get_mostpopular(array(
        'limit' => 6,
        'stats_views' => 0
    ));
}

Expected behavior

Wrapper should not be rendered if there's no info to show.

Environment: