In get_attached_file(), fix the explanation of when the filter is bypassed. props devesine, fixes #24571.
git-svn-id: https://develop.svn.wordpress.org/trunk@24983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d27af8036
commit
6a06f6ea08
@ -167,8 +167,9 @@ add_action( 'init', 'create_initial_post_types', 0 ); // highest priority
|
|||||||
/**
|
/**
|
||||||
* Retrieve attached file path based on attachment ID.
|
* Retrieve attached file path based on attachment ID.
|
||||||
*
|
*
|
||||||
* You can optionally send it through the 'get_attached_file' filter, but by
|
* By default the path will go through the 'get_attached_file' filter, but
|
||||||
* default it will just return the file path unfiltered.
|
* passing a true to the $unfiltered argument of get_attached_file() will
|
||||||
|
* return the file path unfiltered.
|
||||||
*
|
*
|
||||||
* The function works by getting the single post meta name, named
|
* The function works by getting the single post meta name, named
|
||||||
* '_wp_attached_file' and returning it. This is a convenience function to
|
* '_wp_attached_file' and returning it. This is a convenience function to
|
||||||
|
Loading…
Reference in New Issue
Block a user