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:
Andrew Nacin 2013-06-19 08:15:04 +00:00
parent bb1234c4be
commit 5f1a1eb77c
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