WordPress.org

Make WordPress Core

Changeset 24443


Ignore:
Timestamp:
06/19/2013 08:16:09 AM (7 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/class-wp-admin-bar.php

    r22730 r24443  
    355355                } ?>
    356356            </div>
     357            <?php if ( is_user_logged_in() ) : ?>
    357358            <a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
     359            <?php endif; ?>
    358360        </div>
    359361
Note: See TracChangeset for help on using the changeset viewer.