• After the update to the latest version the media list is not filtered so it shows all media files. If i change the javascript back to the version 1.0.5 it works well. (I use the standard media modal not e.g. woocommerce products or other cases)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author leemon

    (@leemon)

    Weird. It’s working on my side. Can you tell me which other plugins are you currently using to see if there’s any conflict, please?

    Thread Starter Christian Rüggeberg

    (@arkonisus)

    You are alright, there is a conflict with the plugin CMB2

    In the media modal on a page or post the behaviour is working well. I didn’t recognised it because in this project i only use my own media-fields created with cmb2. If you take a look at the insert media modal in cmb2 you will see that there is no select box where you can choose the month or “only uploaded to this post”. Strange why it works with the last version of your plugin …

    I think we have to report an issue for cmb2 – or what do you say?

    Plugin Author leemon

    (@leemon)

    I tried the CMB2 plugin together with my plugin (both versions, 1.0.5 and 1.0.6). I added a File type field to pages:

    add_action( 'cmb2_admin_init', 'cmb2_add_metabox' );
    function cmb2_add_metabox() {
        $prefix = 'yourprefix_demo_';
        $cmb_demo = new_cmb2_box( array(
    	'id'            => $prefix . 'metabox',
    	'title'         => esc_html__( 'Test Metabox', 'cmb2' ),
    	'object_types'  => array( 'page' ),
        ) );
        $cmb_demo->add_field( array(
    	'name' => esc_html__( 'Test Image', 'cmb2' ),
    	'desc' => esc_html__( 'Upload an image or enter a URL.', 'cmb2' ),
    	'id'   => $prefix . 'image',
    	'type' => 'file',
        ) );
    }

    With either 1.0.5 or 1.0.6, I only get a Month dropdown and no “Uploaded to this post” dropdown in the media modal. With 1.0.5, the media modal doesn’t show any images, and with 1.0.6, the media modal show all images uploaded to the site.

    I’m a bit lost with this. How do you get a “Uploaded to this post” dropdown with 1.0.5? Do you need to add a parameter to the $cmb->add_field function? Do you get any JavaScript error in your browser console with 1.0.6?

    • This reply was modified 8 years ago by leemon.
    Thread Starter Christian Rüggeberg

    (@arkonisus)

    No, it is exactely as you described. There is no “Uploaded to this post” dropdown in the media modal. (also without your plugin)

    But if you try to upload some files you will see in 1.0.5 that there are only files uploaded to this post and in 1.0.6 you see all files uploaded to the site.

    Thread Starter Christian Rüggeberg

    (@arkonisus)

    This issue was affected by CMB2 and will be fixed in the next Version.
    See https://github.com/CMB2/CMB2/issues/873

    Plugin Author leemon

    (@leemon)

    Thanks for notifying this!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Filter doesn’t work in Version 1.0.6’ is closed to new replies.