Changeset 5676 for trunk/src/includes/common/classes.php
- Timestamp:
- 04/15/2015 02:33:11 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/common/classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/classes.php
r5466 r5676 61 61 * @since bbPress (r2700) 62 62 * 63 * @param mixed$args Required. Supports these args:63 * @param array $args Required. Supports these args: 64 64 * - name: Unique name (for internal identification) 65 65 * - id: Unique ID (normally for custom post type) … … 71 71 * @uses BBP_Component::setup_actions() Setup the hooks and actions 72 72 */ 73 public function __construct( $args = '') {73 public function __construct( $args = array() ) { 74 74 if ( empty( $args ) ) { 75 75 return; … … 90 90 * @uses apply_filters() Calls 'bbp_{@link BBP_Component::name}_slug' 91 91 */ 92 private function setup_globals( $args = '') {92 private function setup_globals( $args = array() ) { 93 93 $this->name = $args['name']; 94 94 $this->id = apply_filters( 'bbp_' . $this->name . '_id', $args['id'] );
Note: See TracChangeset
for help on using the changeset viewer.