Skip to content

Comments

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

Open
matgargano wants to merge 2 commits intodisqus:masterfrom
matgargano:fix-errors-on-404
Open

Fix notice on or any page that the $post is not setup as a post object#69
matgargano wants to merge 2 commits intodisqus:masterfrom
matgargano:fix-errors-on-404

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