Skip to content

Commit

Permalink
Fix original size not being used on the single media page
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrajesh committed Mar 28, 2018
1 parent 7639355 commit dc015a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/storage/class-mpp-local-storage.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit dc015a5

Please sign in to comment.