- Timestamp:
- 11/13/2021 06:40:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-friends-friendship.php
r13108 r13147 258 258 * @type int $is_limited Whether the friendship is limited. 259 259 * @type string $order_by Column name to order by. 260 * @type string $sort_order ASC or DESC. Default DESC.260 * @type string $sort_order Optional. ASC or DESC. Default: 'DESC'. 261 261 * } 262 262 * @param string $operator Optional. Operator to use in `wp_list_filter()`. … … 370 370 371 371 // Adjust the sort direction of the results. 372 if ( 'ASC' === strtoupper( $r['sort_order'] ) ) {372 if ( 'ASC' === bp_esc_sql_order( $r['sort_order'] ) ) { 373 373 // `true` to preserve keys. 374 374 $friendships = array_reverse( $friendships, true );
Note: See TracChangeset
for help on using the changeset viewer.