Ticket #6853: 6853.03.patch
File 6853.03.patch, 30.4 KB (added by , 9 years ago) |
---|
-
src/bp-activity/bp-activity-admin.php
16 16 // Include WP's list table class. 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. 22 24 if ( is_admin() && ! empty( $_REQUEST['page'] ) && 'bp-activity' == $_REQUEST['page'] ) -
src/bp-activity/bp-activity-akismet.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Delete old spam activity meta data. -
src/bp-activity/bp-activity-loader.php
12 12 // Exit if accessed directly. 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 /** 18 20 * Bootstrap the Activity component. -
src/bp-activity/bp-activity-screens.php
14 14 // Exit if accessed directly. 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 /** 20 22 * Load the Activity directory. -
src/bp-activity/bp-activity-template.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Output the activity component slug. -
src/bp-activity/classes/class-bp-activity-component.php
53 53 'actions', 54 54 'screens', 55 55 'filters', 56 'classes',57 56 'template', 58 57 'functions', 59 58 'notifications', 60 59 'cache' 61 60 ); 62 61 62 if ( ! buddypress()->do_autoload ) { 63 $includes[] = 'classes'; 64 } 65 63 66 // Load Akismet support if Akismet is configured. 64 67 $akismet_key = bp_get_option( 'wordpress_api_key' ); 65 68 -
src/bp-blogs/bp-blogs-loader.php
14 14 // Exit if accessed directly. 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 /** 20 22 * Set up the bp-blogs component. -
src/bp-blogs/bp-blogs-screens.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Load the "My Blogs" screen. -
src/bp-blogs/bp-blogs-template.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Output the blogs component slug. -
src/bp-blogs/bp-blogs-widgets.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Register the widgets for the Blogs component. -
src/bp-blogs/classes/class-bp-blogs-component.php
122 122 'cache', 123 123 'actions', 124 124 'screens', 125 'classes',126 125 'template', 127 126 'filters', 128 127 'functions', 129 128 ); 130 129 130 if ( ! buddypress()->do_autoload ) { 131 $includes[] = 'classes'; 132 } 133 131 134 if ( bp_is_active( 'activity' ) ) { 132 135 $includes[] = 'activity'; 133 136 } -
src/bp-core/bp-core-admin.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Setup BuddyPress Admin. -
src/bp-core/bp-core-component.php
10 10 // Exit if accessed directly. 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 } -
src/bp-core/bp-core-customizer-email.php
47 47 /** 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 /** 53 55 * Fires to let plugins register extra Customizer controls for emails. -
src/bp-core/bp-core-loader.php
12 12 // Exit if accessed directly. 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 /** 18 21 * Set up the BuddyPress Core component. -
src/bp-core/bp-core-theme-compatibility.php
24 24 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 *****************************************************************/ 30 32 -
src/bp-core/bp-core-widgets.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Register bp-core widgets. -
src/bp-core/classes/class-bp-admin.php
120 120 * @since 1.6.0 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' ); 126 129 require( $this->admin_dir . 'bp-core-admin-functions.php' ); -
src/bp-friends/bp-friends-loader.php
12 12 // Exit if accessed directly. 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 /** 18 20 * Set up the bp-forums component. -
src/bp-friends/bp-friends-widgets.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Register the friends widget. -
src/bp-friends/classes/class-bp-friends-component.php
46 46 'actions', 47 47 'screens', 48 48 'filters', 49 'classes',50 49 'activity', 51 50 'template', 52 51 'functions', … … 54 53 'widgets', 55 54 ); 56 55 56 if ( ! buddypress()->do_autoload ) { 57 $includes[] = 'classes'; 58 } 59 57 60 parent::includes( $includes ); 58 61 } 59 62 -
src/bp-groups/bp-groups-admin.php
16 16 // Include WP's list table class. 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. 22 24 if ( is_admin() && ! empty( $_REQUEST['page'] ) && 'bp-groups' == $_REQUEST['page'] ) -
src/bp-groups/bp-groups-loader.php
14 14 // Exit if accessed directly. 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 /** 20 22 * Bootstrap the Notifications component. -
src/bp-groups/bp-groups-screens.php
14 14 // Exit if accessed directly. 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 /** 20 22 * Handle the display of the Groups directory index. -
src/bp-groups/bp-groups-template.php
10 10 // Exit if accessed directly. 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 /** 19 21 * Output the groups component slug. -
src/bp-groups/bp-groups-widgets.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Register widgets for groups component. -
src/bp-groups/classes/class-bp-groups-component.php
107 107 'actions', 108 108 'filters', 109 109 'screens', 110 'classes',111 110 'widgets', 112 111 'activity', 113 112 'template', … … 116 115 'notifications' 117 116 ); 118 117 118 if ( ! buddypress()->do_autoload ) { 119 $includes[] = 'classes'; 120 } 121 119 122 if ( is_admin() ) { 120 123 $includes[] = 'admin'; 121 124 } -
src/bp-loader.php
101 101 */ 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 106 114 /** … … 457 465 * @uses is_admin() If in WordPress admin, load additional file. 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. 462 474 require( $this->plugin_dir . 'bp-core/bp-core-wpabstraction.php' ); … … 478 490 require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php' ); 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' ); 484 495 require( $this->plugin_dir . 'bp-core/bp-core-attachments.php' ); … … 488 499 require( $this->plugin_dir . 'bp-core/bp-core-adminbar.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' ); 496 506 507 if ( ! $this->do_autoload ) { 508 require( $this->plugin_dir . 'bp-core/bp-core-classes.php' ); 509 } 510 497 511 // Skip or load deprecated content 498 512 if ( false !== $this->load_deprecated ) { 499 513 require( $this->plugin_dir . 'bp-core/deprecated/1.2.php' ); … … 511 525 } 512 526 513 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"; 612 } 613 614 /** 514 615 * Set up the default hooks and actions. 515 616 * 516 617 * @since 1.6.0 -
src/bp-members/bp-members-admin.php
10 10 // Exit if accessed directly. 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. 16 18 add_action( 'bp_init', array( 'BP_Members_Admin', 'register_members_admin' ) ); -
src/bp-members/bp-members-loader.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Set up the bp-members component. -
src/bp-members/bp-members-screens.php
12 12 // Exit if accessed directly. 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 /** 19 21 * Handle the display of the profile page by loading the correct template file. -
src/bp-members/bp-members-template.php
12 12 // Exit if accessed directly. 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 /** 18 20 * Output the profile component slug. -
src/bp-members/bp-members-widgets.php
10 10 // Exit if accessed directly. 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 /** 18 20 * Register bp-members widgets. -
src/bp-members/classes/class-bp-members-admin.php
1365 1365 1366 1366 if ( ! empty( $required ) ) { 1367 1367 require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' ); 1368 require_once( buddypress()->members->admin->admin_dir . 'bp-members-admin-classes.php' ); 1368 1369 if ( ! buddypress()->do_autoload ) { 1370 require_once( buddypress()->members->admin->admin_dir . 'bp-members-admin-classes.php' ); 1371 } 1369 1372 } 1370 1373 1371 1374 return new $class(); -
src/bp-members/classes/class-bp-members-component.php
54 54 // Always include these files. 55 55 $includes = array( 56 56 'actions', 57 'classes',58 57 'filters', 59 58 'screens', 60 59 'template', … … 64 63 'cache', 65 64 ); 66 65 66 if ( ! buddypress()->do_autoload ) { 67 $includes[] = 'classes'; 68 } 69 67 70 if ( bp_is_active( 'activity' ) ) { 68 71 $includes[] = 'activity'; 69 72 } -
src/bp-messages/bp-messages-loader.php
12 12 // Exit if accessed directly. 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 /** 18 20 * Bootstrap the Messages component. -
src/bp-messages/bp-messages-template.php
10 10 // Exit if accessed directly. 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 /** 17 19 * Retrieve private message threads for display in inbox/sentbox/notices. -
src/bp-messages/bp-messages-widgets.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Register widgets for the Messages component. -
src/bp-messages/classes/class-bp-messages-component.php
60 60 'cache', 61 61 'actions', 62 62 'screens', 63 'classes',64 63 'filters', 65 64 'template', 66 65 'functions', … … 68 67 'widgets', 69 68 ); 70 69 70 if ( ! buddypress()->do_autoload ) { 71 $includes[] = 'classes'; 72 } 73 71 74 // Conditional includes. 72 75 if ( bp_is_active( $this->id, 'star' ) ) { 73 76 $includes[] = 'star'; -
src/bp-notifications/bp-notifications-loader.php
12 12 // Exit if accessed directly. 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 /** 18 20 * Bootstrap the Notifications component. -
src/bp-notifications/bp-notifications-template.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Output the notifications component slug. -
src/bp-notifications/classes/class-bp-notifications-component.php
45 45 public function includes( $includes = array() ) { 46 46 $includes = array( 47 47 'actions', 48 'classes',49 48 'screens', 50 49 'adminbar', 51 50 'template', … … 53 52 'cache', 54 53 ); 55 54 55 if ( ! buddypress()->do_autoload ) { 56 $includes[] = 'classes'; 57 } 58 56 59 parent::includes( $includes ); 57 60 } 58 61 -
src/bp-settings/bp-settings-loader.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Instantiates the settings component. -
src/bp-xprofile/bp-xprofile-admin.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Creates the administration interface menus and checks to see if the DB -
src/bp-xprofile/bp-xprofile-loader.php
13 13 // Exit if accessed directly. 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 /** 19 21 * Bootstrap the XProfile component. -
src/bp-xprofile/bp-xprofile-template.php
10 10 // Exit if accessed directly. 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 /** 16 18 * Query for XProfile groups and fields. -
src/bp-xprofile/classes/class-bp-xprofile-component.php
66 66 'activity', 67 67 'screens', 68 68 'caps', 69 'classes',70 69 'filters', 71 70 'settings', 72 71 'template', … … 74 73 'notifications', 75 74 ); 76 75 76 if ( ! buddypress()->do_autoload ) { 77 $includes[] = 'classes'; 78 } 79 77 80 if ( is_admin() ) { 78 81 $includes[] = 'admin'; 79 82 }