WordPress.org

Make WordPress Core

Ticket #26267: 26267.2.patch

File 26267.2.patch, 1022 bytes (added by DrewAPicture, 4 years ago)

+ $post parameter

  • src/wp-admin/includes/meta-boxes.php

     
    5151<input type="hidden" name="wp-preview" id="wp-preview" value="" />
    5252</div>
    5353<?php endif; // public post type ?>
     54<?php
     55/**
     56 * Fires before the post time/date setting in the Publish meta box.
     57 *
     58 * @since 4.4.0
     59 *
     60 * @param WP_Post $post WP_Post object for the current post.
     61 */
     62do_action( 'post_submitbox_minor_actions', $post );
     63?>
    5464<div class="clear"></div>
    5565</div><!-- #minor-publishing-actions -->
    5666
     
    207217 * Fires after the post time/date setting in the Publish meta box.
    208218 *
    209219 * @since 2.9.0
     220 * @since 4.4.0 Added the `$post` parameter.
     221 *
     222 * @param WP_Post $post WP_Post object for the current post.
    210223 */
    211 do_action( 'post_submitbox_misc_actions' );
     224do_action( 'post_submitbox_misc_actions', $post );
    212225?>
    213226</div>
    214227<div class="clear"></div>