wordpress-develop/tests/phpunit/tests/image
Jonny Harris 7fc225aa87 Media: Store attachment’s file size in metadata.
Store the file size of all newly uploaded attachments, as part of the metadata stored in post meta. Storing file size means, developers will not have to resort to doing `filesize` function calls, that can be time consuming on assets on offloaded to services like Amazon’s S3. 

This change also introduces a new helper function called, `wp_filesize`. This is a wrapper around the `filesize` php function, that adds some helpful filters and ensures the return value is an integer.

Props Cybr, Spacedmonkey, SergeyBiryukov, johnwatkins0, swissspidy, desrosj, joemcgill, azaozz, antpb, adamsilverstein, uday17035. 
Fixes #49412. 



git-svn-id: https://develop.svn.wordpress.org/trunk@52837 602fd350-edb4-49c9-b593-d223f7449a82
2022-03-10 13:08:19 +00:00
..
base.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dimensions.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
editor.php Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
editorGd.php Media: Store attachment’s file size in metadata. 2022-03-10 13:08:19 +00:00
editorImagick.php Media: Store attachment’s file size in metadata. 2022-03-10 13:08:19 +00:00
functions.php Media: Store attachment’s file size in metadata. 2022-03-10 13:08:19 +00:00
header.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
intermediateSize.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
meta.php Media: Fix TypeError and improve wp_exif_frac2dec() to only return int or float. 2021-11-29 19:34:51 +00:00
resize.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
resizeGd.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
resizeImagick.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
siteIcon.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
size.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00