Changeset 14826 for trunk/wp-includes/nav-menu.php
- Timestamp:
- 05/23/2010 10:56:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/nav-menu.php
r14788 r14826 585 585 $menu_item->target = get_post_meta( $menu_item->ID, '_menu_item_target', true ); 586 586 587 $menu_item->attr_title = strip_tags($menu_item->post_excerpt );588 $menu_item->description = strip_tags($menu_item->post_content );587 $menu_item->attr_title = apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt ); 588 $menu_item->description = apply_filters( 'nav_menu_description', $menu_item->post_content ); 589 589 590 590 $menu_item->classes = get_post_meta( $menu_item->ID, '_menu_item_classes', true ); … … 604 604 $menu_item->target = ''; 605 605 606 $menu_item->attr_title = strip_tags($menu_item->post_excerpt );607 $menu_item->description = strip_tags($menu_item->post_content );606 $menu_item->attr_title = apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt ); 607 $menu_item->description = apply_filters( 'nav_menu_description', $menu_item->post_content ); 608 608 $menu_item->classes = ''; 609 609 $menu_item->xfn = ''; … … 625 625 $menu_item->target = ''; 626 626 $menu_item->attr_title = ''; 627 $menu_item->description = strip_tags( get_term_field( 'description', $menu_item->term_id, $menu_item->taxonomy ));627 $menu_item->description = get_term_field( 'description', $menu_item->term_id, $menu_item->taxonomy ); 628 628 $menu_item->classes = ''; 629 629 $menu_item->xfn = '';
Note: See TracChangeset
for help on using the changeset viewer.