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

buddypress-trac noreply at wordpress.org
Wed Jan 21 18:03:55 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               |
------------------------------------+-----------------------
Changes (by johnjamesjacoby):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Reopening:

 This needs checks to make sure the file that `get_page_template_slug()`
 looks for actually exists. If it doesn't, you end up with an empty
 `$templates` array and a white-screen.

 To reproduce:

 * Activate a theme with a page template.
 * Set the activity directory to a page template.
 * Visit activity directory and it's working as intended.
 * Change to a different theme without page templates.
 * Visit activity directory and see a white screen.
 * Edit the activity directory page, and you cannot unset the page
 template, because the theme doesn't have any to make the UI visible
 (likely a WordPress core bug here, too?)

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


More information about the buddypress-trac mailing list