Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks
bobbingwide opened this issue Apr 22, 2016 · 0 comments
Closed
2 tasks
Assignees
Labels

Comments

@bobbingwide
Copy link
Owner

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

  • Implement some logic to avoid producing the notice.
  • Attempt to track down the cause of the problem in the first place.
@bobbingwide bobbingwide changed the title bw_get_post_id() sometimes finds $GLOBALS['id'] is not just a post_id bw_get_post_id() sometimes finds $GLOBALS['id'] is not just a post ID Apr 22, 2016
@bobbingwide bobbingwide self-assigned this Apr 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant