Making WordPress.org

Changeset 11702


Ignore:
Timestamp:
03/25/2022 10:39:55 AM (3 years ago)
Author:
Otto42
Message:

Photos: Use get_permalink() instead of a relative page slug, to provide the redirection URL for login links. Fixes #6215.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/uploads.php

    r11690 r11702  
    238238                    . sprintf(
    239239                        __( 'Please <a href="%s">log in or create an account</a> so you can upload a photo.', 'wporg-photos' ),
    240                         esc_url( wp_login_url( '/' . self::SUBMIT_PAGE_SLUG ) ) )
     240                        esc_url( wp_login_url( get_permalink() ) ) )
    241241                    . '</p>';
    242242            }
Note: See TracChangeset for help on using the changeset viewer.