Make WordPress Core


Ignore:
Timestamp:
03/09/2018 03:20:52 AM (7 years ago)
Author:
mikeschroder
Message:

Media: Correctly allow changing PDF thumbnail crop value.

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

Props leemon, SergeyBiryukov, chetan200891, birgire.
Merges [42792] to the 4.9 branch.
Fixes #43226.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/image.php

    r42450 r42813  
    242242            } else {
    243243                // Force thumbnails to be soft crops.
    244                 if ( ! 'thumbnail' === $s ) {
     244                if ( 'thumbnail' !== $s ) {
    245245                    $sizes[ $s ]['crop'] = get_option( "{$s}_crop" );
    246246                }
Note: See TracChangeset for help on using the changeset viewer.