Ticket #40508: 40508.1.patch
File 40508.1.patch, 913 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/general-template.php
25 25 * 26 26 * @since 2.1.0 27 27 * @since 2.8.0 $name parameter added. 28 * @since 5.0 add after_get_header hook 28 29 * 29 30 * @param string|null $name Name of the specific header file to use. null for the default header. 30 31 */ … … 39 40 $templates[] = 'header.php'; 40 41 41 42 locate_template( $templates, true ); 43 44 do_action( 'after_get_header', $name ); 42 45 } 43 46 44 47 /** … … 51 54 * "special". 52 55 * 53 56 * @since 1.5.0 57 * @since 5.0 add after_get_footer hook 54 58 * 55 59 * @param string $name The name of the specialised footer. 56 60 */ … … 74 78 $templates[] = 'footer.php'; 75 79 76 80 locate_template( $templates, true ); 81 82 do_action( 'after_get_footer', $name ); 77 83 } 78 84 79 85 /**