#21835 closed defect (bug) (fixed)
wp_mime_type_icon() does wp_cache_set() when it should do wp_cache_add()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Really no reason for it to try an unconditional set, as it is only run when the get failed.
Additionally, $post_id is not set when passed to the filter if the get succeeds, as noted by koopersmith.
Change History (3)
comment:1
koopersmith — 9 months ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [21783]:
comment:3
sc0ttkclark — 8 months ago
The $post_id PHP notice was ticketed in #21614 (just putting it here so they can get linked together, as this one was the one where the fix was committed)
Note: See
TracTickets for help on using
tickets.

In [21782]: