- Timestamp:
- 11/03/2016 02:17:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39096 r39105 1103 1103 ), 1104 1104 'context' => array( 'edit' ), 1105 'arg_options' => array(1106 'sanitize_callback' => 'wp_parse_slug_list',1107 ),1108 1105 ), 1109 1106 'password' => array( … … 1172 1169 'description' => __( 'Ensure result set excludes specific ids.' ), 1173 1170 'type' => 'array', 1171 'items' => array( 1172 'type' => 'integer', 1173 ), 1174 1174 'default' => array(), 1175 'sanitize_callback' => 'wp_parse_id_list',1176 1175 ); 1177 1176 … … 1179 1178 'description' => __( 'Limit result set to specific ids.' ), 1180 1179 'type' => 'array', 1180 'items' => array( 1181 'type' => 'integer', 1182 ), 1181 1183 'default' => array(), 1182 'sanitize_callback' => 'wp_parse_id_list',1183 1184 ); 1184 1185 … … 1186 1187 'description' => __( 'Offset the result set by a specific number of items.' ), 1187 1188 'type' => 'integer', 1188 'sanitize_callback' => 'absint',1189 'validate_callback' => 'rest_validate_request_arg',1190 1189 ); 1191 1190 … … 1194 1193 'description' => __( 'Order sort attribute ascending or descending.' ), 1195 1194 'enum' => array( 'asc', 'desc' ), 1196 'sanitize_callback' => 'sanitize_key',1197 1195 'type' => 'string', 1198 'validate_callback' => 'rest_validate_request_arg',1199 1196 ); 1200 1197 … … 1211 1208 'url', 1212 1209 ), 1213 'sanitize_callback' => 'sanitize_key',1214 1210 'type' => 'string', 1215 'validate_callback' => 'rest_validate_request_arg',1216 1211 ); 1217 1212 … … 1219 1214 'description' => __( 'Limit result set to resources with a specific slug.' ), 1220 1215 'type' => 'string', 1221 'validate_callback' => 'rest_validate_request_arg',1222 1216 ); 1223 1217 … … 1225 1219 'description' => __( 'Limit result set to resources matching at least one specific role provided. Accepts csv list or single role.' ), 1226 1220 'type' => 'array', 1227 'sanitize_callback' => 'wp_parse_slug_list', 1221 'items' => array( 1222 'type' => 'string', 1223 ), 1228 1224 ); 1229 1225
Note: See TracChangeset
for help on using the changeset viewer.