From c5d9fa67a26763e5fc1c0acf17c6942545d66097 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Oct 2017 00:54:22 +0000 Subject: [PATCH] Posts, Post Types: Introduce `page_attributes_misc_attributes` action that fires before the help hint text in the 'Page Attributes' meta box. Props markcallen, MikeHansenMe. Fixes #34034. git-svn-id: https://develop.svn.wordpress.org/trunk@41763 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 1bc057141d..aff859e5c0 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -828,7 +828,7 @@ function page_attributes_meta_box($post) { * @see wp_dropdown_pages() * * @param array $dropdown_args Array of arguments used to generate the pages drop-down. - * @param WP_Post $post The current WP_Post object. + * @param WP_Post $post The current post. */ $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); $pages = wp_dropdown_pages( $dropdown_args ); @@ -875,6 +875,16 @@ $default_title = apply_filters( 'default_page_template_title', __( 'Default Tem post_type, 'page-attributes' ) ) : ?>

+ post_type && get_current_screen()->get_help_tabs() ) : ?>