• Resolved joost de keijzer

    (@joostdekeijzer)


    Gutenberg generates

    <!-- wp:audio {"id":123} -->
    <figure class="wp-block-audio"><audio controls src="https://my.domain.com/wp-content/uploads/2020/06/my-soundfile.mp3"></audio></figure>
    <!-- /wp:audio -->
    

    When I run the scan, all mp3 files are listed as “unused”.

    Adding

    
    		// Audios: src
    		$audios = $dom->getElementsByTagName( 'audio' );
    		foreach ( $audios as $audio ) {
    			//error_log($audio->getAttribute('src'));
    			$src = $this->clean_url( $audio->getAttribute('src') );
        	array_push( $results, $src );
    		}
    

    to core.php below the $videos hander works for my, but maybe I miss things…

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @joostdekeijzer,

    Sorry for the late reply, but you are exactly right; this was missing in the plugin, and it was simple as that to add in the code ??

    That will be included in the next release.

    Thank you and cheers! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Audio tag does not seem to be supported’ is closed to new replies.