WordPress.org

Making WordPress.org

Ticket #2383: 2383.diff

File 2383.diff, 2.4 KB (added by chandrapatel, 3 years ago)
  • wordcamp.org/public_html/wp-content/plugins/wc-post-types/views/sponsors/metabox-sponsor-info.php

    diff --git wordcamp.org/public_html/wp-content/plugins/wc-post-types/views/sponsors/metabox-sponsor-info.php wordcamp.org/public_html/wp-content/plugins/wc-post-types/views/sponsors/metabox-sponsor-info.php
    index 7f06f18f..9bbd174a 100644
     
    108108        </li>
    109109
    110110        <li>
     111                <label for="_wcpt_sponsor_twitter_handle">
     112                        <?php esc_html_e( 'Twitter Handle:', 'wordcamporg' ); ?>
     113                </label>
     114
     115                <input
     116                        type="text"
     117                        class="regular-text"
     118                        id="_wcpt_sponsor_twitter_handle"
     119                        name="_wcpt_sponsor_twitter_handle"
     120                        value="<?php echo esc_attr( $twitter_handle ); ?>"
     121                />
     122        </li>
     123
     124        <li>
    111125                <label for="_wcpt_sponsor_vat_number">
    112126                        <?php _e( 'VAT Number:', 'wordcamporg' ); ?>
    113127                </label>
  • wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    diff --git wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
    index 5af1778b..488fb507 100644
    class WordCamp_Post_Types_Plugin { 
    17021702                $email_address     = get_post_meta( $sponsor->ID, '_wcpt_sponsor_email_address',     true );
    17031703                $phone_number      = get_post_meta( $sponsor->ID, '_wcpt_sponsor_phone_number',      true );
    17041704                $vat_number        = get_post_meta( $sponsor->ID, '_wcpt_sponsor_vat_number',        true );
     1705                $twitter_handle    = get_post_meta( $sponsor->ID, '_wcpt_sponsor_twitter_handle',    true );
    17051706
    17061707                $street_address1 = get_post_meta( $sponsor->ID, '_wcpt_sponsor_street_address1',   true );
    17071708                $street_address2 = get_post_meta( $sponsor->ID, '_wcpt_sponsor_street_address2',   true );
    class WordCamp_Post_Types_Plugin { 
    19041905
    19051906                if ( isset( $_POST['wcpt-meta-sponsor-info'] ) && wp_verify_nonce( $_POST['wcpt-meta-sponsor-info'], 'edit-sponsor-info' ) ) {
    19061907                        $text_values = array(
    1907                                 'company_name', 'first_name', 'last_name', 'email_address', 'phone_number', 'vat_number',
     1908                                'company_name', 'first_name', 'last_name', 'email_address', 'phone_number', 'vat_number', 'twitter_handle',
    19081909                                'street_address1', 'street_address2', 'city', 'state', 'zip_code', 'country'
    19091910                        );
    19101911