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:
Andrew Nacin 2013-06-19 08:15:04 +00:00
parent e5200a2d19
commit 50228002e8
1 changed files with 2 additions and 0 deletions

View File

@ -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