From dc015a578de4335eec84b8ac3d8b0f97e710f25b Mon Sep 17 00:00:00 2001 From: Brajesh Singh Date: Thu, 29 Mar 2018 05:12:55 +0530 Subject: [PATCH] Fix original size not being used on the single media page --- core/storage/class-mpp-local-storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/storage/class-mpp-local-storage.php b/core/storage/class-mpp-local-storage.php index ec90fe3..aa9bde3 100644 --- a/core/storage/class-mpp-local-storage.php +++ b/core/storage/class-mpp-local-storage.php @@ -73,7 +73,7 @@ public function get_src( $size = null, $id = null ) { $url = wp_get_attachment_url( $id ); // if type is not give, return original media url. - if ( ! $size ) { + if ( ! $size || 'original' === $size ) { return $url; }