PluginProbe
bbPress / 2.6.19
bbPress v2.6.19
2.6.19 2.6.18 2.6.17 trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 All 74 releases
← All changes | includes/extend/buddypress/loader.php +14 -21 trunk → 2.6.19 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 /**
4 - * bbPress BuddyPress Component Class.
4 + * bbPress BuddyPress Component Class
5 5 *
6 6 * bbPress and BuddyPress are designed to connect together seamlessly and
7 7 * invisibly, and this is the hunk of code necessary to make that happen.
8 8 *
@@ -21,9 +21,9 @@
21 21 defined( 'ABSPATH' ) || exit;
22 22
23 23 if ( ! class_exists( 'BBP_Forums_Component' ) ) :
24 24 /**
25 - * Loads Forums Component.
25 + * Loads Forums Component
26 26 *
27 27 * @since 2.1.0 bbPress (r3552)
28 28 *
29 29 * @package bbPress
@@ -31,11 +31,11 @@
31 31 */
32 32 class BBP_Forums_Component extends BP_Component {
33 33
34 34 /**
35 - * BuddyPress Members component shim.
35 + * BuddyPress Members component shim
36 36 *
37 - * @since 2.6.14 bbPress (r7305)
37 + * @since 2.6.14 bbPress (r7306)
38 38 *
39 39 * @var void|BBP_BuddyPress_Members
40 40 */
41 41 public $members;
@@ -40,11 +40,11 @@
40 40 */
41 41 public $members;
42 42
43 43 /**
44 - * BuddyPress Activity component shim.
44 + * BuddyPress Activity component shim
45 45 *
46 - * @since 2.6.14 bbPress (r7305)
46 + * @since 2.6.14 bbPress (r7306)
47 47 *
48 48 * @var void|BBP_BuddyPress_Members
49 49 */
50 50 public $activity;
@@ -49,9 +49,9 @@
49 49 */
50 50 public $activity;
51 51
52 52 /**
53 - * Start the forums component creation process.
53 + * Start the forums component creation process
54 54 *
55 55 * @since 2.1.0 bbPress (r3552)
56 56 */
57 57 public function __construct() {
@@ -66,9 +66,9 @@
66 66 $this->fully_loaded();
67 67 }
68 68
69 69 /**
70 - * Include BuddyPress classes and functions.
70 + * Include BuddyPress classes and functions
71 71 */
72 72 public function includes( $includes = array() ) {
73 73
74 74 // Helper BuddyPress functions
@@ -93,10 +93,8 @@
93 93 }
94 94
95 95 // Require files if they exist
96 96 foreach ( $includes as $file ) {
97 -
98 - // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
99 97 if ( @is_file( $this->path . $file ) ) {
100 98 require $this->path . $file;
101 99 }
102 100 }
@@ -109,9 +107,9 @@
109 107 do_action( "bp_{$this->id}_includes" );
110 108 }
111 109
112 110 /**
113 - * Setup globals.
111 + * Setup globals
114 112 *
115 113 * The BP_FORUMS_SLUG constant is deprecated, and only used here for
116 114 * backwards compatibility.
117 115 *
@@ -142,9 +140,9 @@
142 140 parent::setup_globals( $args );
143 141 }
144 142
145 143 /**
146 - * Setup the actions.
144 + * Setup the actions
147 145 *
148 146 * @since 2.2.0 bbPress (r4397)
149 147 *
150 148 * @access private
@@ -154,18 +152,13 @@
154 152
155 153 // Setup the components
156 154 add_action( 'bp_init', array( $this, 'setup_components' ), 7 );
157 155
158 - /** Dependencies ******************************************************/
159 -
160 - // Allow plugins to modify these actions
161 - do_action_ref_array( 'bbp_extend_buddypress_loaded', array( &$this ) );
162 -
163 156 parent::setup_actions();
164 157 }
165 158
166 159 /**
167 - * Instantiate classes for BuddyPress integration.
160 + * Instantiate classes for BuddyPress integration
168 161 *
169 162 * @since 2.6.0 bbPress (r5271)
170 163 */
171 164 public function setup_components() {
@@ -194,9 +187,9 @@
194 187 do_action_ref_array( 'bbp_buddypress_loaded', array( $this ) );
195 188 }
196 189
197 190 /**
198 - * Setup BuddyBar navigation.
191 + * Setup BuddyBar navigation
199 192 *
200 193 * @since 2.1.0 bbPress (r3552)
201 194 */
202 195 public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
@@ -295,9 +288,9 @@
295 288 parent::setup_nav( $main_nav, $sub_nav );
296 289 }
297 290
298 291 /**
299 - * Set up the admin bar.
292 + * Set up the admin bar
300 293 *
301 294 * @since 2.1.0 bbPress (r3552)
302 295 */
303 296 public function setup_admin_bar( $wp_admin_nav = array() ) {
@@ -387,9 +380,9 @@
387 380 parent::setup_admin_bar( $wp_admin_nav );
388 381 }
389 382
390 383 /**
391 - * Sets up the title for pages and <title>.
384 + * Sets up the title for pages and <title>
392 385 *
393 386 * @since 2.1.0 bbPress (r3552)
394 387 */
395 388 public function setup_title() {