@@ 198-203 (lines=6) @@ | ||
195 | $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); |
|
196 | ||
197 | $attributes = ''; |
|
198 | foreach ( $atts as $attr => $value ) { |
|
199 | if ( ! empty( $value ) ) { |
|
200 | $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); |
|
201 | $attributes .= ' ' . $attr . '="' . $value . '"'; |
|
202 | } |
|
203 | } |
|
204 | ||
205 | /** This filter is documented in wp-includes/post-template.php */ |
|
206 | $title = apply_filters( 'the_title', $item->title, $item->ID ); |
@@ 184-189 (lines=6) @@ | ||
181 | $atts = apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page ); |
|
182 | ||
183 | $attributes = ''; |
|
184 | foreach ( $atts as $attr => $value ) { |
|
185 | if ( ! empty( $value ) ) { |
|
186 | $value = esc_attr( $value ); |
|
187 | $attributes .= ' ' . $attr . '="' . $value . '"'; |
|
188 | } |
|
189 | } |
|
190 | ||
191 | $output .= $indent . sprintf( |
|
192 | '<li class="%s"><a%s>%s%s%s</a>', |