WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/27/2010 11:06:56 PM (11 years ago)
Author:
wpmuguru
Message:

more menu improvements, props ptahdunbar, see #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r13388 r13473  
    10461046    function WP_Nav_Menu_Widget() {
    10471047        $widget_ops = array('description' => __('Use this widget to add one of your navigation menus as a widget.') );
    1048         parent::WP_Widget(false, __('Navigation Menu'), $widget_ops);
     1048        parent::WP_Widget( false, __('Navigation Menu'), $widget_ops );
    10491049    }
    10501050
     
    10611061
    10621062        // Override for menu descriptions
    1063         $advanced_option_descriptions = get_option('wp_settings_custom_nav_advanced_options');
     1063        $advanced_option_descriptions = get_option('wp_settings_nav_menu_advanced_options');
    10641064        if ( $advanced_option_descriptions == 'no' ) {
    10651065            $navwidgetdescription = 2;
     
    11051105                // DISPLAY default UL
    11061106                ?>
    1107                 <ul class="custom-nav">
     1107                <ul class="menu">
    11081108                <?php
    11091109            }
    11101110            wp_nav_menu( array('id' => $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription, 'format' => 'widget') );
    11111111            if ( $navdeveloper == 'yes' ) {
    1112                 //DISPLAY Custom UL
     1112                // DISPLAY Custom UL
    11131113                if ( $navul == 'yes' ) {
    11141114                    ?>
     
    11171117                }
    11181118            } else {
    1119                 //DISPLAY default UL
     1119                // DISPLAY default UL
    11201120                ?>
    11211121                </ul>
     
    12581258        <?php
    12591259        }
    1260         $advanced_option_descriptions = get_option('wp_settings_custom_nav_advanced_options');
     1260        $advanced_option_descriptions = get_option('wp_settings_nav_menu_advanced_options');
    12611261        ?>
    12621262        <p <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?>>
Note: See TracChangeset for help on using the changeset viewer.