[wp-trac] [WordPress Trac] #27031: Twenty Fourteen theme assumes all archive pages are list views

WordPress Trac noreply at wordpress.org
Sat Mar 1 14:02:48 UTC 2014


#27031: Twenty Fourteen theme assumes all archive pages are list views
-------------------------------------------------+--------------------
 Reporter:  netweb                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  3.9
Component:  Bundled Theme                        |     Version:  3.8.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing ui-feedback  |     Focuses:
-------------------------------------------------+--------------------

Comment (by MikeLittle):

 Investigating this as part of UK WP Contributors day, this patch does not
 seem to work. Codex documentation
 http://codex.wordpress.org/is_post_type_archive indicates
 is_post_type_archive() will return false for anything other than a custom
 post type.
 A better solution is to test the return from get_query_var(  'post_type'
 ). Attached patch (27301.2.patch) uses this method.
 This also retains JJJ's case, i.e. it doesn't apply the class to custom
 post types.

 (Thanks to help from 12t time contribs Dave Pullig, Rhys Wynne, Paul
 Riley)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27031#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list