172 | | $atts = array(); |
173 | | $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; |
174 | | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
175 | | $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; |
176 | | $atts['href'] = ! empty( $item->url ) ? $item->url : ''; |
| 172 | $atts = array(); |
| 173 | $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; |
| 174 | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
| 175 | $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; |
| 176 | $atts['href'] = ! empty( $item->url ) ? $item->url : ''; |
| 177 | $atts['aria-current'] = $item->current ? 'page' : ''; |
187 | | * @type string $title Title attribute. |
188 | | * @type string $target Target attribute. |
189 | | * @type string $rel The rel attribute. |
190 | | * @type string $href The href attribute. |
| 188 | * @type string $title Title attribute. |
| 189 | * @type string $target Target attribute. |
| 190 | * @type string $rel The rel attribute. |
| 191 | * @type string $href The href attribute. |
| 192 | * @type string $aria_current The aria-current attribute. |