Ticket #47720: 47720.diff
File 47720.diff, 564 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/class-walker-nav-menu.php
diff --git a/src/wp-includes/class-walker-nav-menu.php b/src/wp-includes/class-walker-nav-menu.php index 06070ed0c8..42e0269664 100644
a b class Walker_Nav_Menu extends Walker { 203 203 204 204 $attributes = ''; 205 205 foreach ( $atts as $attr => $value ) { 206 if ( ! empty( $value ) ) { 206 if ( isset( $value ) ) { 207 207 208 $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); 208 209 $attributes .= ' ' . $attr . '="' . $value . '"'; 209 210 }