atom_enclosure

The timeline below displays how wordpress function atom_enclosure has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Displays the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ('enclosure' === $key) {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                $url = '';
                $type = '';
                $length = 0;
                $mimes = get_allowed_mime_types();
                // Parse URL.
                if (isset($enclosure[0]) && is_string($enclosure[0])) {
                    $url = trim($enclosure[0]);
                }
                // Parse length and type.
                for ($i = 1; $i <= 2; $i++) {
                    if (isset($enclosure[$i])) {
                        if (is_numeric($enclosure[$i])) {
                            $length = trim($enclosure[$i]);
                        } elseif (in_array($enclosure[$i], $mimes, true)) {
                            $type = trim($enclosure[$i]);
                        }
                    }
                }
                $html_link_tag = sprintf("<link href=\"%s\" rel=\"enclosure\" length=\"%d\" type=\"%s\" />\n", esc_url($url), esc_attr($length), esc_attr($type));
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', $html_link_tag);
            }
        }
    }
}

WordPress Version: 5.5

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ('enclosure' === $key) {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                $url = '';
                $type = '';
                $length = 0;
                $mimes = get_allowed_mime_types();
                // Parse URL.
                if (isset($enclosure[0]) && is_string($enclosure[0])) {
                    $url = trim($enclosure[0]);
                }
                // Parse length and type.
                for ($i = 1; $i <= 2; $i++) {
                    if (isset($enclosure[$i])) {
                        if (is_numeric($enclosure[$i])) {
                            $length = trim($enclosure[$i]);
                        } elseif (in_array($enclosure[$i], $mimes, true)) {
                            $type = trim($enclosure[$i]);
                        }
                    }
                }
                $html_link_tag = sprintf("<link href=\"%s\" rel=\"enclosure\" length=\"%d\" type=\"%s\" />\n", esc_url($url), esc_attr($length), esc_attr($type));
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', $html_link_tag);
            }
        }
    }
}

WordPress Version: 5.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ('enclosure' === $key) {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 9.1

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.9

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 8.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 8.2

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .10

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.7

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 6.9

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 6.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .20

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 6.2

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .10

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.6

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filters the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 5.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 5.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .20

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 5.2

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .12

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .20

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.2

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .13

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 3.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 3.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .20

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 3.2

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .14

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 2.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 2.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .20

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 2.2

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .18

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 1.5

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .40

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 1.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 1.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .21

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 4.1

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 0.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 0.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .21

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 3.9

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @since 2.2.0
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                /**
                 * Filter the atom enclosure HTML link tag for the current post.
                 *
                 * @since 2.2.0
                 *
                 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
                 */
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 8.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 8.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .24

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 7.5

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .40

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 7.4

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .30

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 7.3

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: .24

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . esc_url(trim($enclosure[0])) . '" rel="enclosure" length="' . absint(trim($enclosure[1])) . '" type="' . esc_attr(trim($enclosure[2])) . '" />' . "\n");
            }
        }
    }
}

WordPress Version: 3.7

/**
 * Display the atom enclosure for the current post.
 *
 * Uses the global $post to check whether the post requires a password and if
 * the user has the password for the post. If not then it will return before
 * displaying.
 *
 * Also uses the function get_post_custom() to get the post's 'enclosure'
 * metadata field and parses the value to display the enclosure(s). The
 * enclosure(s) consist of link HTML tag(s) with a URI and other attributes.
 *
 * @package WordPress
 * @subpackage Template
 * @since 2.2.0
 * @uses apply_filters() Calls 'atom_enclosure' hook on atom enclosure.
 * @uses get_post_custom() To get the current post enclosure metadata.
 */
function atom_enclosure()
{
    if (post_password_required()) {
        return;
    }
    foreach ((array) get_post_custom() as $key => $val) {
        if ($key == 'enclosure') {
            foreach ((array) $val as $enc) {
                $enclosure = explode("\n", $enc);
                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
            }
        }
    }
}