[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
Fri Mar 17 14:15:03 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.8
Component:  Posts, Post Types      |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch 2nd-opinion
 * milestone:  Future Release => 4.8


Comment:

 [attachment:36206.2.patch] is refresh that includes @tosho's patch from
 #40182 (with `@since` entry).

 It also passes `$post` to `media_submitbox_misc_sections` and
 `audio_submitbox_misc_sections` actions for consistency.

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36206#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list