[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
Tue Nov 15 03:36:15 UTC 2016


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

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39236"]:
 {{{
 #!CommitTicketReference repository="" revision="39236"
 Posts, Post Types: Improve sanitisation of templates' post types.

 Prevents post type templates ignoring post types due to invalid
 characters. Each entry in the `Template Post Type` comment is run through
 `sanitize_key()` to match the sanitisation used by `register_post_type()`.

 Fixes #38766.
 }}}

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


More information about the wp-trac mailing list