Making WordPress.org

Ticket #977: 977.diff

File 977.diff, 1.2 KB (added by hlashbrooke, 7 years ago)

Updating username to display to use user_login instead of user_nicename

  • wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    diff --git wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
    index dd19064..d6e02aa 100644
    class WordCamp_Post_Types_Plugin { 
    15491549                $wporg_user     = get_user_by( 'id', $user_id );
    15501550
    15511551                if ( $wporg_user )
    1552                         $wporg_username = $wporg_user->user_nicename;
     1552                        $wporg_username = $wporg_user->user_login;
    15531553                ?>
    15541554
    15551555                <?php wp_nonce_field( 'edit-speaker-info', 'wcpt-meta-speaker-info' ); ?>
    class WordCamp_Post_Types_Plugin { 
    15781578                $wporg_user     = get_user_by( 'id', $user_id );
    15791579
    15801580                if ( $wporg_user )
    1581                         $wporg_username = $wporg_user->user_nicename;
     1581                        $wporg_username = $wporg_user->user_login;
    15821582                ?>
    15831583
    15841584                <?php wp_nonce_field( 'edit-organizer-info', 'wcpt-meta-organizer-info' ); ?>
    class WordCamp_Post_Types_Plugin { 
    23562356                                $wporg_user = get_user_by( 'id', $user_id );
    23572357
    23582358                                if ( $wporg_user ) {
    2359                                         echo esc_html( $wporg_user->user_nicename );
     2359                                        echo esc_html( $wporg_user->user_login );
    23602360                                }
    23612361
    23622362                                break;