[wp-trac] Re: [WordPress Trac] #4165: Page template names include code

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 19 19:15:32 GMT 2007


#4165: Page template names include code
----------------------------+-----------------------------------------------
 Reporter:  kapoylski       |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  low             |    Milestone:  2.3      
Component:  Administration  |      Version:  2.1      
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Otto42):

 Would this line work instead?

 {{{
 preg_match( "|Template Name:(.*)$|i", $template_data, $name );
 }}}

 Your line excludes asterisks from the match, whereas mine explicitly
 specifies the end of line outside the matching string. I don't know why
 yours continues to match beyond the end of the line, but this might work
 as well and still allow * characters in the Template Name.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4165#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list