bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

bw_get_post_id() sometimes finds $GLOBALS['id'] is not just a post ID #39

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

I haven't tracked it down to a specific instance but sometimes the value in $GLOBALS['id'] can be set to something other than a post ID. This can produce a message like Notice: Object of class stdClass could not be converted to string in bw_get_post_id().

Proposed solution