Browse Source

fix: force redirect to dashboard upon login

pull/384/head
Felipe Dalcin 2 years ago
parent
commit
ace5f2e938
  1. 2
      inc/helpers/namespace.php

2
inc/helpers/namespace.php

@ -354,7 +354,7 @@ function get_default_menu( $items = '' ) {
if ( ! is_user_logged_in() ) {
$items .= sprintf(
'<li class="%3$s %3$s-%4$s"><a href="%1$s">%2$s</a></li>',
wp_login_url(),
wp_login_url( admin_url( 'index.php?page=pb_home_page' ) ),
__( 'Sign In', 'pressbooks-aldine' ),
$item_classes['prefix'],
$item_classes['SignIn']

Loading…
Cancel
Save