From 4f46d6537c6cf1ad84993063cda52d9b23b59eed Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@13815 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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) )