Changeset 13903 for trunk/src/bp-core/bp-core-rest-api.php
- Timestamp:
- 06/04/2024 02:30:49 AM (18 months ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-rest-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-rest-api.php
r13890 r13903 302 302 * @since 5.0.0 303 303 * 304 * @param array|string $ listList of strings.304 * @param array|string $collection List of strings. 305 305 * @return array Sanitized array of strings. 306 306 */ 307 function bp_rest_sanitize_string_list( $ list) {308 if ( ! is_array( $ list) ) {309 $ list = preg_split( '/[\s,]+/', $list);310 } 311 312 return array_unique( array_map( 'sanitize_text_field', $ list) );307 function bp_rest_sanitize_string_list( $collection ) { 308 if ( ! is_array( $collection ) ) { 309 $collection = preg_split( '/[\s,]+/', $collection ); 310 } 311 312 return array_unique( array_map( 'sanitize_text_field', $collection ) ); 313 313 } 314 314
Note: See TracChangeset
for help on using the changeset viewer.