[buddypress-trac] [BuddyPress Trac] #6190: Custom page template needs to be validated before using it in template stack

buddypress-trac noreply at wordpress.org
Sun Feb 8 04:06:49 UTC 2015


#6190: Custom page template needs to be validated before using it in template
stack
----------------------------------------+--------------------
 Reporter:  r-a-y                       |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  2.2.1
Component:  Appearance - Template Pack  |     Version:  2.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch                   |
----------------------------------------+--------------------

Comment (by johnjamesjacoby):

 Also, `WP_Theme::get_page_templates()` is a relatively costly function to
 call during page output vs. when saving a post. If the `page_templates`
 cache doesn't exist, it needs to be built by scanning the theme directory,
 opening each file, looking for page-template headers, and compiling any it
 finds into an array.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6190#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list