• Resolved almendron

    (@almendron)


    WordPress: 6.3.2
    Plugin: 1.0.4
    PHP Version: 8.2.4

    A first image is uploaded
    Attachment Display Settings. Link To –> selected the option “None”

    A second image is uploaded
    Attachment Display Settings. Link To –> automatically switches to “Media File”. It should not change. It should be the option selected in the previous image uploaded. In the example — > “None”.

    Note: The problem only occurs when uploading an AVIF image.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author GrandPlugins

    (@grandplugins)

    Hi,

    This is because of an image mime type check in WordPress core media view JS file which doesn’t include AVIF mime type.

    Unfortunately, There is no way to hook and filter this part as It’s hardcoded in the minified JS file.

    You will need to select it manually after uploading.

    Thread Starter almendron

    (@almendron)

    Thank you for your response.

    However, the problem is only with that option. With the other two options (“alignment” and “size”) the plugin works fine.

    Note: I am in the process of translating the plugin into English

    Plugin Author GrandPlugins

    (@grandplugins)

    That’s right. The issue is related to this option only.

    anyway, I’ve opened a ticket for it 🙂
    https://core.trac.ww.wp.xz.cn/ticket/59686#ticket

    Regards!

    Thread Starter almendron

    (@almendron)

    Thank you very much. I will try changing media-view.js locally.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Attachment Display Settings’ is closed to new replies.