From c3e8fe41ef31db39e238bb064c8113e0219ec69e Mon Sep 17 00:00:00 2001
From: Varun Kumar Dubey <vapvarun@gmail.com>
Date: Sat, 7 Jul 2018 11:08:37 +0530
Subject: [PATCH] added create_screen_checked parameter
---
.../bp-nouveau/buddypress/groups/single/admin/group-settings.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php b/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php
index 6a02a2179..937375277 100644
|
a
|
b
|
|
| 71 | 71 | <?php foreach ( $group_types as $type ) : ?> |
| 72 | 72 | <div class="checkbox"> |
| 73 | 73 | <label for="<?php printf( 'group-type-%s', $type->name ); ?>"> |
| 74 | | <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?> |
| | 74 | <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( true, ! empty( $type->create_screen_checked ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?> |
| 75 | 75 | <?php |
| 76 | 76 | if ( ! empty( $type->description ) ) { |
| 77 | 77 | printf( '– %s', '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' ); |