From 6a06f6ea08a0d1725f6d1a84804b2265dacf27ba Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 5 Aug 2013 22:07:42 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 506affb0c3..03f31ef57e 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -167,8 +167,9 @@ add_action( 'init', 'create_initial_post_types', 0 ); // highest priority /** * Retrieve attached file path based on attachment ID. * - * You can optionally send it through the 'get_attached_file' filter, but by - * default it will just return the file path unfiltered. + * By default the path will go through the 'get_attached_file' filter, but + * 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 * '_wp_attached_file' and returning it. This is a convenience function to