4956 | | $checked = in_array( (int) $friends[ $i ]['id'], (array) $invites ); |
4957 | | $items[] = '<' . $r['separator'] . '><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'] ) . '</' . $r['separator'] . '>'; |
| 4956 | |
| 4957 | $checked = ( in_array( (int) $friends[ $i ]['id'], (array) $invites ) )? $friends[ $i ]['id'] : ''; |
| 4958 | |
| 4959 | $items[] = '<' . $r['separator'] . '><label for="f-' . esc_attr( $friends[ $i ]['id'] ) . '"><input ' . checked( $checked, esc_attr( $friends[ $i ]['id'] ), 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'] . '>'; |