Making WordPress.org

Changeset 14326


Ignore:
Timestamp:
12/20/2024 11:59:01 AM (4 weeks ago)
Author:
dd32
Message:

Login: Enable user registrations for upcoming 'nextgen events' too.

See [14320], [14325].
See https://github.com/WordPress/wordcamp.org/issues/1450.
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

    r14325 r14326  
    2222
    2323$user_registration_available = true;
    24 $is_wordcamp_registration    = str_contains( $_COOKIE['wporg_came_from'] ?? ( $_REQUEST['from'] ?? '' ), '.wordcamp.org' );
     24$registration_source         = $_COOKIE['wporg_came_from'] ?? ( $_REQUEST['from'] ?? '' );
     25$is_wordcamp_registration    = (
     26    str_contains( $registration_source, '.wordcamp.org' ) ||
     27    str_contains( $registration_source, 'events.wordpress.org')
     28);
    2529
    2630if ( defined( 'WPORG_ON_HOLIDAY' ) && WPORG_ON_HOLIDAY && ! $is_wordcamp_registration ) {
Note: See TracChangeset for help on using the changeset viewer.