I've found several examples where they use the
intermediate_image_sizes_advanced filter to unset the default WP image sizes that are generated whenever a user uploads a new image to the media library. This filter, on a brand new install with no plugins will not be called at all.
get_intermediate_image_sizes() spits out the following array:
[05-Feb-2020 17:29:55 UTC] Array (  => thumbnail  => medium  => medium_large  => large  => 1536x1536  => 2048x2048 )
Where did 1536x1536 come from? Where did 2048x2048 com from?
I later tried to call
remove_image_size('size') from within an
init action and this only worked for the two new sizes mentioned above. The other default sizes still remained:
[05-Feb-2020 17:30:26 UTC] Array (  => thumbnail  => medium  => medium_large  => large )
Does anyone know what's going on here? Has something changed?