Image Upload: image is deleted after change position using drag and drop

Support General Image Upload: image is deleted after change position using drag and dropResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12657
    JeffersonJefferson
    Participant

    The metabox works fine when a post is created, but when an imagem have your position changed trought drag and drop, after post update the image that have your position changed is deleted.

    My field:

    
    array(
      'id' => 'images',
      'type' => 'image_upload',
      'name' => esc_html__( 'Imagens', 'webpesados' ),
      'force_delete' => true,
      'image_size' => 'thumbnail',
      'columns' => 12,
      'tooltip' => array(
        'icon' => 'help',
        'content' => esc_html__('Arraste as imagens para alterar sua ordem de exibição.', 'webpesados'),
        'position' => 'right',
      ),
    ),
    
    #12671
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. I've just noticed the issue on WP 5.0.1. Did you test with the same version (or Gutenberg)?

    Update:

    Turns out it's a bug in the plugin when force_delete=true. I've fixed on Github. Can you please check it?

    https://github.com/wpmetabox/meta-box

    #12676
    JeffersonJefferson
    Participant

    I'm using 4.98 version of WordPress. Thank you for the fix, works fine!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.