From c0903e830bdfe6b3d1366f964b492cb48d84e151 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 16 Jul 2018 15:34:25 +0000 Subject: [PATCH] Posts, Post Types: Add a new `add_inline_data` action which allows extra fields to be added to the inline editing fields. Props mensmaximus, NathanAtmoz. Merges [42676] and [43460] to the 4.9 branch. Fixes #36085. Built from https://develop.svn.wordpress.org/branches/4.9@43461 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43288 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 10 ++++++++++ wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 1ad35ca7ce..76ebe7156c 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -337,6 +337,16 @@ function get_inline_data($post) { if ( post_type_supports( $post->post_type, 'post-formats' ) ) echo '
' . esc_html( get_post_format( $post->ID ) ) . '
'; + /** + * Fires after outputting the fields for the inline editor for posts and pages. + * + * @since 4.9.8 + * + * @param WP_Post $post The current post object. + * @param WP_Post_Type $post_type_object The current post's post type object. + */ + do_action( 'add_inline_data', $post, $post_type_object ); + echo ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index e2ab6c9180..a6e8b2c20e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.8-alpha-43459'; +$wp_version = '4.9.8-alpha-43461'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.