From 33beafaf02adbec145a1429bd2e72f18dba054f6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Oct 2017 00:55:47 +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. Built from https://develop.svn.wordpress.org/trunk@41763 git-svn-id: http://core.svn.wordpress.org/trunk@41597 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/meta-boxes.php | 12 +++++++++++- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 1bc057141d..aff859e5c0 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/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() ) : ?>