Don't render the screen reader shortcut 'Log Out' link in the toolbar when the user is not logged in.
props SergeyBiryukov. fixes #23178. git-svn-id: https://develop.svn.wordpress.org/trunk@24442 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e5200a2d19
commit
50228002e8
|
@ -354,7 +354,9 @@ class WP_Admin_Bar {
|
||||||
$this->_render_group( $group );
|
$this->_render_group( $group );
|
||||||
} ?>
|
} ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if ( is_user_logged_in() ) : ?>
|
||||||
<a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
|
<a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue