@@ -178,10 +178,10 @@ |
||
| 178 | 178 | |
| 179 | 179 | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
| 180 | 180 | if ( '_blank' === $item->target && empty( $item->xfn ) ) { |
| 181 | - $atts['rel'] = 'noopener noreferrer'; |
|
| 182 | - } else { |
|
| 183 | - $atts['rel'] = $item->xfn; |
|
| 184 | - } |
|
| 181 | + $atts['rel'] = 'noopener noreferrer'; |
|
| 182 | + } else { |
|
| 183 | + $atts['rel'] = $item->xfn; |
|
| 184 | + } |
|
| 185 | 185 | // If item has_children add atts to <a>. |
| 186 | 186 | if ( isset( $args->has_children ) && $args->has_children && 0 === $depth && $args->depth > 1 ) { |
| 187 | 187 | $atts['href'] = '#'; |