diff --git a/admin/rt-transcoder-handler.php b/admin/rt-transcoder-handler.php index f8b5a0c..6b33424 100755 --- a/admin/rt-transcoder-handler.php +++ b/admin/rt-transcoder-handler.php @@ -1658,7 +1658,7 @@ public function filter_transcoder_response() { } /** - * Sanitize transcoder post respopnse array for JSON. + * Sanitize transcoder post response array for JSON. * * @param WP_REST_Request $request Request object. * @@ -1672,7 +1672,7 @@ public function filter_transcoder_response_json( $request ) { 'format' => sanitize_text_field( wp_unslash( $request->get_param( 'format' ) ) ), 'download_url' => esc_url_raw( $request->get_param( 'download_url' ) ), 'file_name' => sanitize_text_field( wp_unslash( $request->get_param( 'file_name' ) ) ), - 'thumbnail_count' => absint( $request->get_param( 'thumbnail_count' ) ), + 'thumb_count' => absint( $request->get_param( 'thumbnail_count' ) ), 'status' => sanitize_text_field( wp_unslash( $request->get_param( 'status' ) ) ), 'files' => array_map( 'esc_url_raw', (array) $request->get_param( 'files' ) ), 'file_status' => sanitize_text_field( wp_unslash( $request->get_param( 'file_status' ) ) ), diff --git a/admin/rt-transcoder-rest-routes.php b/admin/rt-transcoder-rest-routes.php index 9bc3c99..9e872b6 100644 --- a/admin/rt-transcoder-rest-routes.php +++ b/admin/rt-transcoder-rest-routes.php @@ -113,7 +113,7 @@ public function register_routes() { 'type' => 'string', 'sanitize_callback' => 'sanitize_text_field', ), - 'thumbnail_count' => array( + 'thumb_count' => array( 'required' => true, 'type' => 'integer', 'sanitize_callback' => 'absint',