mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Don't use target="_self" in nav menu links, just omit the attribute. Also fix and run earlier db upgrades. fixes #12808
git-svn-id: https://develop.svn.wordpress.org/trunk@13974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1196,7 +1196,7 @@ class Walker_Nav_Menu extends Walker {
|
||||
|
||||
// @todo add classes for parent/child relationships
|
||||
|
||||
$css_class = join( ' ', apply_filters('nav_menu_css_class', $css_class, $item) );
|
||||
$css_class = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $css_class ), $item ) );
|
||||
}
|
||||
|
||||
$maybe_value = ( 'backend' == $args->context ) ? ' value="'. $item->ID .'"' : '';
|
||||
|
||||
Reference in New Issue
Block a user