Fix bookshelf link in mobile menu showing if logged-out

This commit is contained in:
Tetrakern 2024-10-20 20:11:08 +02:00
parent fd3d9214fd
commit e476cfdafd

View File

@ -381,7 +381,7 @@ function fictioneer_mobile_user_menu() {
) )
) { ) {
$output['bookshelf'] = sprintf( $output['bookshelf'] = sprintf(
'<a href="%s" rel="noopener noreferrer nofollow"><i class="fa-solid fa-list mobile-menu__item-icon"></i> %s</a>', '<a href="%s" class="hide-if-logged-out" rel="noopener noreferrer nofollow"><i class="fa-solid fa-list mobile-menu__item-icon"></i> %s</a>',
esc_url( $bookshelf_link ), esc_url( $bookshelf_link ),
fcntr( 'bookshelf' ) fcntr( 'bookshelf' )
); );