Make WordPress Core

Ticket #41575: 41575.diff

File 41575.diff, 741 bytes (added by jdeeburke, 7 years ago)
  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 81ba70d40b..27291405f5 100644
    a b function get_sidebar( $name = null ) { 
    133133 * @param string $name The name of the specialised template.
    134134 */
    135135function get_template_part( $slug, $name = null ) {
     136        /**
     137         * Fires before the template part is loaded.
     138         *
     139         * @since 5.0.0
     140         *
     141         * @param string      $slug The slug name for the generic template.
     142         * @param string|null $name The name of the specialized template.
     143         */
     144        do_action( 'get_template_part', $slug, $name );
     145
    136146        /**
    137147         * Fires before the specified template part file is loaded.
    138148         *