WordPress.org

Support

Support » Plugins and Hacks » Polylang » [Resolved] Theme My Login loses the logout _wpnonce query string

[Resolved] Theme My Login loses the logout _wpnonce query string

Viewing 2 replies - 1 through 2 (of 2 total)
  • I forgot something.

    The last filter in my previous post is hooked like this:

    function p4tml_page_link( $link, $action, $query ) {
    	if( ! empty( $action ) )
    		return p4we_translate_post_url( $link, FALSE, FALSE, $action );
    	else
    		return $link;
    }
    add_filter( 'tml_page_link', 'p4tml_page_link', 10, 3 );

    Sorry

    The nonce is passed with PLL 1.4dev18 without the need of modifications, so the situation originating this post is solved.

    From the TODO I listed above, in order to translate TML’s custom user links permalinks, which I would suggest to enter them using the default language permalinks, I did this:

    function p4tml_user_links( $user_links ) {
    	foreach( $user_links as $key => $user_link ) {
    		$user_links[$key]['title'] = __( $user_link['title'] );
    		$user_links[$key]['url'] = p4we_translate_post_url( $user_link['url'] );
    	}
    	return $user_links;
    }
    add_filter( 'tml_user_links', 'p4tml_user_links', 11 );

    The p4we_language_conditions_are_met() function indicated inside the p4we_translate_post_url() function, only checks if the current language is different than the default language.

    You have to make sure that the translated custom user link title exists inside the ‘default’ translation domain, or conditionally select a different domain which will contain it, or use pll__ to maintain it inside the Strings Translation admin page.

    As always, thank you very much for your support, Chouby.

    Have a nice weekend!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Theme My Login loses the logout _wpnonce query string’ is closed to new replies.
Skip to toolbar