WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/16/2010 10:01:49 PM (11 years ago)
Author:
ryan
Message:

Menu item -> append should be a key/name, not a label. see #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu.php

    r13719 r13722  
    172172            $menu_item->parent_id = (int) $menu_item->post_parent;
    173173            $menu_item->type = get_post_meta( $menu_item->ID, 'menu_item_type', true );
    174             $menu_item->append = _x( get_post_meta( $menu_item->ID, 'menu_item_append', true ), 'nav menu item type' );
     174
     175            $menu_item->append = get_post_meta( $menu_item->ID, 'menu_item_append', true );
    175176           
    176177            $menu_item->title = $menu_item->post_title;
     
    191192            $menu_item->parent_id = (int) $menu_item->post_parent;
    192193            $menu_item->type = 'custom'; //$menu_item_type
    193             $menu_item->append = _x( 'Custom', 'nav menu item type' );
     194            $menu_item->append = 'custom';
    194195           
    195196            $menu_item->attr_title = strip_tags( $menu_item->post_excerpt );
     
    208209           
    209210            $object = get_post_type_object( $menu_item_object );
    210             $menu_item->append = _x( $object->singular_label, 'nav menu item type' );
     211            $menu_item->append = $object->name;
    211212
    212213            $menu_item->title = $menu_item->post_title;
     
    226227           
    227228            $object = get_taxonomy( $menu_item_object );
    228             $menu_item->append = _x( $object->singular_label, 'nav menu item type' );
     229            $menu_item->append = $object->name;
    229230
    230231            $menu_item->title = $menu_item->name;
     
    235236            break;
    236237    }
    237    
     238
    238239    $menu_item->classes = get_post_meta( $menu_item->ID, 'menu_item_classes', true );
    239240    $menu_item->xfn = get_post_meta( $menu_item->ID, 'menu_item_xfn', true );
Note: See TracChangeset for help on using the changeset viewer.