diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index cf131adb67..6540c52fdf 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -867,6 +867,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller { 'description' => __( 'Whether to hide resources not assigned to any posts.' ), 'type' => 'boolean', 'default' => false, + 'sanitize_callback' => 'rest_sanitize_request_arg', 'validate_callback' => 'rest_validate_request_arg', ); if ( $taxonomy->hierarchical ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index e8fa15cf3c..e3b07b7696 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38941'; +$wp_version = '4.7-alpha-38942'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.