[wp-trac] [WordPress Trac] #24877: Twenty Fourteen: Align post format handling with Twenty Thirteen

WordPress Trac noreply at wordpress.org
Mon Jul 29 14:48:26 UTC 2013


#24877: Twenty Fourteen: Align post format handling with Twenty Thirteen
---------------------------+------------------------------
 Reporter:  Frank Klein    |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------
Changes (by Frank Klein):

 * cc: contact@… (added)
 * keywords:   => has-patch


Comment:

 '''The changes:'''

 * Deleted `content-post-format.php` and `content-single.php`.
 * Added template parts for each of the supported post formats.
 * Updated `index.php`, `search.php`, `archive.php` and `single.php` to
 match the new structure of the template parts.
 * Moved the archive/single view display logic into the templates.
 * Moved the display of the post format, the categories and the tags into
 custom template tags to avoid code duplication.
 * Removed the title output for certain post formats instead of hiding it
 via CSS.

 '''Gallery Post Format:'''

 In the old `content-post-format.php` there was specific code to handle the
 thumbnail images differently for archive and single views.

 However the `twentyfourteen_get_template_part()` function didn't use this
 template for the display of the gallery post format.

 The new `content-gallery.php` includes this different handling for archive
 and single views, which might or might not be the authors intention.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24877#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list