A Few Bugs Need Fixing
-
I found a couple of bugs in the new version of your plugin v1.2.5.
In the file functions.php line 196 you’ve hardcoded a table name wp_post_views
$query = "SELECT " . ( $args['fields'] === 'date=>views' ? 'pvc.period, ' : '' ) . "SUM( IFNULL( pvc.count, 0 ) ) AS post_views FROM " . $wpdb->prefix . "posts wpp LEFT JOIN wp_post_views pvc ON pvc.id = wpp.ID " . $query . " WHERE wpp.post_type = '" . $args['post_type'] . "' GROUP BY pvc.period HAVING post_views > 0";Also in the file counter.php line 148 the post variable $_POST[‘post_type’] doesn’t exist. Looks like it is not being set in the javascript file. Seems to work when I comment that reference out so it’s probably not even needed anymore.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘A Few Bugs Need Fixing’ is closed to new replies.