Opened 13 years ago
Closed 13 years ago
#23843 closed enhancement (fixed)
Consolidate and filter get_attached_audio|video|images
| Reported by: | helen | Owned by: | helen |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
Seeing as they are so very similar, we should probably just de-spaghetti and consolidate them into get_attached_media( $type ). Should also filter the args and the resulting arrays.
Attachments (2)
Change History (8)
#2
@
13 years ago
- Resolution fixed
- Status closed → reopened
So my question is, do we even need the wrapper functions? These aren't template tags, so I'm inclined to think, maybe not.
#3
@
13 years ago
I disdain too much reflection, but I like those API funcs. Also, http://core.trac.wordpress.org/browser/trunk/wp-includes/post.php#L1701
#4
@
13 years ago
- Keywords 2nd-opinion added
In the spirit of reducing the absolute weight of functions we're adding in 3.6 (70+ at last count), I'm with @nacin on ditching the wrapper functions.
#5
@
13 years ago
- Keywords has-patch commit added; 2nd-opinion removed
Everyone out of the pool 23843.2.diff
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 23776: