You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect the allowed file types that can be uploaded into the WordPress media library, and use that list of file types with the "File URL Replacement" feature.
As @alimuzzaman pointed out via Slack, there may be a performance hit if we add support for ALL allowed file types. Instead, maybe we should add a field that allows the user to manually control the supported file types.
When the user enables the "File URL Replacement" setting, display a new field that displays the default supported file types and allow them to customize it.
Field default value: jpg jpeg png gif pdf
Field description: Define the file types you would like supported. Separate each type by a space.
This new field should also be supported by a wp-config constant (WP_STATELESS_MEDIA_BODY_REWRITE_TYPES)
Detect the allowed file types that can be uploaded into the WordPress media library, and use that list of file types with the "File URL Replacement" feature.
reference https://codex.wordpress.org/Function_Reference/get_allowed_mime_types
The text was updated successfully, but these errors were encountered: