Make WordPress Core

Changeset 22978


Ignore:
Timestamp:
12/03/2012 12:42:26 AM (13 years ago)
Author:
koopersmith
Message:

Prevent small thumbnails from being upscaled. props helenyhou. fixes #22681.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r22976 r22978  
    19301930
    19311931            #{{ data.id }} .portrait .thumbnail img {
    1932                 width: {{ data.edge }}px;
     1932                max-width: {{ data.edge }}px;
    19331933                height: auto;
    19341934            }
     
    19361936            #{{ data.id }} .landscape .thumbnail img {
    19371937                width: auto;
    1938                 height: {{ data.edge }}px;
     1938                max-height: {{ data.edge }}px;
    19391939            }
    19401940        </style>
Note: See TracChangeset for help on using the changeset viewer.