Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
On logout, explicitely send to index.php
Fix logout link in admin panel.

Co-authored-by: ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org>
  • Loading branch information
flortsch and ozh committed Oct 10, 2020
1 parent b347c36 commit aa0bf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions-html.php
Expand Up @@ -746,7 +746,7 @@ function yourls_html_menu() {

// Build menu links
if( defined( 'YOURLS_USER' ) ) {
$logout_link = yourls_apply_filter( 'logout_link', sprintf( yourls__('Hello <strong>%s</strong>'), YOURLS_USER ) . ' (<a href="' . yourls_admin_url() . '?action=logout" title="' . yourls_esc_attr__( 'Logout' ) . '">' . yourls__( 'Logout' ) . '</a>)' );
$logout_link = yourls_apply_filter( 'logout_link', sprintf( yourls__('Hello <strong>%s</strong>'), YOURLS_USER ) . ' (<a href="' . yourls_admin_url( 'index.php' ) . '?action=logout" title="' . yourls_esc_attr__( 'Logout' ) . '">' . yourls__( 'Logout' ) . '</a>)' );
} else {
$logout_link = yourls_apply_filter( 'logout_link', '' );
}
Expand Down

0 comments on commit aa0bf0e

Please sign in to comment.