Make WordPress Core

Changeset 54863


Ignore:
Timestamp:
11/22/2022 07:43:25 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add unit tests for attachment’s file size being included in metadata.

These tests ensure that wp_generate_attachment_metadata() stores the file size of all newly uploaded attachments under the filesize array key. The tests were initially supposed to be committed with [52837].

Follow-up to [52837], [52932], [54861].

Props spacedmonkey, johnwatkins0, mitogh, adamsilverstein, pbearne, SergeyBiryukov.
Fixes #57171.

Location:
trunk/tests/phpunit/tests/media
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.