[wp-trac] [WordPress Trac] #52826: New wp_getimagesize() causing unexpected failures
WordPress Trac
noreply at wordpress.org
Wed Mar 24 02:22:07 UTC 2021
#52826: New wp_getimagesize() causing unexpected failures
-------------------------------------------------+-------------------------
Reporter: terriann | Owner: whyisjake
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.7.1
Component: Media | Version: 5.7
Severity: critical | Resolution:
Keywords: has-patch needs-refresh needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* keywords: has-patch needs-refresh => has-patch needs-refresh needs-unit-
tests
Comment:
@azaozz if [attachment:"52826.5.diff"] is what you had in mind, it looks
logical to me.
It would be good to test this to ensure the data is treated as expected
given [comment:14 comment 14]. The WP test suite has a stream
implementation that can be used with `stream_wrapper_register( 'wptest',
'WP_Test_Stream' );`
See `Tests_Image_Editor_Imagick::test_streams()` for an example of how to
use it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52826#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list