Opened 6 years ago
Closed 6 years ago
#49362 closed defect (bug) (fixed)
The docs for is_page_template should clarify it is expecting a filename
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.4 | Priority: | normal |
| Severity: | minor | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | template | Cc: |
Description
The function is_page_template() accepts a filename as a parameter, this is not the same thing as the template name which is what the inline docs refer to. The template name is specified in the header of the template for example:
page-cool.php
/** * Template name: My Cool Template */
The parameter should be page-cool.php and not My Cool Template
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Diff to fix 49362, adds "filename" to inline docs instead of just "name"