Making WordPress.org

Changeset 14320


Ignore:
Timestamp:
12/20/2024 01:41:05 AM (13 months ago)
Author:
tellyworth
Message:

Login: add holiday mode support to registration screen

See https://wordpress.org/news/2024/12/holiday-break/

File:
1 edited

Legend:

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

    r14295 r14320  
    4444    $terms_of_service_error = ! $terms_of_service || $terms_of_service > TOS_REVISION;
    4545
     46    $wporg_on_holiday = defined( 'WPORG_ON_HOLIDAY' ) && WPORG_ON_HOLIDAY;
     47
    4648    // handle user registrations.
    47     if ( ! $error_user_login && ! $error_user_email && ! $terms_of_service_error ) {
     49    if ( ! $wporg_on_holiday && ! $error_user_login && ! $error_user_email && ! $terms_of_service_error ) {
    4850
    4951        $recaptcha = wporg_login_check_recapcha_status( 'register', false /* Allow low scores to pass through */ );
     
    6870
    6971get_header();
     72
    7073?>
     74
     75<?php if ( defined( 'WPORG_ON_HOLIDAY' ) && WPORG_ON_HOLIDAY ) : ?>
     76        <p><?php printf( __( 'New user registration is currently unavailable. Please check back after the <a href="%s">holiday break</a>.', 'wporg' ), 'https://wordpress.org/news/2024/12/holiday-break/' ); ?></p>
     77<?php else: ?>
    7178
    7279<p class="intro"><?php _e( 'Create a WordPress.org account to start contributing to WordPress, get help in the support forums, or rate and review themes and plugins.', 'wporg' ); ?></p>
     
    142149</form>
    143150
     151<?php endif; // WPORG_ON_HOLIDAY else ?>
     152
    144153<p id="nav">
    145154    <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg' ); ?>"><?php _e( 'Already have an account?', 'wporg' ); ?></a> &nbsp; • &nbsp;
Note: See TracChangeset for help on using the changeset viewer.