[buddypress-trac] [BuddyPress Trac] #5751: bp_is_current_component() fallback $page check breaks on certain custom components

buddypress-trac noreply at wordpress.org
Sat Jul 12 17:25:28 UTC 2014


#5751: bp_is_current_component() fallback $page check breaks on certain custom
components
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  low           |   Milestone:  2.1
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8611"]:
 {{{
 #!CommitTicketReference repository="" revision="8611"
 More conservative page_template checks in bp_is_current_component()

 The page_template checks in bp_is_current_component() should not go
 through if
 the currently queried object is not a single page (ie when a plugin is
 forcing
 it to be a CPT archive). So we check for the presence of the `ID` property
 before attempting to use it.

 Fixes #5751
 }}}

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


More information about the buddypress-trac mailing list