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: http://core.svn.wordpress.org/trunk@24442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bb1234c4be
commit
5f1a1eb77c
|
@ -354,7 +354,9 @@ class WP_Admin_Bar {
|
|||
$this->_render_group( $group );
|
||||
} ?>
|
||||
</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>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue