From 4b7514b83d4354da7b2573268d34792615317aad Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 26 Jun 2017 20:55:15 +0000 Subject: [PATCH] Docs: Remove inaccurate parts of `get_header`, `get_footer`, and `get_sidebar` hooks documentation. These sentences suggested that the hooks allow a specific template file to be used in place of the default file, which is not the case. Props desrosj. Fixes #40892. git-svn-id: https://develop.svn.wordpress.org/trunk@40955 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 958ebeaa6c..3b186757f1 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -23,10 +23,6 @@ function get_header( $name = null ) { /** * Fires before the header template file is loaded. * - * The hook allows a specific header template file to be used in place of the - * default header template file. If your file is called header-new.php, - * you would specify the filename in the hook as get_header( 'new' ). - * * @since 2.1.0 * @since 2.8.0 $name parameter added. * @@ -62,10 +58,6 @@ function get_footer( $name = null ) { /** * Fires before the footer template file is loaded. * - * The hook allows a specific footer template file to be used in place of the - * default footer template file. If your file is called footer-new.php, - * you would specify the filename in the hook as get_footer( 'new' ). - * * @since 2.1.0 * @since 2.8.0 $name parameter added. * @@ -101,10 +93,6 @@ function get_sidebar( $name = null ) { /** * Fires before the sidebar template file is loaded. * - * The hook allows a specific sidebar template file to be used in place of the - * default sidebar template file. If your file is called sidebar-new.php, - * you would specify the filename in the hook as get_sidebar( 'new' ). - * * @since 2.2.0 * @since 2.8.0 $name parameter added. *