WordPress.org

Making WordPress.org

Ticket #2383: 2383.1.diff

File 2383.1.diff, 2.9 KB (added by chandrapatel, 3 years ago)
  • wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsor.php

    diff --git wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsor.php wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsor.php
    index ded616c5..590e37d0 100644
    class MES_Sponsor { 
    106106                                break;
    107107
    108108                        case 'mes_contact_information':
    109                                 $company_name  = get_post_meta( $post->ID, 'mes_company_name',  true );
    110                                 $website       = get_post_meta( $post->ID, 'mes_website',       true );
    111                                 $first_name    = get_post_meta( $post->ID, 'mes_first_name',    true );
    112                                 $last_name     = get_post_meta( $post->ID, 'mes_last_name',     true );
    113                                 $email_address = get_post_meta( $post->ID, 'mes_email_address', true );
    114                                 $phone_number  = get_post_meta( $post->ID, 'mes_phone_number',  true );
     109                                $company_name   = get_post_meta( $post->ID, 'mes_company_name',   true );
     110                                $website        = get_post_meta( $post->ID, 'mes_website',        true );
     111                                $first_name     = get_post_meta( $post->ID, 'mes_first_name',     true );
     112                                $last_name      = get_post_meta( $post->ID, 'mes_last_name',      true );
     113                                $email_address  = get_post_meta( $post->ID, 'mes_email_address',  true );
     114                                $phone_number   = get_post_meta( $post->ID, 'mes_phone_number',   true );
     115                                $twitter_handle = get_post_meta( $post->ID, 'mes_twitter_handle', true );
    115116
    116117                                $street_address1 = get_post_meta( $post->ID, 'mes_street_address1', true );
    117118                                $street_address2 = get_post_meta( $post->ID, 'mes_street_address2', true );
    class MES_Sponsor { 
    195196                }
    196197
    197198                $text_fields = array(
    198                         'company_name', 'website', 'first_name', 'last_name', 'email_address', 'phone_number',
     199                        'company_name', 'website', 'first_name', 'last_name', 'email_address', 'phone_number', 'twitter_handle',
    199200                        'street_address1', 'street_address2', 'city', 'state', 'zip_code', 'country'
    200201                );
    201202
  • wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/views/metabox-contact-information.php

    diff --git wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/views/metabox-contact-information.php wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/views/metabox-contact-information.php
    index 773bd81f..39d02f9a 100644
     
    4949                                <input id="mes_phone_number" name="mes_phone_number" type="text" value="<?php echo esc_attr( $phone_number ); ?>" required class="regular-text" />
    5050                        </td>
    5151                </tr>
     52
     53                <tr>
     54                        <th><label for="mes_phone_number"><?php esc_html_e( 'Twitter Handle:', 'wordcamporg' ); ?></label></th>
     55
     56                        <td>
     57                                <input id="mes_twitter_handle" name="mes_twitter_handle" type="text" value="<?php echo esc_attr( $twitter_handle ); ?>" class="regular-text" />
     58                        </td>
     59                </tr>
    5260        </tbody>
    5361</table>
    5462