WordPress.org

Make WordPress Core

Ticket #36085: 36085.2.diff

File 36085.2.diff, 601 bytes (added by NathanAtmoz, 3 years ago)
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 4846fcd..f8c4633 100644
    a b function get_inline_data($post) { 
    337337        if ( post_type_supports( $post->post_type, 'post-formats' ) )
    338338                echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';
    339339
     340        /**
     341         * Fires after getting the inline data
     342         *
     343         * @since 4.9.0
     344         *
     345         * @param WP_Post $post Current post object
     346         */
     347        do_action( 'add_inline_data', $post );
     348
    340349        echo '</div>';
    341350}
    342351