RadoslavGeorgiev / rila-framework

A front-end WordPress framework with a set of many extendable class wrappers, inpired by the MVC ideology
GNU General Public License v2.0
18 stars 3 forks source link

Check if there is a post to use in the default context #1

Closed RadoslavGeorgiev closed 8 years ago

RadoslavGeorgiev commented 8 years ago

Currently, unless on a 404 page, the default context uses Post_Type::factory().

On an archive page, there could be no posts (ex. homepage on a fresh blog), but it's still not a 404. make sure that this does not throw an exception.

Q: Can we safely use have_posts() to check this?

RadoslavGeorgiev commented 8 years ago

Fixed in 2713424ba44b222e0cc67c6eff0e2b3bd931baf7