wordpress-develop/tests/phpunit/tests/media
Felix Arntz dd691394f2 Media: Consider inline image CSS width to backfill width and height attributes.
Prior to this changeset, WordPress core would use the original image size, which in the particular case of inline images would be severely off, as they are usually very small. This could lead to incorrect application of `fetchpriority="high"` and other performance optimizations.

Props westonruter, flixos90, joemcgill, mukesh27.
Fixes #59352.


git-svn-id: https://develop.svn.wordpress.org/trunk@57294 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-16 17:01:30 +00:00
..
getAdjacentImageLink.php Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +00:00
getAttachmentTaxonomies.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
getNextImageLink.php Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +00:00
getPostGalleries.php Coding Standards: Replace PHP alias join() with implode(). 2023-09-19 12:23:16 +00:00
getPreviousImageLink.php Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +00:00
nextImageLink.php Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +00:00
previousImageLink.php Media: Add decoding="async" to image attributes. 2022-06-09 05:29:57 +00:00
testcase-adjacent-image-link.php Media: Add new functions to return the previous/next attachment links. 2021-06-08 23:12:22 +00:00
wpGenerateAttachmentMetadata.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
wpImageTagAddDecodingAttr.php Media: Rely on wp_get_loading_optimization_attributes() to add decoding="async" to images. 2023-09-25 22:37:00 +00:00
wpImgTagAddWidthAndHeightAttr.php Media: Consider inline image CSS width to backfill width and height attributes. 2024-01-16 17:01:30 +00:00