Make WordPress Core


Ignore:
Timestamp:
12/06/2010 03:38:27 AM (15 years ago)
Author:
markjaquith
Message:

Pass post ID to embed_oembed_html filter to avoid global variable incantations. props filosofo. fixes #15491

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r16728 r16740  
    11911191
    11921192                if ( !empty($cache) )
    1193                     return apply_filters( 'embed_oembed_html', $cache, $url, $attr );
     1193                    return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID );
    11941194            }
    11951195
     
    12041204            // If there was a result, return it
    12051205            if ( $html )
    1206                 return apply_filters( 'embed_oembed_html', $html, $url, $attr );
     1206                return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
    12071207        }
    12081208
Note: See TracChangeset for help on using the changeset viewer.