Don't render the screen reader shortcut 'Log Out' link in the toolbar when the user is not logged in.

Merges [24442] to the 3.5 branch.

props SergeyBiryukov.
fixes #23178.



git-svn-id: http://core.svn.wordpress.org/branches/3.5@24443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-06-19 08:16:09 +00:00
parent 77bcadf65a
commit 11435aac3b
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