From d08982bdbca8e6839ecf72e18fa009f2f52778f3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 26 Jun 2017 20:56:42 +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. Built from https://develop.svn.wordpress.org/trunk@40955 git-svn-id: http://core.svn.wordpress.org/trunk@40805 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 12 ------------ wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 958ebeaa6c..3b186757f1 100644 --- a/wp-includes/general-template.php +++ b/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. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 2d1970dd4b..111df1cc65 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40954'; +$wp_version = '4.9-alpha-40955'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.