WordPress.org

Make WordPress Core

Timestamp:
11/15/2016 03:36:13 AM (5 years ago)
Author:
peterwilsoncc
Message:

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.

Location:
trunk/tests/phpunit/data/themedir1/page-templates/38766
Files:
2 added

Note: See TracChangeset for help on using the changeset viewer.