Opened 12 months ago
Closed 12 months ago
#39628 closed enhancement (fixed)
add $post arg to display_media_states filter
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8 | Priority: | normal |
| Severity: | normal | Version: | 3.2 |
| Component: | Media | Keywords: | good-first-bug has-patch |
| Focuses: | Cc: |
Description
It would be good to pass $post to the display_media_states filter, for several reasons:
- so that we don't have to rely on global $post being set appropriately
- to mirror the display_post_states filter
I started looking into this filter to get around a bug with the Logo state not being added when appropriate (see Ticket 39627), and it took me a while to realize that I could key off of global $post to know whether Logo should be added to $media_states.
Attachments (1)
Change History (5)
#1
@swissspidy
12 months ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to Future Release
- Version changed from trunk to 3.2
#2
@chriseverson
12 months ago
- Keywords has-patch added; needs-patch removed
#3
@SergeyBiryukov
12 months ago
- Milestone changed from Future Release to 4.8
#4
@SergeyBiryukov
12 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 39926: