WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#3437 closed defect (bug) (fixed)

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

Reported by: devil1591 Owned by: markjaquith
Priority: high Milestone: 2.1
Component: Template Version: 2.1
Severity: blocker Keywords: template name
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)

comment:1 devil15917 years ago

  • Milestone 2.1 deleted
  • Version set to 2.1

comment:2 JeremyVisser7 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! :)

comment:3 markjaquith7 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

comment:4 markjaquith7 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.