Make WordPress Core

Changeset 35737


Ignore:
Timestamp:
11/25/2015 06:54:51 PM (9 years ago)
Author:
obenland
Message:

Template: Defining a default value for show_home breaks back compat.

To add a home link to the fallback menu output many themes only check if that
argument is set. Including Twenty Ten and Twenty Eleven. They check with
isset() so child themes and other instances using wp_page_menu() have a
chance to disable the home link by setting it to false.

Fixes #11095.

File:
1 edited

Legend:

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

    r35400 r35737  
    12281228        'container'   => 'div',
    12291229        'echo'        => true,
    1230         'show_home'   => false,
    12311230        'link_before' => '',
    12321231        'link_after'  => '',
Note: See TracChangeset for help on using the changeset viewer.