Custom Post Types views bug
-
Found a small bug with custom post types and the pending status of them.
When a custom post type is not yet published, it throws this error:
Warning: number_format() expects parameter 1 to be double, string given in /home/user/public_html/wp-includes/functions.php on line 155
viewsThis is likely because it’s trying to query a post that is not yet public and therefor, no stats are available.
Also, probably worth adding an option to decide which post types to query, having it for every CPT is likely making the page load slower when I don’t actually want that data being retrieved or tracked.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Post Types views bug’ is closed to new replies.