Posts, Post Types: Pass $post parameter to post_submitbox_start, attachment_submitbox_misc_actions, media_submitbox_misc_sections, audio_submitbox_misc_sections filters.
Props sebastian.pisula, SergeyBiryukov. Fixes #36206. Built from https://develop.svn.wordpress.org/trunk@41581 git-svn-id: http://core.svn.wordpress.org/trunk@41414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -244,8 +244,12 @@ do_action( 'post_submitbox_misc_actions', $post );
|
||||
* Fires at the beginning of the publishing actions section of the Publish meta box.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @since 4.9.0 Added the `$post` parameter.
|
||||
*
|
||||
* @param WP_Post|null $post WP_Post object for the current post on Edit Post screen,
|
||||
* null on Edit Link screen.
|
||||
*/
|
||||
do_action( 'post_submitbox_start' );
|
||||
do_action( 'post_submitbox_start', $post );
|
||||
?>
|
||||
<div id="delete-action">
|
||||
<?php
|
||||
@@ -326,8 +330,11 @@ function attachment_submit_meta_box( $post ) {
|
||||
* in the attachment editing screen.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @since 4.9.0 Added the `$post` parameter.
|
||||
*
|
||||
* @param WP_Post $post WP_Post object for the current attachment.
|
||||
*/
|
||||
do_action( 'attachment_submitbox_misc_actions' );
|
||||
do_action( 'attachment_submitbox_misc_actions', $post );
|
||||
?>
|
||||
</div><!-- #misc-publishing-actions -->
|
||||
<div class="clear"></div>
|
||||
@@ -914,7 +921,7 @@ function link_submit_meta_box($link) {
|
||||
<div id="major-publishing-actions">
|
||||
<?php
|
||||
/** This action is documented in wp-admin/includes/meta-boxes.php */
|
||||
do_action( 'post_submitbox_start' );
|
||||
do_action( 'post_submitbox_start', null );
|
||||
?>
|
||||
<div id="delete-action">
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user