wp_mime_type_icon PHP notice fixes
|Reported by:||sc0ttkclark||Owned by:|
wp_mime_type_icon ends up sending to the 'wp_mime_type_icon' filter: $icon, $mime, and $post_id
Based on the PHP, it's set in such a way that PHP notices could be generated for variables don't exist.
I've attached my patch that should resolve those potential notices.
Change History (6)
comment:2 SergeyBiryukov — 10 months ago
- Component changed from Media to Warnings/Notices
- Milestone changed from Awaiting Review to 3.5
- Milestone 3.5 deleted
- Resolution set to duplicate
- Status changed from new to closed