[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
Sat Nov 12 03:31:25 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             |   Keywords:  has-patch
  Focuses:  template           |
-------------------------------+-----------------------
 Trailing full stops can cause the template post type comment to ignore the
 final post type.

 {{{
 // Works
 Template post type: page, post

 // Fails
 Template post type: page, post.
 }}}

 Incoming patch modifies the regular expression to exclude any trailing
 full stops and trailing whitespace.

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


More information about the wp-trac mailing list