From d26a1aa4efd9fc5dbeaa41263e4253cb16202b0a Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 10 Nov 2010 16:40:49 +0000 Subject: [PATCH] Pass post ID to get_enclosed filter. Props willnorris. fixes #14018 git-svn-id: http://svn.automattic.com/wordpress/trunk@16275 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 08c8c2bd10..8920dc10e4 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2978,7 +2978,7 @@ function get_enclosed($post_id) { $pung[] = trim( $enclosure[ 0 ] ); } } - $pung = apply_filters('get_enclosed', $pung); + $pung = apply_filters('get_enclosed', $pung, $post_id); return $pung; }