Make WordPress Core

Ticket #35102: 35102.diff

File 35102.diff, 652 bytes (added by polevaultweb, 10 years ago)
  • src/wp-includes/media.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    12961296        $all_sizes[] = $base_url . $image_meta['file'];
    12971297
    12981298        // Bail early if the image src doesn't match any of the known image sizes.
    1299         if ( ! in_array( $image_src, $all_sizes ) ) {
     1299        if ( ! in_array( $image_src, $all_sizes ) && ! apply_filters( 'known_image_src_in_image_sizes', false, $image_src, $image_meta, $attachment_id )) {
    13001300                return $image;
    13011301        }
    13021302