Making WordPress.org


Ignore:
Timestamp:
02/20/2015 08:42:13 PM (11 years ago)
Author:
iandunn
Message:

WordCamp Forms to Drafts: Match Sponsor form names with new site stub.

When new sites are created, the default Call for Sponsors form uses Title Case, and the field indexes are case-sensitive.

File:
1 edited

Legend:

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

    r1289 r1290  
    333333        $draft_id = wp_insert_post( array(
    334334            'post_type'    => 'wcb_sponsor',
    335             'post_title'   => $all_values['Company name'],
    336             'post_content' => $all_values['Company description'],
     335            'post_title'   => $all_values['Company Name'],
     336            'post_content' => $all_values['Company Description'],
    337337            'post_status'  => 'draft',
    338338            'post_author'  => $this->get_user_id_from_username( 'wordcamp' ),
Note: See TracChangeset for help on using the changeset viewer.