WordPress.org

Make WordPress Core

Changeset 34895


Ignore:
Timestamp:
10/07/2015 02:44:59 AM (4 years ago)
Author:
wonderboymusic
Message:

Meta Boxes: add an action, post_submitbox_minor_actions. post_submitbox_misc_actions already exists. Pass $post to both for context - avoids having to check for a global post.

Props jonathanbardo, chriscct7, DrewAPicture.
Fixes #26267.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r34566 r34895  
    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 -->
     
    208218 *
    209219 * @since 2.9.0
    210  */
    211 do_action( 'post_submitbox_misc_actions' );
     220 * @since 4.4.0 Added the `$post` parameter.
     221 *
     222 * @param WP_Post $post WP_Post object for the current post.
     223 */
     224do_action( 'post_submitbox_misc_actions', $post );
    212225?>
    213226</div>
Note: See TracChangeset for help on using the changeset viewer.