Skip to content

Commit

Permalink
fix: minor arg name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pranvinit committed Nov 18, 2024
1 parent 64d82ae commit 14d57e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions admin/rt-transcoder-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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' ) ) ),
Expand Down
2 changes: 1 addition & 1 deletion admin/rt-transcoder-rest-routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 14d57e5

Please sign in to comment.