|
@@ 382-384 (lines=3) @@
|
| 379 |
|
unset( $attrs[ 'data' ] ); |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
if ( isset( $item['id'] ) && !isset( $item['single-id'] ) ) { |
| 383 |
|
$item['single-id'] = $item['id']; |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
$tooltipParams = []; |
| 387 |
|
if ( isset( $item['tooltip-params'] ) ) { |
|
@@ 464-469 (lines=6) @@
|
| 461 |
|
foreach ( [ 'id', 'class', 'active', 'tag', 'itemtitle' ] as $k ) { |
| 462 |
|
unset( $link[$k] ); |
| 463 |
|
} |
| 464 |
|
if ( isset( $item['id'] ) && !isset( $item['single-id'] ) ) { |
| 465 |
|
// The id goes on the <li> not on the <a> for single links |
| 466 |
|
// but makeSidebarLink still needs to know what id to use when |
| 467 |
|
// generating tooltips and accesskeys. |
| 468 |
|
$link['single-id'] = $item['id']; |
| 469 |
|
} |
| 470 |
|
if ( isset( $link['link-class'] ) ) { |
| 471 |
|
// link-class should be set on the <a> itself, |
| 472 |
|
// so pass it in as 'class' |