Make WordPress Core


Ignore:
Timestamp:
03/07/2018 01:18:08 AM (7 years ago)
Author:
mikeschroder
Message:

Media: Correctly allow changing PDF thumbnail crop value.

Corrects logic that keeping plugins from setting crop value of intermediate image sizes for rendered PDFs.

Adds test.

Props leemon, SergeyBiryukov, chetan200891, birgire.
Fixes #43226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image.php

    r42780 r42792  
    254254            } else {
    255255                // Force thumbnails to be soft crops.
    256                 if ( ! 'thumbnail' === $s ) {
     256                if ( 'thumbnail' !== $s ) {
    257257                    $sizes[ $s ]['crop'] = get_option( "{$s}_crop" );
    258258                }
Note: See TracChangeset for help on using the changeset viewer.