Make WordPress Core


Ignore:
Timestamp:
05/14/2010 06:20:30 AM (14 years ago)
Author:
nacin
Message:

First pass on 'Theme Locations' for navigation menus. Themes need to specify a location when calling wp_nav_menu and register locations in functions.php. Users then map menus to locations in the nav menu admin. Subject to review. see #13378.

File:
1 edited

Legend:

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

    r14611 r14620  
    8080    add_theme_support( 'post-thumbnails' );
    8181
    82     // This theme uses wp_nav_menu()
    83     register_nav_menus( array('main' => __('Main Menu')) );
    84 
    8582    // Add default posts and comments RSS feed links to head
    8683    add_theme_support( 'automatic-feed-links' );
     
    9491    if ( is_readable( $locale_file ) )
    9592        require_once( $locale_file );
     93
     94    // This theme uses wp_nav_menu() in one location.
     95    register_nav_menus( array(
     96        'primary' => __( 'Primary Menu', 'twentyten' ),
     97    ) );
    9698
    9799    // This theme allows users to set a custom background
Note: See TracChangeset for help on using the changeset viewer.