WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/03/2010 10:52:30 PM (10 years ago)
Author:
nacin
Message:

Don't use target="_self" in nav menu links, just omit the attribute. Also fix and run earlier db upgrades. fixes #12808

File:
1 edited

Legend:

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

    r13897 r13974  
    251251            $menu_item->title = $menu_item->post_title;
    252252            $menu_item->url = get_permalink( $menu_item->ID );
    253             $menu_item->target = '_self';
     253            $menu_item->target = '';
    254254
    255255            $menu_item->attr_title = '';
     
    272272            $menu_item->title = $menu_item->name;
    273273            $menu_item->url = get_term_link( $menu_item, $menu_item_object );
    274             $menu_item->target = '_self';
     274            $menu_item->target = '';
    275275            $menu_item->attr_title = '';
    276276            $menu_item->description = strip_tags( $menu_item->description );
Note: See TracChangeset for help on using the changeset viewer.