wp_mediaelement_fallback

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

WordPress Version: 4.6

/**
 * Provides a No-JS Flash fallback as a last resort for audio / video.
 *
 * @since 3.6.0
 *
 * @param string $url The media element URL.
 * @return string Fallback HTML.
 */
function wp_mediaelement_fallback($url)
{
    /**
     * Filters the Mediaelement fallback output for no-JS.
     *
     * @since 3.6.0
     *
     * @param string $output Fallback output for no-JS.
     * @param string $url    Media file URL.
     */
    return apply_filters('wp_mediaelement_fallback', sprintf('<a href="%1$s">%1$s</a>', esc_url($url)), $url);
}

WordPress Version: 4.2

/**
 * Provides a No-JS Flash fallback as a last resort for audio / video.
 *
 * @since 3.6.0
 *
 * @param string $url The media element URL.
 * @return string Fallback HTML.
 */
function wp_mediaelement_fallback($url)
{
    /**
     * Filter the Mediaelement fallback output for no-JS.
     *
     * @since 3.6.0
     *
     * @param string $output Fallback output for no-JS.
     * @param string $url    Media file URL.
     */
    return apply_filters('wp_mediaelement_fallback', sprintf('<a href="%1$s">%1$s</a>', esc_url($url)), $url);
}

WordPress Version: 3.9

/**
 * Provide a No-JS Flash fallback as a last resort for audio / video
 *
 * @since 3.6.0
 *
 * @param string $url
 * @return string Fallback HTML
 */
function wp_mediaelement_fallback($url)
{
    /**
     * Filter the Mediaelement fallback output for no-JS.
     *
     * @since 3.6.0
     *
     * @param string $output Fallback output for no-JS.
     * @param string $url    Media file URL.
     */
    return apply_filters('wp_mediaelement_fallback', sprintf('<a href="%1$s">%1$s</a>', esc_url($url)), $url);
}

WordPress Version: 3.7

/**
 * Provide a No-JS Flash fallback as a last resort for audio / video
 *
 * @since 3.6.0
 *
 * @param string $url
 * @return string Fallback HTML
 */
function wp_mediaelement_fallback($url)
{
    return apply_filters('wp_mediaelement_fallback', sprintf('<a href="%1$s">%1$s</a>', esc_url($url)), $url);
}