File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,17 +153,17 @@ function validate_parameters( $params ) {
153
153
if ( empty ( $ params ['name ' ] ) ) {
154
154
return new WP_Error ( 'rest_oauth2_missing_name ' , __ ( 'Client name is required ' , 'oauth2 ' ) );
155
155
}
156
- $ valid ['name ' ] = wp_filter_post_kses ( $ params ['name ' ] );
156
+ $ valid ['name ' ] = wp_kses_post ( $ params ['name ' ] );
157
157
158
158
if ( empty ( $ params ['description ' ] ) ) {
159
159
return new WP_Error ( 'rest_oauth2_missing_description ' , __ ( 'Client description is required ' , 'oauth2 ' ) );
160
160
}
161
- $ valid ['description ' ] = wp_filter_post_kses ( $ params ['description ' ] );
161
+ $ valid ['description ' ] = wp_kses_post ( $ params ['description ' ] );
162
162
163
163
if ( empty ( $ params ['type ' ] ) ) {
164
164
return new WP_Error ( 'rest_oauth2_missing_type ' , __ ( 'Type is required. ' , 'oauth2 ' ) );
165
165
}
166
- $ valid ['type ' ] = wp_filter_post_kses ( $ params ['type ' ] );
166
+ $ valid ['type ' ] = wp_kses_post ( $ params ['type ' ] );
167
167
168
168
if ( empty ( $ params ['callback ' ] ) ) {
169
169
return new WP_Error ( 'rest_oauth2_missing_callback ' , __ ( 'Client callback is required and must be a valid URL. ' , 'oauth2 ' ) );
You can’t perform that action at this time.
0 commit comments