[buddypress-trac] [BuddyPress Trac] #5716: bp_core_load_template() missing $wp_query declaration (was: Theme compatibility - Reset post issue)

buddypress-trac noreply at wordpress.org
Thu Jul 24 18:49:35 UTC 2014

#5716: bp_core_load_template() missing $wp_query declaration
 Reporter:  SGr33n        |       Owner:  r-a-y
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  2.1
Component:  Core          |     Version:  1.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
Changes (by r-a-y):

 * keywords:   => has-patch
 * version:   => 1.5


 This is actually not a theme compatibility issue; it's an issue with

 `bp_core_load_template()` attempts to set some `$wp_query` properties to
 avoid notices, but doesn't set all of them.  Attached patch fixes the
 missed `$wp_query->post` property declaration, which caused the notice
 that the Google Publisher plugin triggered.

 Will commit this patch and do some further clean up of
 `bp_core_load_template()` that I eluded to in ticket:5241#comment:13.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5716#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list