Index: src/wp-includes/post.php
===================================================================
--- src/wp-includes/post.php	(revision 47258)
+++ src/wp-includes/post.php	(working copy)
@@ -7178,16 +7178,17 @@
  *
  * @since 5.3.0
  *
- * @param int $attachment_id Attachment ID.
+ * @param int  $attachment_id Attachment ID.
+ * @param bool $unfiltered Optional. Passed through to `get_attached_file()`. Default false.
  * @return string|false Path to the original image file or false if the attachment is not an image.
  */
-function wp_get_original_image_path( $attachment_id ) {
+function wp_get_original_image_path( $attachment_id, $unfiltered = false ) {
 	if ( ! wp_attachment_is_image( $attachment_id ) ) {
 		return false;
 	}
 
 	$image_meta = wp_get_attachment_metadata( $attachment_id );
-	$image_file = get_attached_file( $attachment_id );
+	$image_file = get_attached_file( $attachment_id, $unfiltered );
 
 	if ( empty( $image_meta['original_image'] ) ) {
 		$original_image = $image_file;
