Make WordPress Core

Changeset 34350


Ignore:
Timestamp:
09/20/2015 08:14:40 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Pass the current post object to 'page_attributes_meta_box_template' action added in [34340].

Props DrewAPicture.
Fixes #33625.

File:
1 edited

Legend:

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

    r34349 r34350  
    786786     * @since 4.4.0
    787787     *
    788      * @param string $template The template used for the current post.
     788     * @param string  $template The template used for the current post.
     789     * @param WP_Post $post     The current post.
    789790     */
    790     do_action( 'page_attributes_meta_box_template', $template );
     791    do_action( 'page_attributes_meta_box_template', $template, $post );
    791792?></p>
    792793<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
Note: See TracChangeset for help on using the changeset viewer.