Skip to:
Content

BuddyPress.org

Changeset 10240


Ignore:
Timestamp:
10/11/2015 02:59:57 AM (9 years ago)
Author:
boonebgorges
Message:

Don't echo results of checked() when building group invite list.

Props hnla, DJPaul.
Fixes #6608.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r10185 r10240  
    50395039            for ( $i = 0, $count = count( $friends ); $i < $count; ++$i ) {
    50405040                $checked = in_array( (int) $friends[ $i ]['id'], (array) $invites );
    5041                 $items[] = '<' . $r['separator'] . '><label for="f-' . esc_attr( $friends[ $i ]['id'] ) . '"><input' . checked( $checked ) . ' type="checkbox" name="friends[]" id="f-' . esc_attr( $friends[ $i ]['id'] ) . '" value="' . esc_attr( $friends[ $i ]['id'] ) . '" /> ' . esc_html( $friends[ $i ]['full_name'] ) . '</label></' . $r['separator'] . '>';
     5041                $items[] = '<' . $r['separator'] . '><label for="f-' . esc_attr( $friends[ $i ]['id'] ) . '"><input' . checked( $checked, true, false ) . ' type="checkbox" name="friends[]" id="f-' . esc_attr( $friends[ $i ]['id'] ) . '" value="' . esc_attr( $friends[ $i ]['id'] ) . '" /> ' . esc_html( $friends[ $i ]['full_name'] ) . '</label></' . $r['separator'] . '>';
    50425042            }
    50435043        }
Note: See TracChangeset for help on using the changeset viewer.