mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
- Introduce `wp_calculate_image_srcset()` that replaces `wp_get_attachment_image_srcset_array()` and is used as lower level function for retrieving the srcset data as array. - Use the new function when generating `srcset` and `sizes` on the front-end. This is faster as no (other) image API functions are used. - Change the `wp_get_attachment_image_srcset()`. Now it is meant for use in templates and is no longer used in core. - A few logic fixes and improvements. - Some names changed to be (hopefully) more descriptive. - Fixed/updated tests. Props joemcgill, jaspermdegroot, azaozz. See #34430. git-svn-id: https://develop.svn.wordpress.org/trunk@35412 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| src | ||
| tests | ||
| tools/i18n | ||
| .editorconfig | ||
| .gitignore | ||
| .jshintrc | ||
| .travis.yml | ||
| Gruntfile.js | ||
| package.json | ||
| phpunit.xml.dist | ||
| wp-cli.yml | ||
| wp-config-sample.php | ||
| wp-tests-config-sample.php | ||