[wp-trac] [WordPress Trac] #11722: body_class() creates an invalid class when page template contains a . [dot]
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 5 13:42:28 UTC 2010
#11722: body_class() creates an invalid class when page template contains a . [dot]
--------------------------+-------------------------------------------------
Reporter: willmot | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.0
Component: Template | Version: 3.0
Severity: minor | Keywords: body_class
--------------------------+-------------------------------------------------
Confirmed on Trunk and 2.9.1
'''Steps to reproduce'''
1. Create a new file called template.contact.php that contains the
template code:
{{{
/*
Template Name: Contact
*/
}}}
Create a page through the WordPress admin and select the template.
View the newly created page, view source and notice that body has a class
of "page-template-template.contact-php".
Weep in the knowledge that you cannot use css to target that class.
'''Expected result'''
Full stops should be converted to a hyphen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11722>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list