mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Add get_attached_file().
git-svn-id: https://develop.svn.wordpress.org/trunk@3203 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a0556647af
commit
81fed95acf
@ -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…
x
Reference in New Issue
Block a user