[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):

 6065.02.patch] takes a slightly different approach, and fixes the above

 * Use `bp_is_directory()` for checking whether or not the `foreach()` is
 * 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

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