Make WordPress Core

Ticket #35480: media.php.patch

File media.php.patch, 459 bytes (added by overclokk, 9 years ago)
  • media.php

     
    10811081         */
    10821082        foreach ( $image_sizes as $image ) {
    10831083
     1084                if ( ! is_array( $image ) ) {
     1085                        continue;
     1086                }
     1087               
    10841088                // If the file name is part of the `src`, we've confirmed a match.
    10851089                if ( ! $src_matched && false !== strpos( $image_src, $dirname . $image['file'] ) ) {
    10861090                        $src_matched = true;