[buddypress-trac] [BuddyPress Trac] #6190: Custom page template needs to be validated before using it in template stack
    buddypress-trac 
    noreply at wordpress.org
       
    Thu Feb  5 18:01:32 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                      |   Keywords:  has-patch
----------------------------------------+-----------------------
 Came across an issue on an install where a non-existent custom page
 template was being used for the `_wp_page_template` meta key in postmeta.
 This led to BP being unable to find a wrapper template.
 Attached patch adds some validation before using whatever is passed by
 `get_page_template_slug()` as the wrapper template.
 Code uses the same validation code as in `wp_insert_post()`:
 https://core.trac.wordpress.org/browser/tags/4.1/src/wp-
 includes/post.php#L3412
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6190>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list