WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#23202 new defect (bug)

Enable is_page_template() within the Loop

Reported by: wpsmith Owned by:
Priority: normal Milestone: Awaiting Review
Component: Template Version:
Severity: normal Keywords: has-patch dev-feedback
Cc:

Description

There have been a few times where, in the loop, I need to know if I were on a page using a specific page template.

The function in_the_loop() provides this functionality for us to expand is_page_template().

Attachments (1)

23202.patch (779 bytes) - added by wpsmith 5 months ago.

Download all attachments as: .zip

Change History (3)

wpsmith5 months ago

comment:1 alexvorn25 months ago

  • Component changed from General to Template

comment:2 wpsmith5 months ago

  • Keywords has-patch dev-feedback added
Note: See TracTickets for help on using tickets.