[wp-trac] [WordPress Trac] #36206: Added the `$post` parameter in attachment_submitbox_misc_actions and post_submitbox_start action
WordPress Trac
noreply at wordpress.org
Sat Sep 23 16:59:19 UTC 2017
#36206: Added the `$post` parameter in attachment_submitbox_misc_actions and
post_submitbox_start action
-----------------------------------+------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.9
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------
Comment (by SergeyBiryukov):
Replying to [comment:4 SergeyBiryukov]:
> Note that `post_submitbox_start` is also used in
`link_submit_meta_box()`, which doesn't have a `WP_Post` object, but has a
link object instead. Should we pass the link object in that case or just
`null`? Current patch does the former.
On second thought, the latter makes more sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36206#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list