XAMPP-VM Mac OS Mojave wordpress debugging using XDebug

After days of struggle to enable debugging, I switched to MAMP free version which was a cakewalk. For Step by step guide please follow this blog by Josh Buchea. Has a detailed walkthrough. Hope this helps someone stuck on Mac with Xampp-VM like i did. Switch to MAMP free version. Happy coding WordPress PHP

Why is the domain name missing from the logout redirect?

I have traced the problem to this code in wp-login.php: case ‘logout’ : check_admin_referer(‘log-out’); $user = wp_get_current_user(); wp_logout(); echo “hello”; echo $_REQUEST[‘redirect_to’]; if ( ! empty( $_REQUEST[‘redirect_to’] ) ) { $redirect_to = $requested_redirect_to = $_REQUEST[‘redirect_to’]; } else { $redirect_to = ‘wp-login.php?loggedout=true’; $requested_redirect_to = ”; } It appears if I change this line: $redirect_to = ‘wp-login.php?loggedout=true’; … Read more