Changeset 35358
- Timestamp:
- 10/22/2015 07:30:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r35355 r35358 929 929 $img_edited = preg_match( '/-e[0-9]{13}/', $img_url, $img_edit_hash ); 930 930 931 /** 932 * Filter the maximum width included in a srcset attribute. 933 * 934 * @since 4.4.0 935 * 936 * @param array|string $size Size of image, either array or string. 937 */ 938 $max_srcset_width = apply_filters( 'max_srcset_image_width', 1600, $size ); 939 931 940 /* 932 941 * Set up arrays to hold url candidates and matched image sources so … … 944 953 if ( $img_edited && ! strpos( $img['file'], $img_edit_hash[0] ) ) { 945 954 continue; 955 } 956 957 // Filter out images that are wider than $max_srcset_width. 958 if ( $max_srcset_width && $img['width'] > $max_srcset_width ) { 959 $contiue; 946 960 } 947 961
Note: See TracChangeset
for help on using the changeset viewer.