Making WordPress.org


Ignore:
Timestamp:
10/23/2019 06:09:31 AM (2 years ago)
Author:
dd32
Message:

Login: Add a link expired template, and redirect expierd links to that url.

See #4739.

File:
1 copied

Legend:

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

    r9223 r9224  
    11<?php
    22/**
    3  * The logged out Template
     3 * The expired link Template
    44 *
    55 * @package wporg-login
    66 */
    77
     8$reason = WP_WPOrg_SSO::$matched_route_params['reason'] ?? false;
     9$user   = WP_WPOrg_SSO::$matched_route_params['user'] ?? false;
     10
    811get_header();
    912?>
    1013
    11 <p class="center"><?php _e( 'You are now logged out.', 'wporg' ); ?></p>
     14<h2 class="center"><?php _e( 'Link Expired', 'wporg' ); ?></h2>
     15
     16<p class="center"><?php _e( "The link you've followed has expired.", 'wporg' ); ?></p>
     17
     18<?php
     19if ( 'register' == $reason && $user ) {
     20        echo '<p class="center"><a href="' . esc_url( home_url( '/register/' . urlencode( $user ) ) ) . '">' .
     21            sprintf(
     22                /* translators: %s: An account name. */
     23                __( 'Start over, and register %s.', 'wporg' ),
     24                '<code>' . esc_html( $register_user ) . '</code>'
     25            ) .
     26            '</a></p>';
     27} elseif ( 'lostpassword' == $reason && $user ) {
     28    echo '<p class="center"><a href="' . esc_url( home_url( '/lostpassword/'  . urlencode( $user ) ) ) . '">' .
     29            __( 'Reset your password.', 'wporg' ) .
     30            '</a></p>';
     31}
     32?>
    1233
    1334<p id="nav">
Note: See TracChangeset for help on using the changeset viewer.