Make WordPress Core

Changeset 40955


Ignore:
Timestamp:
06/26/2017 08:55:15 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r40946 r40955  
    2323    /**
    2424     * Fires before the header template file is loaded.
    25      *
    26      * The hook allows a specific header template file to be used in place of the
    27      * default header template file. If your file is called header-new.php,
    28      * you would specify the filename in the hook as get_header( 'new' ).
    2925     *
    3026     * @since 2.1.0
     
    6359     * Fires before the footer template file is loaded.
    6460     *
    65      * The hook allows a specific footer template file to be used in place of the
    66      * default footer template file. If your file is called footer-new.php,
    67      * you would specify the filename in the hook as get_footer( 'new' ).
    68      *
    6961     * @since 2.1.0
    7062     * @since 2.8.0 $name parameter added.
     
    10193    /**
    10294     * Fires before the sidebar template file is loaded.
    103      *
    104      * The hook allows a specific sidebar template file to be used in place of the
    105      * default sidebar template file. If your file is called sidebar-new.php,
    106      * you would specify the filename in the hook as get_sidebar( 'new' ).
    10795     *
    10896     * @since 2.2.0
Note: See TracChangeset for help on using the changeset viewer.