Making WordPress.org

Changeset 1289


Ignore:
Timestamp:
02/20/2015 08:40:36 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Forms to Drafts: Remove prefixes from Grunion form labels.

Jetpack 334a713 added prefixes to the labels, which broke these forms. Removing them makes them work again.

See https://github.com/Automattic/jetpack/issues/1661

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

    r1287 r1289  
    210210        }
    211211
     212        $all_values               = $this->get_unprefixed_grunion_form_values( $all_values );
    212213        $wordcamp_to_form_key_map = array(
    213214            'Location'                        => 'WordCamp City, State, Country',
     
    258259        }
    259260
     261        $all_values               = $this->get_unprefixed_grunion_form_values( $all_values );
    260262        $wordcamp_to_form_key_map = array(
    261263            'Location'                        => 'Enter the city, state/province, and country where you would like to organize a WordCamp.',
     
    321323        }
    322324
     325        $all_values              = $this->get_unprefixed_grunion_form_values( $all_values );
    323326        $sponsor_to_form_key_map = array(
    324327            '_wcpt_sponsor_website' => 'Website',
     
    328331
    329332        // Create the post
    330         // todo need to unprefix $all_values, like call_for_speakers() does? if so, extract into DRY function
    331333        $draft_id = wp_insert_post( array(
    332334            'post_type'    => 'wcb_sponsor',
Note: See TracChangeset for help on using the changeset viewer.