WordPress.org

Make WordPress Core

Ticket #12941: get_template_part-r14044.txt

File get_template_part-r14044.txt, 503 bytes (added by ev3rywh3re, 10 years ago)

Patch to bing back underscore to get_template_part action

Line 
1Index: wp-includes/general-template.php
2===================================================================
3--- wp-includes/general-template.php    (revision 14044)
4+++ wp-includes/general-template.php    (working copy)
5@@ -114,7 +114,7 @@
6  * @param string $name The name of the specialised template.
7  */
8 function get_template_part( $slug, $name = null ) {
9-       do_action( "get_template_part{$slug}", $name );
10+       do_action( "get_template_part_{$slug}", $name );
11 
12        $templates = array();
13        if ( isset($name) )