WordPress.org

Make WordPress Core

Ticket #26675: 26675.3.diff

File 26675.3.diff, 690 bytes (added by valendesigns, 5 years ago)
  • src/wp-includes/media.php

    diff --git src/wp-includes/media.php src/wp-includes/media.php
    index a996565..5ab7537 100644
    function get_attached_media( $type, $post = 0 ) { 
    32213221function get_media_embedded_in_content( $content, $types = null ) {
    32223222        $html = array();
    32233223
     3224        /**
     3225         * Filter the embedded media types that are allowed to be returned from the content blob.
     3226         *
     3227         * @since 4.2.0
     3228         *
     3229         * @param array $allowed_media_types An array of allowed media types.
     3230         */
    32243231        $allowed_media_types = apply_filters( 'get_media_embedded_in_content_allowed', array( 'audio', 'video', 'object', 'embed', 'iframe' ) );
    32253232
    32263233        if ( ! empty( $types ) ) {