Making WordPress.org

Changeset 3107


Ignore:
Timestamp:
05/10/2016 06:48:34 PM (8 years ago)
Author:
iandunn
Message:

WordCamp QBO: Replace invalid colon characters in Customer records.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php

    r2917 r3107  
    791791        $sponsor                  = array_map( 'sanitize_text_field', $sponsor );
    792792        $sponsor['email-address'] = is_email( $sponsor['email-address'] );
     793        $sponsor['first-name']    = str_replace( ':', '-', $sponsor['first-name']   );
     794        $sponsor['last-name']     = str_replace( ':', '-', $sponsor['last-name']    );
     795        $sponsor['company-name']  = str_replace( ':', '-', $sponsor['company-name'] );
    793796        $currency_code            = sanitize_text_field( $currency_code );
    794797
Note: See TracChangeset for help on using the changeset viewer.