mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Make new nav menu items have a blank description and attr_title. See #16799.
git-svn-id: https://develop.svn.wordpress.org/trunk@18733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ed5fdbb499
commit
df9f6eb62a
@ -636,8 +636,8 @@ function wp_setup_nav_menu_item( $menu_item ) {
|
||||
$menu_item->url = get_permalink( $menu_item->ID );
|
||||
$menu_item->target = '';
|
||||
|
||||
$menu_item->attr_title = apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt );
|
||||
$menu_item->description = apply_filters( 'nav_menu_description', $menu_item->post_content );
|
||||
$menu_item->attr_title = apply_filters( 'nav_menu_attr_title', '' );
|
||||
$menu_item->description = apply_filters( 'nav_menu_description', '' );
|
||||
$menu_item->classes = array();
|
||||
$menu_item->xfn = '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user