[wp-trac] [WordPress Trac] #37655: [Template Hierarchy] category-slug.php cannot be properly loaded when slug is not English

WordPress Trac noreply at wordpress.org
Sun Aug 14 19:11:18 UTC 2016


#37655: [Template Hierarchy] category-slug.php cannot be properly loaded when slug
is not English
----------------------------------------+------------------------------
 Reporter:  withgjr                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Taxonomy                    |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  template
----------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  has-patch => has-patch needs-unit-tests


Comment:

 @withgjr Thank you very much for your contribution!
 [attachment:37655.diff] is perfectly fine.

 `get_category_template()` isn't the only function that would need need to
 be adjusted though. Also,
 [https://make.wordpress.org/core/handbook/testing/ automated tests] are
 required to verify the existence of the bug and how the patch fixes it.

 If you have experience in writing tests, any help is greatly appreciated.
 If not, some sample data to reproduce this (i.e. title & slug of the
 category you created) would be very helpful as well. That way, someone
 else can chime in and contribute tests.

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


More information about the wp-trac mailing list