Making WordPress.org


Ignore:
Timestamp:
11/15/2016 07:51:05 PM (7 years ago)
Author:
iandunn
Message:

CampTix Badge Generator: Change default to not replace empty Twitter with name

Replacing empty Twitter usernames with the attendee's first name is less common than just leaving it blank, so it should not be the default behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/indesign-badges.php

    r4357 r4359  
    137137    $csv_handle            = fopen( $csv_filename, 'w' );
    138138    $destination_directory = "Macintosh HD:Users:your_username:Desktop:$zip_local_folder:gravatars:";
    139     $empty_twitter         = 'replace';
     139    $empty_twitter         = '';
    140140
    141141    $header_row = array(
     
    247247 * @return string
    248248 */
    249 function format_twitter_username( $username, $first_name, $empty_mode = 'replace' ) {
     249function format_twitter_username( $username, $first_name, $empty_mode = '' ) {
    250250    if ( empty ( $username ) ) {
    251251        if ( 'replace' === $empty_mode ) {
Note: See TracChangeset for help on using the changeset viewer.