Making WordPress.org

Changeset 9944


Ignore:
Timestamp:
05/29/2020 03:31:32 AM (4 years ago)
Author:
dd32
Message:

Login: When a login is for a non-wordpress.org domain, include some basic text to make it clear that their WordPress.org account is intended to be used for the site.

See #5239.

File:
1 edited

Legend:

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

    r6660 r9944  
    77
    88get_header();
     9
     10$from = $_GET['from'] ?? 'wordpress.org';
    911?>
    10 <p class="intro"><?php _e( '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' ); ?></p>
     12<p class="intro"><?php
     13if ( false !== stripos( $from, 'buddypress.org' ) ) {
     14    echo '<strong>' . __( 'BuddyPress is part of WordPress.org', 'wporg' ) . '</strong><br>';
     15    _e( 'Log in to your WordPress.org account to contribute to BuddyPress, or get help in the support forums.', 'wporg' );
     16
     17} elseif ( false !== stripos( $from, 'bbpress.org' ) ) {
     18    echo '<strong>' . __( 'bbPress is part of WordPress.org', 'wporg' ) . '</strong><br>';
     19    _e( 'Log in to your WordPress.org account to contribute to bbPress, or get help in the support forums.', 'wporg' );
     20
     21} elseif ( false !== stripos( $from, 'wordcamp.org' ) ) {
     22    echo '<strong>' . __( 'WordCamp is part of WordPress.org', 'wporg' ) . '</strong><br>';
     23    _e( 'Log in to your WordPress.org account to contribute to WordCamps and meetups around the globe.', 'wporg' );
     24
     25} else {
     26    _e( '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' );
     27}
     28?>
     29</p>
    1130
    1231<?php wp_login_form(); ?>
Note: See TracChangeset for help on using the changeset viewer.