@@ -35,7 +35,7 @@ |
||
35 | 35 | bp_core_new_subnav_item( |
36 | 36 | array( |
37 | 37 | 'slug' => $slug, |
38 | - 'name' => $points_type['name'], |
|
38 | + 'name' => $points_type[ 'name' ], |
|
39 | 39 | 'screen_function' => 'wordpoints_bp_points_members_profile_screen', |
40 | 40 | 'parent_url' => bp_displayed_user_domain() . 'points/', |
41 | 41 | 'parent_slug' => 'points', |
@@ -26,7 +26,7 @@ |
||
26 | 26 | ); |
27 | 27 | |
28 | 28 | if ( isset( $map[ $arg_slug ] ) ) { |
29 | - return $this->args[0][ $map[ $arg_slug ] ]; |
|
29 | + return $this->args[ 0 ][ $map[ $arg_slug ] ]; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | return parent::get_arg_value( $arg_slug ); |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function __construct( $slug, array $action_args, array $args = array() ) { |
30 | 30 | |
31 | - if ( isset( $args['bp_avatar_object_type'] ) ) { |
|
32 | - $this->bp_avatar_object_type = $args['bp_avatar_object_type']; |
|
31 | + if ( isset( $args[ 'bp_avatar_object_type' ] ) ) { |
|
32 | + $this->bp_avatar_object_type = $args[ 'bp_avatar_object_type' ]; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | parent::__construct( $slug, $action_args, $args ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function should_fire() { |
42 | 42 | |
43 | - if ( $this->bp_avatar_object_type !== $this->args[0]['object'] ) { |
|
43 | + if ( $this->bp_avatar_object_type !== $this->args[ 0 ][ 'object' ] ) { |
|
44 | 44 | return false; |
45 | 45 | } |
46 | 46 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | if ( $arg_slug === $expected_arg_slug ) { |
64 | - return $this->args[0]['item_id']; |
|
64 | + return $this->args[ 0 ][ 'item_id' ]; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | return parent::get_arg_value( $arg_slug ); |
@@ -28,8 +28,8 @@ |
||
28 | 28 | */ |
29 | 29 | public function __construct( $slug, array $action_args, array $args = array() ) { |
30 | 30 | |
31 | - if ( isset( $args['activity_type'] ) ) { |
|
32 | - $this->activity_type = $args['activity_type']; |
|
31 | + if ( isset( $args[ 'activity_type' ] ) ) { |
|
32 | + $this->activity_type = $args[ 'activity_type' ]; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | parent::__construct( $slug, $action_args, $args ); |