Changeset 46413 for trunk/src/wp-includes/class-walker-nav-menu.php
- Timestamp:
- 10/06/2019 03:04:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-nav-menu.php
r45537 r46413 204 204 $attributes = ''; 205 205 foreach ( $atts as $attr => $value ) { 206 if ( ! empty( $value )) {206 if ( is_scalar( $value ) && '' !== $value && false !== $value ) { 207 207 $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); 208 208 $attributes .= ' ' . $attr . '="' . $value . '"';
Note: See TracChangeset
for help on using the changeset viewer.