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

Fix notice on or any page that the $post is not setup as a post object #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix notice on or any page that the $post is not setup as a post object #69

wants to merge 2 commits into from

Conversation

matgargano
Copy link
Contributor

No description provided.

… in dsq_can_replace function and if it doesn't return; this prevents errors that I was getting on my 404 page
@matgargano matgargano changed the title Fix errors on 404 Fix errors on 404 page (or any page that the $post is not set to a post object) Mar 21, 2014
@matgargano
Copy link
Contributor Author

A little more investigation shows me that this notice comes up on 404 pages (or any pages that never set the post object [$post]).

If there's a sidebar with any Loop, on a page like the 404 page this notice will not pop up, since $post was set (at least as far as having a property post_status on it).

I discovered this when working with a site with a 404 page that had no instances of a $post object (sidebar or otherwise).

@matgargano matgargano changed the title Fix errors on 404 page (or any page that the $post is not set to a post object) Fix notice on or any page that the $post is not setup as a post object Mar 21, 2014
@gmurphey
Copy link

gmurphey commented Apr 7, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants