[buddypress-trac] [BuddyPress Trac] #7140: Class autoloading needs to check if the component is active before including the class

buddypress-trac noreply at wordpress.org
Fri Jun 24 18:33:45 UTC 2016


#7140: Class autoloading needs to check if the component is active before
including the class
--------------------------+--------------------
 Reporter:  r-a-y         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.6.1
Component:  Core          |     Version:  2.6.0
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by johnjamesjacoby):

 Patch works for me.

 Are you able to update it with parenthesis around each separate condition?

 Basically:
 {{{
 if ( ( 'core' !== $component ) && ( false === bp_is_active( $component ) )
 && ( false === function_exists( 'tests_add_filter' ) ) ) {
 }}}

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


More information about the buddypress-trac mailing list