[buddypress-trac] [BuddyPress Trac] #6853: Autoload BP classes

buddypress-trac noreply at wordpress.org
Mon Feb 8 03:16:04 UTC 2016


#6853: Autoload BP classes
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.5
Component:  API           |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by r-a-y):

 `03.patch` fixes a fatal error with `BP_Component` being not found when
 SPL is disabled.  I'm requiring the class in `bp-core-loader.php` as this
 is the earliest the class is required.

 I'm also doing a `class_exists()` check in `bp-core-component.php` as some
 plugins might be manually requiring `/bp-core/bp-core-component.php` in
 their code to extend `BP_Component` (unlikely, but better to be safe than
 sorry!).

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


More information about the buddypress-trac mailing list