Opened 8 years ago
Closed 8 years ago
#39628 closed enhancement (fixed)
add $post arg to display_media_states filter
Reported by: | pbiron | Owned by: | SergeyBiryukov |
---|---|---|---|
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)
Note: See
TracTickets for help on using
tickets.
In 39926: