[wp-trac] [WordPress Trac] #8497: support single-lined Template
Name comment blocks for Templates
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 5 12:08:54 GMT 2008
#8497: support single-lined Template Name comment blocks for Templates
-------------------------+--------------------------------------------------
Reporter: DD32 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Themes | Version: 2.7
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
at present, The Template system requires that the Template Names are on
their own lines, Eg:
{{{
/*
Template Name: Snarfer
*/
}}}
Using something such as:
{{{
/* Template Name: Snarfer */
}}}
or
{{{
<?php // Template Name: Snarfer ?>
}}}
will result in '''Snarfer */''' and '''Snarfer ?>''' respectively.
The attached patch causes the template locator to ignore anything after a
closing comment marker(*/) as well as end-php markers(?>)
''(As promised for Anthony)''
--
Ticket URL: <http://trac.wordpress.org/ticket/8497>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list