WP-4741 Adding new handling for login/logout links.