Sanitizes and validates the list of theme status.
Parameters
$statuses
string|arrayrequired- One or more theme statuses.
$request
WP_REST_Requestrequired- Full details about the request.
$parameter
stringrequired- Additional parameter to pass to validation.
Source
public function sanitize_theme_status( $statuses, $request, $parameter ) {
_deprecated_function( __METHOD__, '5.7.0' );
$statuses = wp_parse_slug_list( $statuses );
foreach ( $statuses as $status ) {
$result = rest_validate_request_arg( $status, $request, $parameter );
if ( is_wp_error( $result ) ) {
return $result;
}
}
return $statuses;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.