Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#3437 closed defect (bug) (fixed)

Template Name: a extra space is required at the end of the name

Reported by: devil1591's profile devil1591 Owned by: markjaquith's profile markjaquith
Milestone: 2.1 Priority: high
Severity: blocker Version: 2.1
Component: Template Keywords: template name
Focuses: Cc:

Description

When you create a template name, you put the Template Name: tag, you have to put an extra space at the end of the template name in order to make it work when creating a new page with template.
the regexp is made to work that way
admin-function.php line 1295 "|Template Name:(.* )|i"
but I think this is a bug.

Example:
"Template Name: Archive template"<= doesn't work
"Template Name: Archive template "<= work

Change History (4)

#1 @devil1591
17 years ago

  • Milestone 2.1 deleted
  • Version set to 2.1

#2 @JeremyVisser
17 years ago

  • Component changed from Administration to Template
  • Priority changed from normal to high

I confirm this bug. Thanks for the workaround, will try it! :)

#3 @markjaquith
17 years ago

  • Milestone set to 2.1
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

This appears to have been a typo in [4478] Nice catch. Not an issue for 2.0.x branch

#4 @markjaquith
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4610]) Fix Template Name and Description metadata regex typo. Props devil1591. fixes #3437

Note: See TracTickets for help on using tickets.