[buddypress-trac] [BuddyPress Trac] #6065: Add support for WordPress Page templates

buddypress-trac noreply at wordpress.org
Wed Jan 21 19:06:25 UTC 2015


#6065: Add support for WordPress Page templates
------------------------------------+-----------------------
 Reporter:  DJPaul                  |       Owner:  djpaul
     Type:  enhancement             |      Status:  reopened
 Priority:  normal                  |   Milestone:  2.2
Component:  Theme / Template Parts  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |
------------------------------------+-----------------------

Comment (by johnjamesjacoby):

 [https://buddypress.trac.wordpress.org/attachment/ticket/6065/6065.02.patch
 6065.02.patch] takes a slightly different approach, and fixes the above
 bug:

 * Use `bp_is_directory()` for checking whether or not the `foreach()` is
 necessary.
 * Introduce `bp_theme_compat_page_templates()` for handling the page-
 template look-up.
 * Rather than override the template hierarchy, append it to the front so
 it's the first to be found.
 * This allows missing page-templates to fallback to the default template
 hierarchy.

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


More information about the buddypress-trac mailing list