Make WordPress Core


Ignore:
Timestamp:
05/07/2010 06:11:58 PM (15 years ago)
Author:
nacin
Message:

Properly handle the wp_page_args filter in Twenty Ten. fixes #13293, props demetris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r14469 r14500  
    207207if ( ! function_exists( 'twentyten_page_menu_args' ) ) :
    208208/**
    209  * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link
     209 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
    210210 */
    211211function twentyten_page_menu_args($args) {
    212     $args = array(
    213         'sort_column' => 'menu_order, post_title',
    214         'menu_class'  => 'menu',
    215         'echo'        => true,     
    216         'show_home' => true     
    217     );
     212    $args['show_home'] = true;
    218213    return $args;
    219214}
Note: See TracChangeset for help on using the changeset viewer.