WordPress.org

Make WordPress Core

Changeset 38434


Ignore:
Timestamp:
08/29/2016 08:41:42 PM (4 years ago)
Author:
johnbillion
Message:

Themes: Correct the type for the $name parameter of the get_header, get_footer, get_sidebar, and get_template_part_{$slug} hooks.

See #37770

File:
1 edited

Legend:

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

    r38411 r38434  
    3131     * @since 2.8.0 $name parameter added.
    3232     *
    33      * @param string $name Name of the specific header file to use.
     33     * @param string|null $name Name of the specific header file to use. null for the default header.
    3434     */
    3535    do_action( 'get_header', $name );
     
    7070     * @since 2.8.0 $name parameter added.
    7171     *
    72      * @param string $name Name of the specific footer file to use.
     72     * @param string|null $name Name of the specific footer file to use. null for the default footer.
    7373     */
    7474    do_action( 'get_footer', $name );
     
    109109     * @since 2.8.0 $name parameter added.
    110110     *
    111      * @param string $name Name of the specific sidebar file to use.
     111     * @param string|null $name Name of the specific sidebar file to use. null for the default sidebar.
    112112     */
    113113    do_action( 'get_sidebar', $name );
     
    153153     * @since 3.0.0
    154154     *
    155      * @param string $slug The slug name for the generic template.
    156      * @param string $name The name of the specialized template.
     155     * @param string      $slug The slug name for the generic template.
     156     * @param string|null $name The name of the specialized template.
    157157     */
    158158    do_action( "get_template_part_{$slug}", $slug, $name );
Note: See TracChangeset for help on using the changeset viewer.