From 80036738622e5b42756a7b2583c657d345184593 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 25 Mar 2010 22:02:45 +0000 Subject: [PATCH] Rename get_specific_template as get_template_part so as to make it clearer as to the point of the function. See #12371 git-svn-id: https://develop.svn.wordpress.org/trunk@13815 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index c5d9e969e5..5bebf9b739 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -94,10 +94,13 @@ function get_sidebar( $name = null ) { } /** - * Load a generic template. + * Load a template part into a template * - * Includes the named template for a theme or if a name is specified then a - * specialised template will be included. If the theme contains no {slug}.php file + * Makes it easy for a theme to reuse sections of code in a easy to overload way + * for child themes. + * + * Includes the named template part for a theme or if a name is specified then a + * specialised part will be included. If the theme contains no {slug}.php file * then no template will be included. * * For the parameter, if the file is called "{slug}-special.php" then specify @@ -105,13 +108,13 @@ function get_sidebar( $name = null ) { * * @uses locate_template() * @since 3.0.0 - * @uses do_action() Calls 'get_generic_template_{$slug}' action. + * @uses do_action() Calls 'get_template_part{$slug}' action. * * @param string $slug The slug name for the generic template. * @param string $name The name of the specialised template. */ -function get_generic_template( $slug, $name = null ) { - do_action( "get_generic_template_{$slug}", $name ); +function get_template_part( $slug, $name = null ) { + do_action( "get_template_part{$slug}", $name ); $templates = array(); if ( isset($name) )