wpmetabox / meta-box

The best plugin for WordPress custom fields and custom meta boxes
https://metabox.io
1.19k stars 422 forks source link

IMAGE ADVANCED #1321

Open gersedano opened 5 years ago

gersedano commented 5 years ago

Hello.

After update version 4.17.2 when I use Image advance metabox don't check mime type and allow to use other types of files

        // IMAGE ADVANCED (WP 3.5+)
        array(
            'name'             => __( 'Imágenes', 'test' ),
            'id'               => "{$prefix}imagenes",
            'type'             => 'file_advanced',
            'max_file_uploads' => 5,
            'mime_type'        => 'image/jpeg', // Leave blank for all file types
            'desc'     => __( 'La primera imagen será la destacada. Sólo se mostrarán si son en formato jpg', 'test' ),
        ),

In this example, editor don't show other file type, but if upload other extension, allow me to save it.

Thanks

Captura de pantalla 2019-07-18 a las 13 13 57
gersedano commented 5 years ago

If fails in image advance and file advance