mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-14 15:49:16 +01:00
Add get_attached_file().
git-svn-id: http://svn.automattic.com/wordpress/trunk@3203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
45c73a3298
commit
945a03bea5
@ -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);
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user