Changeset 38052 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/13/2016 03:23:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r38012 r38052 1143 1143 * @param string $image_src The 'src' of the image. 1144 1144 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 1145 1145 * @param int $attachment_id Image attachment ID or 0. 1146 1146 */ 1147 1147 $sources = apply_filters( 'wp_calculate_image_srcset', $sources, $size_array, $image_src, $image_meta, $attachment_id ); … … 1155 1155 1156 1156 foreach ( $sources as $source ) { 1157 $srcset .= $source['url']. ' ' . $source['value'] . $source['descriptor'] . ', ';1157 $srcset .= str_replace( ' ', '%20', $source['url'] ) . ' ' . $source['value'] . $source['descriptor'] . ', '; 1158 1158 } 1159 1159
Note: See TracChangeset
for help on using the changeset viewer.