Changeset 12107 for trunk/src/bp-templates/bp-nouveau/includes/classes.php
- Timestamp:
- 05/21/2018 01:14:05 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/classes.php
r12104 r12107 45 45 public function __construct( $args = array() ) { 46 46 foreach ( $args as $arg ) { 47 $r = wp_parse_args( (array) $arg, array( 48 'id' => '', 49 'position' => 99, 50 'component' => '', 51 'must_be_logged_in' => true, 52 'block_self' => false, 53 'parent_element' => false, 54 'parent_attr' => array(), 55 'button_element' => 'a', 56 'button_attr' => array(), 57 'link_text' => '', 58 ) ); 47 $r = bp_parse_args( 48 (array) $arg, 49 array( 50 'id' => '', 51 'position' => 99, 52 'component' => '', 53 'must_be_logged_in' => true, 54 'block_self' => false, 55 'parent_element' => false, 56 'parent_attr' => array(), 57 'button_element' => 'a', 58 'button_attr' => array(), 59 'link_text' => '', 60 ), 61 'buttons_group_constructor' 62 ); 59 63 60 64 // Just don't set the button if a param is missing … … 164 168 foreach ( $args as $id => $params ) { 165 169 if ( isset( $this->group[ $id ] ) ) { 166 $this->group[ $id ] = wp_parse_args( $params, $this->group[ $id ] ); 170 $this->group[ $id ] = bp_parse_args( 171 $params, 172 $this->group[ $id ], 173 'buttons_group_update' 174 ); 167 175 } 168 176 } … … 229 237 * } 230 238 */ 231 $item_nav_args = wp_parse_args( $instance, apply_filters( 'bp_nouveau_object_nav_widget_args', array( 232 'bp_nouveau_widget_title' => true, 233 ) ) ); 239 $item_nav_args = bp_parse_args( 240 $instance, 241 apply_filters( 242 'bp_nouveau_object_nav_widget_args', 243 array( 'bp_nouveau_widget_title' => true ) 244 ), 245 'widget_object_nav' 246 ); 234 247 235 248 $title = ''; … … 304 317 ); 305 318 306 $instance = wp_parse_args( (array) $instance, $defaults ); 319 $instance = bp_parse_args( 320 (array) $instance, 321 $defaults, 322 'widget_object_nav_form' 323 ); 307 324 308 325 $bp_nouveau_widget_title = (bool) $instance['bp_nouveau_widget_title'];
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)