Making WordPress.org

Changeset 13883

Timestamp:
07/08/2024 02:12:20 AM (3 weeks ago)
Author:
dd32
Message:

Login: Add a callout for learn.wordpress.org on the login form, when the login request came from that domain.

See https://github.com/WordPress/Learn/issues/2538

File:
1 edited

Legend:

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

    r13588 r13883  
    474474    }
    475475
    476     if ( false !== stripos( $from, 'buddypress.org' ) ) {
     476    if ( s( $from, 'buddypress.org' ) ) {
    477477        $message .= '<strong>' . __( 'BuddyPress is part of WordPress.org', 'wporg' ) . '</strong><br>';
    478478        $message .= __( 'Log in to your WordPress.org account to contribute to BuddyPress, or get help in the support forums.', 'wporg' );
    479479   
    480     } elseif ( false !== stripos( $from, 'bbpress.org' ) ) {
     480    } elseif ( s( $from, 'bbpress.org' ) ) {
    481481        $message .= '<strong>' . __( 'bbPress is part of WordPress.org', 'wporg' ) . '</strong><br>';
    482482        $message .= __( 'Log in to your WordPress.org account to contribute to bbPress, or get help in the support forums.', 'wporg' );
    483483   
    484     } elseif ( false !== stripos( $from, 'wordcamp.org' ) ) {
     484    } elseif ( s( $from, 'wordcamp.org' ) ) {
    485485        $message .= '<strong>' . __( 'WordCamp is part of WordPress.org', 'wporg' ) . '</strong><br>';
    486486        $message .= __( 'Log in to your WordPress.org account to contribute to WordCamps and meetups around the globe.', 'wporg' );
    487487   
     488
     489
     490
     491
    488492    } else {
    489493        $message .= __( 'Log in to your WordPress.org account to contribute to WordPress, get help in the support forum, or rate and review themes and plugins.', 'wporg' );
Note: See TracChangeset for help on using the changeset viewer.