WordPress.org

Make WordPress Core

Ticket #36085: 36085.1.diff

File 36085.1.diff, 1.5 KB (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..694d609 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
    function wp_import_upload_form( $action ) { 
    892901 * @param string|array|WP_Screen $screen        Optional. The screen or screens on which to show the box
    893902 *                                              (such as a post type, 'link', or 'comment'). Accepts a single
    894903 *                                              screen ID, WP_Screen object, or array of screen IDs. Default
    895  *                                              is the current screen.  If you have used add_menu_page() or 
     904 *                                              is the current screen.  If you have used add_menu_page() or
    896905 *                                              add_submenu_page() to create a new screen (and hence screen_id),
    897906 *                                              make sure your menu slug conforms to the limits of sanitize_key()
    898907 *                                              otherwise the 'screen' menu may not correctly render on your page.