Estoy usando wp media para cargar imágenes usando Javascript.
La parte JS está aquí -
handleLogoUpload () { var self = this; // If the media frame already exists, reopen it. if ( this.wpmedia ) { this.wpmedia.open(); return; } // Create a new media frame this.wpmedia = wp.media({ title: __( 'Select or Upload Media Of Your Chosen Persuasion' ), button: { text: __( 'Use this media' ) }, type : 'image', multiple: false }); this.wpmedia.on( 'select', function() { // Handle this in my way }); this.wpmedia.open(); },También puse en cola la biblioteca de medios en el final de PHP.
Pero cuando, simplemente elijo una imagen del directorio local para cargar Obteniendo este error:
TypeError no detectado: this.options no está definido createAttachmentView http://wpex.test/wp-includes/js/media-views.js?ver=5.9.2:9336

Parece un error en media-views.js .
¿Hay alguien que haya enfrentado esto antes?