WordPress.org

Making WordPress.org

Changeset 4116


Ignore:
Timestamp:
09/22/2016 05:25:18 PM (5 years ago)
Author:
coffee2code
Message:

Theme Directory: Update login link on upload form to point to login.wordpress.org and to redirect back afterwards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php

    r2915 r4116  
    4040        </form>
    4141    <?php else : ?>
    42         <p><?php printf( __( 'Before you can upload a new theme, <a href="%s">please log in</a>.', 'wporg-themes' ), esc_url( 'https://wordpress.org/support/bb-login.php' ) ); ?><p>
     42        <p><?php printf(
     43            __( 'Before you can upload a new theme, <a href="%s">please log in</a>.', 'wporg-themes' ),
     44            add_query_arg(
     45                'redirect_to',
     46                urlencode( 'https://wordpress.org/themes/upload/' ),
     47                'https://login.wordpress.org/'
     48            )
     49        ); ?><p>
    4350    <?php endif;
    4451}
Note: See TracChangeset for help on using the changeset viewer.