Compatibility fix for redirections with qTranslate
-
This adds qTranslate support to all redirections by Theme My Login and any other plugins that use
wp_redirect
. Easiest way to use this is to paste this inside your theme’sfunctions.php
file.// QTranslate and Events Manager / Theme My Login / etc. redirection fix add_filter( 'wp_redirect', 'ml_redirect_fix', 1, 2 ); if ( ! function_exists( 'ml_redirect_fix' ) ): function ml_redirect_fix( $location, $status ) { if ( function_exists( 'qtrans_convertURL' ) ) { $location = qtrans_convertURL( $location ); } return( $location ); } endif;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Compatibility fix for redirections with qTranslate’ is closed to new replies.