From af72ac38ff0cdf372c20237c7c5383de154b3403 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@16275 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; }