[wp-trac] [WordPress Trac] #38766: Post type templates ignore the last post type if there is a trailing full stop.

WordPress Trac noreply at wordpress.org
Mon Nov 14 22:07:42 UTC 2016


#38766: Post type templates ignore the last post type if there is a trailing full
stop.
--------------------------------------+-----------------------
 Reporter:  peterwilsoncc             |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.7
Component:  Posts, Post Types         |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  template
--------------------------------------+-----------------------
Changes (by peterwilsoncc):

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


Comment:

 @pento thanks for the regex explanation.

 In [attachment:38766.3.diff]:
 * additional tests for trailing punctuation and white space.
 * switch to `sanitize_key()`
 * test to ensure invalid character ignored.

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


More information about the wp-trac mailing list