Changeset 39401
- Timestamp:
- 12/01/2016 02:18:41 AM (8 years ago)
- Location:
- branches/4.7/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7/src/wp-includes/rest-api.php
r39329 r39401 841 841 $args = $attributes['args'][ $param ]; 842 842 843 return rest_sanitize_value_from_schema( $value, $args , $param);843 return rest_sanitize_value_from_schema( $value, $args ); 844 844 } 845 845 -
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39348 r39401 1028 1028 */ 1029 1029 public function check_username( $value, $request, $param ) { 1030 $username = (string) rest_sanitize_value_from_schema( $value, $request, $param );1030 $username = (string) $value; 1031 1031 1032 1032 if ( ! validate_username( $username ) ) { … … 1057 1057 */ 1058 1058 public function check_user_password( $value, $request, $param ) { 1059 $password = (string) rest_sanitize_value_from_schema( $value, $request, $param );1059 $password = (string) $value; 1060 1060 1061 1061 if ( empty( $password ) ) {
Note: See TracChangeset
for help on using the changeset viewer.