Changeset 31721
- Timestamp:
- 03/11/2015 04:31:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r31591 r31721 2175 2175 } 2176 2176 2177 $args['size'] = $size;2177 $args['size'] = (int) $size; 2178 2178 $args['default'] = $default; 2179 2179 $args['alt'] = $alt; … … 2209 2209 return false; 2210 2210 } 2211 2212 $url2x = get_avatar_url( $id_or_email, array_merge( $args, array( 'size' => $args['size'] * 2 ) ) ); 2211 2213 2212 2214 $args = get_avatar_data( $id_or_email, $args ); … … 2233 2235 2234 2236 $avatar = sprintf( 2235 "<img alt='%s' src='%s' class='%s' height='%d' width='%d' %s/>",2237 "<img alt='%s' src='%s' srcset='%s' class='%s' height='%d' width='%d' %s/>", 2236 2238 esc_attr( $args['alt'] ), 2237 2239 esc_url( $url ), 2240 esc_attr( "$url 1x, $url2x 2x" ), 2238 2241 esc_attr( join( ' ', $class ) ), 2239 2242 (int) $args['height'],
Note: See TracChangeset
for help on using the changeset viewer.