From 945a03bea552907dd92bb7a475c575b6d5ef8d8c Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 23 Nov 2005 10:00:07 +0000 Subject: [PATCH] Add get_attached_file(). git-svn-id: http://svn.automattic.com/wordpress/trunk@3203 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 9bdc7f05c4..c4205cb4cb 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -775,4 +775,7 @@ function get_post_mime_type($ID = '') { return false; } +function get_attached_file($attachment_id) { + return get_post_meta($attachment_id, '_wp_attached_file', true); +} ?>