[theme-reviewers] Is Blog.php is allowed in theme?

Otto otto at ottodestruct.com
Sat Jul 5 17:26:32 UTC 2014


On Sat, Jul 5, 2014 at 12:21 PM, Philip M. Hofer (Frumph) <philip at frumph.net
> wrote:

>   Yes, it does.
>
> Try it.
>
>  Coincidently, don’t set a ‘front page displays’ ... it is not required
> to do so, nor necessary.   I think that’s where your thought process is
> failing, people who want the landing page to not change; will not set the
> front page to be some “other” page.  They want the events that are
> triggered to be on the landing page to be ON the landing page.
>
> If the core dev’s wanted it to be required to make the front-page be set
> if you set the posts page then they would have made it so.
>
>
Yes, but that's a setting issue. If you don't set a "front-page displays"
setting, then the front-page displays the posts, and is_front_page will
return false because you failed to set it up completely. See  public
function is_front_page() in wp-includes/query.php where it explicitly
checks for both the setting to be a "page" and for it to be a named page
that exists.

You have to set both settings. If you only set one setting, then the
settings are incomplete and you will get wonky results. You can consider
this a core bug if you like, but for the settings there to be correct and
the hierarchy to act correctly, both settings must be set to an actual
page. Setting only one of them will give you incorrect results.

-Otto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140705/d79eff62/attachment.html>


More information about the theme-reviewers mailing list