podPress_get_attached_file overwriting attempts to include thumbnail in feed
-
We’ve been trying to add a hook to include post thumbnails in our RSS feed. While the code we had in place looked correct the thumbnails weren’t showing up at all.
After much scouring of our install I traced the problem to podPress. podpress.php includes
add_filter('get_attached_file', 'podPress_get_attached_file');
and the definition of the podPress_get_attached_file function is
function podPress_get_attached_file($file, $id = '') { if ( is_feed() ) { return ''; } return $file; }
Removing that hook solved our problem.
What is the purpose of that hook, and is there any way to refine it to be more targetted? I’m happy to help with a patch but don’t want to dive in until I know the reasoning behind the hook.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘podPress_get_attached_file overwriting attempts to include thumbnail in feed’ is closed to new replies.