Opened 3 years ago
Last modified 4 months ago
#15385 new enhancement
Use get_template_part() for post formats in Twenty Ten
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | azizur |
Description
Let's encourage some standardization in themes by giving Twenty Ten the following:
get_template_part( 'post-format', 'aside' ); get_template_part( 'post-format', 'gallery' );
We'll leave the default in loop.php, I'm thinking, though we could also use post-format-default.
I'm going to comment on #14746 that I think, if post formats are supported, then 'default' should always be supported and should be enforced as the default, even if nothing is stored yet for that post.
Attachments (1)
Change History (7)
comment:1
markmcwilliams
— 3 years ago
comment:2
nacin
— 3 years ago
Patch attached.
Something doesn't quite feel right. I don't know if it's the arguments in get_template_part(), or the fact that the default styling remains in loop.php, or something.
comment:5
SergeyBiryukov
— 6 months ago
- Component changed from Themes to Bundled Theme
comment:6
SergeyBiryukov
— 4 months ago
- Milestone changed from Future Release to WordPress.org
I'd never thought about that, can see logic behind it though! :)