diff --git a/src/wp-includes/class-walker-nav-menu.php b/src/wp-includes/class-walker-nav-menu.php
index eb452e3..e0af549 100644
a
|
b
|
class Walker_Nav_Menu extends Walker { |
172 | 172 | $atts = array(); |
173 | 173 | $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; |
174 | 174 | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
175 | | $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; |
| 175 | if ( '_blank' === $item->target && empty( $item->xfn ) ) { |
| 176 | $atts['rel'] = 'noopener noreferrer'; |
| 177 | } else { |
| 178 | $atts['rel'] = $item->xfn; |
| 179 | } |
176 | 180 | $atts['href'] = ! empty( $item->url ) ? $item->url : ''; |
177 | 181 | $atts['aria-current'] = $item->current ? 'page' : ''; |
178 | 182 | |