diff --git a/includes/class-bc-utility.php b/includes/class-bc-utility.php index c195b8f4..d1261634 100644 --- a/includes/class-bc-utility.php +++ b/includes/class-bc-utility.php @@ -310,7 +310,7 @@ public static function sanitize_payload_args_recursive( $args ) { if ( is_array( $value ) ) { $args[ $index ] = self::sanitize_payload_args_recursive( $value ); } else { - $args[ $index ] = utf8_uri_encode( sanitize_text_field( $value ) ); + $args[ $index ] = sanitize_text_field( $value ); } } @@ -329,7 +329,7 @@ public static function sanitize_payload_item( $item ) { return self::sanitize_payload_args_recursive( $item ); } - return utf8_uri_encode( sanitize_text_field( $item ) ); + return sanitize_text_field( $item ); } /** diff --git a/includes/sync/class-bc-videos.php b/includes/sync/class-bc-videos.php index c74e413b..952f7673 100644 --- a/includes/sync/class-bc-videos.php +++ b/includes/sync/class-bc-videos.php @@ -54,7 +54,7 @@ public function update_bc_video( $sanitized_post_data, $subtype = false ) { $update_data = array(); if ( array_key_exists( 'name', $sanitized_post_data ) && '' !== $sanitized_post_data['name'] ) { - $update_data['name'] = utf8_uri_encode( sanitize_text_field( $sanitized_post_data['name'] ) ); + $update_data['name'] = BC_Utility::sanitize_payload_item( $sanitized_post_data['name'] ); } if ( array_key_exists( 'description', $sanitized_post_data ) && ! empty( $sanitized_post_data['description'] ) ) {