[wp-hackers] front-page.php always overrides home.php?

Mike Schinkel mikeschinkel at newclarity.net
Sun Apr 24 16:38:51 UTC 2011


On Apr 24, 2011, at 9:05 AM, Jeremy Clarke wrote:

> On Fri, Nov 19, 2010 at 3:44 PM, Chip Bennett <chip at chipbennett.net> wrote:
> 
>> To follow up, here's what I'm thinking of submitting as a patch:
>> 
>> Replace is_home() with is_posts_index() - or is_posts() or is_blog_index()
>> or is_blog()
>> Replace home.php with posts.php - or posts-index.php or blog.php
>> 
>> 
> I'm late to the game but I just want to say: This is exactly right and would
> be a huge improvement to the semantic usability of the
> conditionals/templates involved.

EXCELLENT idea.  My two cents, using index for consistency and singular post for subtle reference to post_type='post' vs. post_type='%':

is_home() -> is_post_index()
is_posts() -> is_blog_index()
home.php -> post-index.php

On Apr 24, 2011, at 10:13 AM, Chip Bennett wrote:

>> That said I doubt you'd get much committer traction. The current situation
>> is seen as workable because WP is popular despite it, and there is little
>> love for purely semantic changes to core most of the time.
> 
> I think the problem is that the committers might not be "in the trenches"
> enough to see that a nomenclature problem *does* exist. 

I think you might be right.

-Mike


More information about the wp-hackers mailing list