Changeset 10652
- Timestamp:
- 03/10/2016 07:45:07 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-admin.php
r10613 r10652 17 17 if ( !class_exists( 'WP_List_Table' ) ) require( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); 18 18 19 require dirname( __FILE__ ) . '/classes/class-bp-activity-list-table.php'; 19 if ( ! buddypress()->do_autoload ) { 20 require dirname( __FILE__ ) . '/classes/class-bp-activity-list-table.php'; 21 } 20 22 21 23 // Per_page screen option. Has to be hooked in extremely early. -
trunk/src/bp-activity/bp-activity-akismet.php
r10516 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-akismet.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-akismet.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-activity/bp-activity-loader.php
r10516 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-activity-component.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-activity-component.php'; 17 } 16 18 17 19 /** -
trunk/src/bp-activity/bp-activity-screens.php
r10516 r10652 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 require dirname( __FILE__ ) . '/classes/class-bp-activity-theme-compat.php'; 17 if ( ! buddypress()->do_autoload ) { 18 require dirname( __FILE__ ) . '/classes/class-bp-activity-theme-compat.php'; 19 } 18 20 19 21 /** -
trunk/src/bp-activity/bp-activity-template.php
r10542 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-activity-template.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-activity-template.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-activity/classes/class-bp-activity-component.php
r10555 r10652 54 54 'screens', 55 55 'filters', 56 'classes',57 56 'template', 58 57 'functions', … … 60 59 'cache' 61 60 ); 61 62 if ( ! buddypress()->do_autoload ) { 63 $includes[] = 'classes'; 64 } 62 65 63 66 // Load Akismet support if Akismet is configured. -
trunk/src/bp-blogs/bp-blogs-loader.php
r10517 r10652 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 require dirname( __FILE__ ) . '/classes/class-bp-blogs-component.php'; 17 if ( ! buddypress()->do_autoload ) { 18 require dirname( __FILE__ ) . '/classes/class-bp-blogs-component.php'; 19 } 18 20 19 21 /** -
trunk/src/bp-blogs/bp-blogs-screens.php
r10517 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-blogs-theme-compat.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-blogs-theme-compat.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-blogs/bp-blogs-template.php
r10517 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-blogs-template.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-blogs-template.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-blogs/bp-blogs-widgets.php
r10517 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-blogs-recent-posts-widget.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-blogs-recent-posts-widget.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r10555 r10652 123 123 'actions', 124 124 'screens', 125 'classes',126 125 'template', 127 126 'filters', 128 127 'functions', 129 128 ); 129 130 if ( ! buddypress()->do_autoload ) { 131 $includes[] = 'classes'; 132 } 130 133 131 134 if ( bp_is_active( 'activity' ) ) { -
trunk/src/bp-core/bp-core-admin.php
r10518 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-admin.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-admin.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-core/bp-core-component.php
r10527 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-component.php'; 13 if ( ! class_exists( 'BP_Component' ) ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-component.php'; 15 } -
trunk/src/bp-core/bp-core-customizer-email.php
r10613 r10652 48 48 * BP_Customizer_Control_Range class. 49 49 */ 50 require_once dirname( __FILE__ ) . '/classes/class-bp-customizer-control-range.php'; 50 if ( ! buddypress()->do_autoload ) { 51 require_once dirname( __FILE__ ) . '/classes/class-bp-customizer-control-range.php'; 52 } 51 53 52 54 /** -
trunk/src/bp-core/bp-core-loader.php
r10518 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-core.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-component.php'; 17 require dirname( __FILE__ ) . '/classes/class-bp-core.php'; 18 } 16 19 17 20 /** -
trunk/src/bp-core/bp-core-theme-compatibility.php
r10528 r10652 25 25 /** Base Class ****************************************************************/ 26 26 27 require dirname( __FILE__ ) . '/classes/class-bp-theme-compat.php'; 27 if ( ! buddypress()->do_autoload ) { 28 require dirname( __FILE__ ) . '/classes/class-bp-theme-compat.php'; 29 } 28 30 29 31 /** Functions *****************************************************************/ -
trunk/src/bp-core/bp-core-widgets.php
r10518 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-core-login-widget.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-core-login-widget.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-core/classes/class-bp-admin.php
r10621 r10652 121 121 */ 122 122 private function includes() { 123 require( $this->admin_dir . 'bp-core-admin-classes.php' ); 123 if ( ! buddypress()->do_autoload ) { 124 require( $this->admin_dir . 'bp-core-admin-classes.php' ); 125 } 126 124 127 require( $this->admin_dir . 'bp-core-admin-actions.php' ); 125 128 require( $this->admin_dir . 'bp-core-admin-settings.php' ); -
trunk/src/bp-friends/bp-friends-loader.php
r10587 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-friends-component.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-friends-component.php'; 17 } 16 18 17 19 /** -
trunk/src/bp-friends/bp-friends-widgets.php
r10529 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-core-friends-widget.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-core-friends-widget.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-friends/classes/class-bp-friends-component.php
r10587 r10652 51 51 'screens', 52 52 'filters', 53 'classes',54 53 'activity', 55 54 'template', … … 58 57 'widgets', 59 58 ); 59 60 if ( ! buddypress()->do_autoload ) { 61 $includes[] = 'classes'; 62 } 60 63 61 64 parent::includes( $includes ); -
trunk/src/bp-groups/bp-groups-admin.php
r10613 r10652 17 17 if ( !class_exists( 'WP_List_Table' ) ) require( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); 18 18 19 require dirname( __FILE__ ) . '/classes/class-bp-groups-list-table.php'; 19 if ( ! buddypress()->do_autoload ) { 20 require dirname( __FILE__ ) . '/classes/class-bp-groups-list-table.php'; 21 } 20 22 21 23 // The per_page screen option. Has to be hooked in extremely early. -
trunk/src/bp-groups/bp-groups-loader.php
r10520 r10652 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 require dirname( __FILE__ ) . '/classes/class-bp-groups-component.php'; 17 if ( ! buddypress()->do_autoload ) { 18 require dirname( __FILE__ ) . '/classes/class-bp-groups-component.php'; 19 } 18 20 19 21 /** -
trunk/src/bp-groups/bp-groups-screens.php
r10520 r10652 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 require dirname( __FILE__ ) . '/classes/class-bp-groups-theme-compat.php'; 17 if ( ! buddypress()->do_autoload ) { 18 require dirname( __FILE__ ) . '/classes/class-bp-groups-theme-compat.php'; 19 } 18 20 19 21 /** -
trunk/src/bp-groups/bp-groups-template.php
r10562 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-groups-template.php'; 14 require dirname( __FILE__ ) . '/classes/class-bp-groups-group-members-template.php'; 15 require dirname( __FILE__ ) . '/classes/class-bp-groups-membership-requests-template.php'; 16 require dirname( __FILE__ ) . '/classes/class-bp-groups-invite-template.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-groups-template.php'; 15 require dirname( __FILE__ ) . '/classes/class-bp-groups-group-members-template.php'; 16 require dirname( __FILE__ ) . '/classes/class-bp-groups-membership-requests-template.php'; 17 require dirname( __FILE__ ) . '/classes/class-bp-groups-invite-template.php'; 18 } 17 19 18 20 /** -
trunk/src/bp-groups/bp-groups-widgets.php
r10520 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-groups-widget.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-groups-widget.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-groups/classes/class-bp-groups-component.php
r10555 r10652 108 108 'filters', 109 109 'screens', 110 'classes',111 110 'widgets', 112 111 'activity', … … 116 115 'notifications' 117 116 ); 117 118 if ( ! buddypress()->do_autoload ) { 119 $includes[] = 'classes'; 120 } 118 121 119 122 if ( is_admin() ) { -
trunk/src/bp-loader.php
r10628 r10652 102 102 public $active_components = array(); 103 103 104 /** 105 * Whether autoload is in use. 106 * 107 * @since 2.5.0 108 * @var bool 109 */ 110 public $do_autoload = false; 111 104 112 /** Option Overload *******************************************************/ 105 113 … … 458 466 */ 459 467 private function includes() { 468 if ( function_exists( 'spl_autoload_register' ) ) { 469 spl_autoload_register( array( $this, 'autoload' ) ); 470 $this->do_autoload = true; 471 } 460 472 461 473 // Load the WP abstraction file so BuddyPress can run on all WordPress setups. … … 479 491 require( $this->plugin_dir . 'bp-core/bp-core-update.php' ); 480 492 require( $this->plugin_dir . 'bp-core/bp-core-options.php' ); 481 require( $this->plugin_dir . 'bp-core/bp-core-classes.php' );482 493 require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php' ); 483 494 require( $this->plugin_dir . 'bp-core/bp-core-filters.php' ); … … 489 500 require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php' ); 490 501 require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php' ); 491 require( $this->plugin_dir . 'bp-core/bp-core-component.php' );492 502 require( $this->plugin_dir . 'bp-core/bp-core-functions.php' ); 493 503 require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' ); 494 504 require( $this->plugin_dir . 'bp-core/bp-core-loader.php' ); 495 505 require( $this->plugin_dir . 'bp-core/bp-core-customizer-email.php' ); 506 507 if ( ! $this->do_autoload ) { 508 require( $this->plugin_dir . 'bp-core/bp-core-classes.php' ); 509 } 496 510 497 511 // Skip or load deprecated content … … 509 523 require( $this->plugin_dir . 'bp-core/deprecated/2.5.php' ); 510 524 } 525 } 526 527 /** 528 * Autoload classes. 529 * 530 * @since 2.5.0 531 * 532 * @param string $class 533 */ 534 public function autoload( $class ) { 535 $class_parts = explode( '_', strtolower( $class ) ); 536 537 if ( 'bp' !== $class_parts[0] ) { 538 return; 539 } 540 541 $components = array( 542 'activity', 543 'blogs', 544 'core', 545 'friends', 546 'groups', 547 'members', 548 'messages', 549 'notifications', 550 'settings', 551 'xprofile', 552 ); 553 554 // These classes don't have a name that matches their component. 555 $irregular_map = array( 556 'BP_Akismet' => 'activity', 557 558 'BP_Admin' => 'core', 559 'BP_Attachment_Avatar' => 'core', 560 'BP_Attachment_Cover_Image' => 'core', 561 'BP_Attachment' => 'core', 562 'BP_Button' => 'core', 563 'BP_Component' => 'core', 564 'BP_Date_Query' => 'core', 565 'BP_Email_Delivery' => 'core', 566 'BP_Email_Recipient' => 'core', 567 'BP_Email' => 'core', 568 'BP_Embed' => 'core', 569 'BP_Media_Extractor' => 'core', 570 'BP_Members_Suggestions' => 'core', 571 'BP_PHPMailer' => 'core', 572 'BP_Recursive_Query' => 'core', 573 'BP_Suggestions' => 'core', 574 'BP_Theme_Compat' => 'core', 575 'BP_User_Query' => 'core', 576 'BP_Walker_Category_Checklist' => 'core', 577 'BP_Walker_Nav_Menu_Checklist' => 'core', 578 'BP_Walker_Nav_Menu_Menu' => 'core', 579 580 'BP_Core_Friends_Widget' => 'friends', 581 582 'BP_Group_Extension' => 'groups', 583 'BP_Group_Member_Query' => 'groups', 584 585 'BP_Core_Members_Template' => 'members', 586 'BP_Core_Members_Widget' => 'members', 587 'BP_Core_Recently_Active_Widget' => 'members', 588 'BP_Core_Whos_Online_Widget' => 'members', 589 'BP_Registration_Theme_Compat' => 'members', 590 'BP_Signup' => 'members', 591 ); 592 593 $component = null; 594 595 // First check to see if the class is one without a properly namespaced name. 596 if ( isset( $irregular_map[ $class ] ) ) { 597 $component = $irregular_map[ $class ]; 598 599 // Next chunk is usually the component name. 600 } elseif ( in_array( $class_parts[1], $components, true ) ) { 601 $component = $class_parts[1]; 602 } 603 604 if ( ! $component ) { 605 return; 606 } 607 608 // Sanitize class name. 609 $class = strtolower( str_replace( '_', '-', $class ) ); 610 611 require dirname( __FILE__ ) . "/bp-{$component}/classes/class-{$class}.php"; 511 612 } 512 613 -
trunk/src/bp-members/bp-members-admin.php
r10521 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-members-admin.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-members-admin.php'; 15 } 14 16 15 17 // Load the BP Members admin. -
trunk/src/bp-members/bp-members-loader.php
r10521 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-members-component.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-members-component.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-members/bp-members-screens.php
r10521 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-members-theme-compat.php'; 16 require dirname( __FILE__ ) . '/classes/class-bp-registration-theme-compat.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-members-theme-compat.php'; 17 require dirname( __FILE__ ) . '/classes/class-bp-registration-theme-compat.php'; 18 } 17 19 18 20 /** -
trunk/src/bp-members/bp-members-template.php
r10521 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-core-members-template.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-core-members-template.php'; 17 } 16 18 17 19 /** -
trunk/src/bp-members/bp-members-widgets.php
r10521 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-core-members-widget.php'; 14 require dirname( __FILE__ ) . '/classes/class-bp-core-whos-online-widget.php'; 15 require dirname( __FILE__ ) . '/classes/class-bp-core-recently-active-widget.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-core-members-widget.php'; 15 require dirname( __FILE__ ) . '/classes/class-bp-core-whos-online-widget.php'; 16 require dirname( __FILE__ ) . '/classes/class-bp-core-recently-active-widget.php'; 17 } 16 18 17 19 /** -
trunk/src/bp-members/classes/class-bp-members-admin.php
r10613 r10652 1367 1367 if ( ! empty( $required ) ) { 1368 1368 require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' ); 1369 require_once( buddypress()->members->admin->admin_dir . 'bp-members-admin-classes.php' ); 1369 1370 if ( ! buddypress()->do_autoload ) { 1371 require_once( buddypress()->members->admin->admin_dir . 'bp-members-admin-classes.php' ); 1372 } 1370 1373 } 1371 1374 -
trunk/src/bp-members/classes/class-bp-members-component.php
r10521 r10652 55 55 $includes = array( 56 56 'actions', 57 'classes',58 57 'filters', 59 58 'screens', … … 64 63 'cache', 65 64 ); 65 66 if ( ! buddypress()->do_autoload ) { 67 $includes[] = 'classes'; 68 } 66 69 67 70 if ( bp_is_active( 'activity' ) ) { -
trunk/src/bp-messages/bp-messages-loader.php
r10522 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-messages-component.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-messages-component.php'; 17 } 16 18 17 19 /** -
trunk/src/bp-messages/bp-messages-template.php
r10522 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-messages-box-template.php'; 14 require dirname( __FILE__ ) . '/classes/class-bp-messages-thread-template.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-messages-box-template.php'; 15 require dirname( __FILE__ ) . '/classes/class-bp-messages-thread-template.php'; 16 } 15 17 16 18 /** -
trunk/src/bp-messages/bp-messages-widgets.php
r10522 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-messages-sitewide-notices-widget.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-messages-sitewide-notices-widget.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-messages/classes/class-bp-messages-component.php
r10555 r10652 61 61 'actions', 62 62 'screens', 63 'classes',64 63 'filters', 65 64 'template', … … 68 67 'widgets', 69 68 ); 69 70 if ( ! buddypress()->do_autoload ) { 71 $includes[] = 'classes'; 72 } 70 73 71 74 // Conditional includes. -
trunk/src/bp-notifications/bp-notifications-loader.php
r10523 r10652 13 13 defined( 'ABSPATH' ) || exit; 14 14 15 require dirname( __FILE__ ) . '/classes/class-bp-notifications-component.php'; 15 if ( ! buddypress()->do_autoload ) { 16 require dirname( __FILE__ ) . '/classes/class-bp-notifications-component.php'; 17 } 16 18 17 19 /** -
trunk/src/bp-notifications/bp-notifications-template.php
r10523 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-notifications-template.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-notifications-template.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r10555 r10652 46 46 $includes = array( 47 47 'actions', 48 'classes',49 48 'screens', 50 49 'adminbar', … … 53 52 'cache', 54 53 ); 54 55 if ( ! buddypress()->do_autoload ) { 56 $includes[] = 'classes'; 57 } 55 58 56 59 parent::includes( $includes ); -
trunk/src/bp-settings/bp-settings-loader.php
r10524 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-settings-component.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-settings-component.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-xprofile/bp-xprofile-admin.php
r10557 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-xprofile-user-admin.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-xprofile-user-admin.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-xprofile/bp-xprofile-loader.php
r10525 r10652 14 14 defined( 'ABSPATH' ) || exit; 15 15 16 require dirname( __FILE__ ) . '/classes/class-bp-xprofile-component.php'; 16 if ( ! buddypress()->do_autoload ) { 17 require dirname( __FILE__ ) . '/classes/class-bp-xprofile-component.php'; 18 } 17 19 18 20 /** -
trunk/src/bp-xprofile/bp-xprofile-template.php
r10525 r10652 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 require dirname( __FILE__ ) . '/classes/class-bp-xprofile-data-template.php'; 13 if ( ! buddypress()->do_autoload ) { 14 require dirname( __FILE__ ) . '/classes/class-bp-xprofile-data-template.php'; 15 } 14 16 15 17 /** -
trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php
r10555 r10652 67 67 'screens', 68 68 'caps', 69 'classes',70 69 'filters', 71 70 'settings', … … 74 73 'notifications', 75 74 ); 75 76 if ( ! buddypress()->do_autoload ) { 77 $includes[] = 'classes'; 78 } 76 79 77 80 if ( is_admin() ) {
Note: See TracChangeset
for help on using the changeset viewer.