Thread Starter
tyaty1
(@tyaty1)
I temporarily fixed it with this:
add_filter( 'upload_size_limit', fn( $size ) => is_numeric( $size ) ? (int) $size : $size, 998 );
It was apparently a silent TypeError when the $size argument
public static function filterUploadSizeLimit($size): int
is not an integer.
-
This reply was modified 7 hours, 23 minutes ago by tyaty1.