[wp-trac] [WordPress Trac] #12902: Ticking the boxes for Twenty Ten: Some areas for improvement
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 8 20:26:33 UTC 2010
#12902: Ticking the boxes for Twenty Ten: Some areas for improvement
-------------------------+--------------------------------------------------
Reporter: demetris | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Themes | Version: 3.0
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by Otto42):
Replying to [comment:10 westi]:
> I disagree - it reduces the repeating of similar code and at the same
time makes it easy for a child theme to override the loop in a specific
case.
I would say that the repeating of similar code is not undesirable,
considering that having it in multiple places makes it easier to customize
for each individual place.
Customizing it individually in specific templates via large blocks of
if/else/ifs is far more cluttered and confusing than simply separating it
out into clean loops that each have their own design, even if they do have
duplicated parts between them.
We have things like category-slug.php and search.php templates for a
reason. Using is_category() for things that should be in separate
templates is silly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12902#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list