Making WordPress.org

Changeset 723


Ignore:
Timestamp:
06/26/2014 06:25:39 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Add note about fragile speaker name lookup.

File:
1 edited

Legend:

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

    r708 r723  
    12161216                continue;
    12171217
    1218             // Look for speakers by their names.
     1218            /*
     1219             * Look for speakers by their names.
     1220             *
     1221             * @todo - This is very fragile, it fails if the speaker name has a tab character instead of a space
     1222             * separating the first from last name, or an extra space at the end, etc. Those situations often arise
     1223             * from copy/pasting the speaker data from spreadsheets. Moving to automated speaker submissions and
     1224             * tighter integration with WordPress.org usernames should avoid this, but if not we should do something
     1225             * here to make it more forgiving.
     1226             */
    12191227            $speaker = get_page_by_title( $speaker_name, OBJECT, 'wcb_speaker' );
    12201228            if ( $speaker )
Note: See TracChangeset for help on using the changeset viewer.