• Resolved neoimage

    (@neoimage)


    Buon pomeriggio,
    in un sito web con WordPress 6.9.1 avevo il seguente problema con “WP Attachments”
    Cliccando sul bottone “Aggiungi Media” di “WP Attachments” in un post, mi compariva la schermata di caricamento/libreria ma non comparivano i file al suo interno.

    Analizzando il problema ho visto che nel file metabox.js è presente ul parametro type “all” all’interno dell’oggetto library. Questo non è standard nelle versioni recenti di WordPress.

    La libreria risultava vuota perchè nessun tipo risultava “all”.

    La modifica che ho fatto è la seguente su:

    this.mediaFrame = wp.media({
    title: ‘Add Media Attachments’, button: {
    text: ‘Attach to Post’
    }, multiple: true,
    library: {
    type: ‘all’ –> errore
    } });

    Sostituita con:

    this.mediaFrame = wp.media({
    title: ‘Add Media Attachments’,
    button: {
    text: ‘Attach to Post’
    },
    multiple: true
    });

    Questa soluzione ha risolto completamente il problema.
    Spero che possa essere utile.
    Cordiali saluti

Viewing 1 replies (of 1 total)
  • Plugin Author Marco Milesi

    (@milmor)

    Thank you for reporting the issue and for your time debugging the problem!

    I have just released version 5.3.4, which includes the fixes for the issues you mentioned. Please let me know if everything is working correctly now!

    You can also follow the project and contribute directly on the GitHub repo: https://github.com/WPGov/wp-attachments

    Best regards,
    Marco

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.