- Timestamp:
- 11/03/2024 05:55:47 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp-messages-rest-controller.php
r14061 r14069 125 125 'type' => $request->get_param( 'type' ), 126 126 'page' => $request->get_param( 'page' ), 127 'includes' => $request->get_param( 'includes' ), 127 128 'per_page' => $request->get_param( 'per_page' ), 128 129 'search_terms' => $request->get_param( 'search' ), … … 1540 1541 1541 1542 $params['box'] = array( 1542 'description' => __( 'Filter th e result by box.', 'buddypress' ),1543 'description' => __( 'Filter threads by the mailbox type.', 'buddypress' ), 1543 1544 'default' => 'inbox', 1544 1545 'type' => 'string', … … 1549 1550 1550 1551 $params['type'] = array( 1551 'description' => __( 'Filter th e result by threadstatus.', 'buddypress' ),1552 'description' => __( 'Filter threads by the status.', 'buddypress' ), 1552 1553 'default' => 'all', 1553 1554 'type' => 'string', … … 1563 1564 'required' => true, 1564 1565 'sanitize_callback' => 'absint', 1566 'validate_callback' => 'rest_validate_request_arg', 1567 ); 1568 1569 $params['includes'] = array( 1570 'description' => __( 'Filter threads by recipient IDs.', 'buddypress' ), 1571 'default' => array(), 1572 'type' => 'array', 1573 'sanitize_callback' => 'wp_parse_id_list', 1565 1574 'validate_callback' => 'rest_validate_request_arg', 1566 1575 );
Note: See TracChangeset
for help on using the changeset viewer.