a3rev / page-views-count

Show front end users all time views and views today on posts, pages, index pages and custom post types with the Page Views Count Plugin. Use the Page Views Count function to add page views to any content type or object created by your theme or plugins.
GNU General Public License v3.0
6 stars 3 forks source link

pvc_class patch #10

Closed stefanodalli closed 6 years ago

stefanodalli commented 6 years ago

Hi there, Due to a little bug in showing the correct today counter, I made the following patch inside public static function pvc_get_stats( $post_id ) Take a look at:

============================================
...
if ( ! empty( $today ) ) {
$output_html .= number_format($today) . ‘ ‘ .__(‘views today’, ‘page-views-count’);
...
============================================

See attached file pvc_class.zip (contains pvc_class.php) pvc_class.zip

a3rev commented 6 years ago

@stefanodalli

Hi - just put out new version 2.0.4 with your patch - have acknowledged you in the change log for contributing the patch.

stefanodalli commented 6 years ago

OK. Thanks. Well done. Bye Stefano ^^^^^^^^^^^^^^^^^^^^^^^^

Il 6 marzo 2018 alle 8.39 a3rev notifications@github.com ha scritto:

@stefanodalli

Hi - just put out new version 2.0.4 with your patch - have acknowledged you in the change log for contributing the patch.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/a3rev/page-views-count/issues/10#issuecomment-370690975

a3rev commented 6 years ago

Released in version 2.0.4