Making WordPress.org

Changeset 7264


Ignore:
Timestamp:
06/04/2018 05:46:23 AM (7 years ago)
Author:
tellyworth
Message:

Login: preserve redirect_to when switching locales.

Fixes #3640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r6679 r7264  
    191191    <div class="language-switcher">
    192192        <form id="language-switcher" action="" method="GET">
     193            <?php if ( !empty( $_GET['redirect_to'] ) ): ?>
     194                <input type="hidden" name="redirect_to" value="<?php esc_attr_e( $_GET['redirect_to'] ); ?>" />
     195            <?php endif; ?>
    193196            <label for="language-switcher-locales">
    194197                <span aria-hidden="true" class="dashicons dashicons-translation"></span>
Note: See TracChangeset for help on using the changeset viewer.