- 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-terms-controller.php
r39033 r39105 888 888 'description' => __( 'Ensure result set excludes specific ids.' ), 889 889 'type' => 'array', 890 'items' => array( 891 'type' => 'integer', 892 ), 890 893 'default' => array(), 891 'sanitize_callback' => 'wp_parse_id_list',892 894 ); 893 895 … … 895 897 'description' => __( 'Limit result set to specific ids.' ), 896 898 'type' => 'array', 899 'items' => array( 900 'type' => 'integer', 901 ), 897 902 'default' => array(), 898 'sanitize_callback' => 'wp_parse_id_list',899 903 ); 900 904 … … 903 907 'description' => __( 'Offset the result set by a specific number of items.' ), 904 908 'type' => 'integer', 905 'sanitize_callback' => 'absint',906 'validate_callback' => 'rest_validate_request_arg',907 909 ); 908 910 } … … 911 913 'description' => __( 'Order sort attribute ascending or descending.' ), 912 914 'type' => 'string', 913 'sanitize_callback' => 'sanitize_key',914 915 'default' => 'asc', 915 916 'enum' => array( … … 917 918 'desc', 918 919 ), 919 'validate_callback' => 'rest_validate_request_arg',920 920 ); 921 921 … … 923 923 'description' => __( 'Sort collection by resource attribute.' ), 924 924 'type' => 'string', 925 'sanitize_callback' => 'sanitize_key',926 925 'default' => 'name', 927 926 'enum' => array( … … 934 933 'count', 935 934 ), 936 'validate_callback' => 'rest_validate_request_arg',937 935 ); 938 936 … … 941 939 'type' => 'boolean', 942 940 'default' => false, 943 'sanitize_callback' => 'rest_sanitize_request_arg',944 'validate_callback' => 'rest_validate_request_arg',945 941 ); 946 942 … … 949 945 'description' => __( 'Limit result set to resources assigned to a specific parent.' ), 950 946 'type' => 'integer', 951 'sanitize_callback' => 'absint',952 'validate_callback' => 'rest_validate_request_arg',953 947 ); 954 948 } … … 958 952 'type' => 'integer', 959 953 'default' => null, 960 'validate_callback' => 'rest_validate_request_arg',961 954 ); 962 955 … … 964 957 'description' => __( 'Limit result set to resources with a specific slug.' ), 965 958 'type' => 'string', 966 'validate_callback' => 'rest_validate_request_arg',967 959 ); 968 960
Note: See TracChangeset
for help on using the changeset viewer.