[Plugin: WordPress.com Stats] Loops forever on post_id -1
-
I just found an interaction problem between the WP Stats plugin (tested with WP Stats v1.6) and one I’m writing, Picasa Album Uploader. I generate a fake post entry using post_id -1 and it’s causing the Stats plugin some grief. With the stats plugin enabled, I get a max execution time exceeded at line 991 of stats.php.
It looks like the problem is that the function
dec2sixtwo()
loops forever if the post_id is -1. Poking around google, the generally accepted method to generate a fake post is to use -1 for the post id.For right now I’m going to set
$wp_query->is_page
and$wp_query->is_single
tofalse
and that appears to allow things to work with both my plugin and WP stats enabled.Should I worry about this further? My plugin is functioning OK with these two
$wp_query
values asfalse
. But this feels a bit hacky…
- The topic ‘[Plugin: WordPress.com Stats] Loops forever on post_id -1’ is closed to new replies.