WordPress.org

Make WordPress Core

Ticket #16392: template.php.patch

File template.php.patch, 344 bytes (added by outis, 2 years ago)

Add 'get_inline_data' action to function get_inline_data so plugins can add custom field data.

  • wp-admin/includes/template.php

    function get_inline_data($post) { 
    277277        if ( post_type_supports( $post->post_type, 'post-formats' ) ) 
    278278                echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>'; 
    279279 
     280        do_action('get_inline_data', $post); 
     281 
    280282        echo '</div>'; 
    281283} 
    282284