Skip to:
Content

BuddyPress.org

Ticket #7919: 7919.patch

File 7919.patch, 1.6 KB (added by wbcomdesigns, 17 months ago)

my suggestion to fix it

  • src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php

    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  
    7171                <?php foreach ( $group_types as $type ) : ?>
    7272                        <div class="checkbox">
    7373                                <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'] ); ?>
    7575                                        <?php
    7676                                        if ( ! empty( $type->description ) ) {
    7777                                                printf( '&ndash; %s', '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );