Changeset 39654 for branches/4.7
- Timestamp:
- 12/30/2016 06:23:56 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/media.php
r39399 r39654 3064 3064 3065 3065 $attachment_url = wp_get_attachment_url( $attachment->ID ); 3066 $base_url = str_replace( wp_basename( $attachment_url ), '', $attachment_url ); 3066 3067 3067 3068 $response = array( … … 3171 3172 ); 3172 3173 } elseif ( isset( $meta['sizes'][ $size ] ) ) { 3173 if ( ! isset( $base_url ) )3174 $base_url = str_replace( wp_basename( $attachment_url ), '', $attachment_url );3175 3176 3174 // Nothing from the filter, so consult image metadata if we have it. 3177 3175 $size_meta = $meta['sizes'][ $size ];
Note: See TracChangeset
for help on using the changeset viewer.