开发者 |
tevko
wilto joemcgill jaspermdegroot chriscoyier Michael McGinnis ryelle drrobotnik nacin georgestephanis helen wordpressdotorg Bocoup |
---|---|
更新时间 | 2015年12月17日 09:49 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 4.4 |
版权: | GPLv2 |
版权网址: | 版权信息 |
data-sizes
attribute being present on an image in order to provide the responsive markup needed. If the plugin in this case is removed, then images in posts will be left with invalid markup. We are working to address this issue, and you can keep track of our progress here at https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/issues/178.
You can still use the plugin for advanced image compression support or as a simple way to include the picturefill script. The plugin will fall back to WordPress default functions if responsive image support is detected in your installation.
srcset
and sizes
attributes to images on the front end instead of adding them to the image markup saved in posts.plugin-name.php
to the /wp-content/plugins/
directoryimg
tags without ending slash don't get responsive images.tevkori_get_media_embedded_in_content()
which is no longer used.tevkori_image_sizes_args
were not firing.wp_get_attachment_image_sizes
.the_post_thumbnail()
would fail to add srcset/sizes attributes.wp_get_attachment_metadata()
failed to return an array.tevkori_get_sizes()
wp_get_attachment_image_src()
in srcset functions$size
value for all functions to 'medium'srcset
and sizes
through a display filter.tevkori_get_srcset_array()
tevkori_get_srcset_array()
tevkori_filter_attachment_image_attributes()
tevkori_get_sizes
, with teststevkori_get_srcset_array
filterablewp_get_attachment_image_attributes
filter for post thumbnailstevkori_get_srcset_array()
to account for rounding variancesrcset=".."
html needed to generate the responsive image. To retrieve the srcset array, us tevkori_get_srcset_array( $id, $size )