Making WordPress.org


Ignore:
Timestamp:
03/07/2016 11:34:12 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Remove redundant country fields.

ISO 3166-compliant country fields were added in r2420, and these old ones should have been removed then.

We don't need to worry about back-compat because there aren't any current requests that are missing the new fields, and the data for the old fields is still in the database if we ever need it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/wordcamp-budgets-dashboard.php

    r2694 r2701  
    364364        }
    365365
     366        $country_name = \WordCamp_Budgets::get_country_name(
     367            get_post_meta( $index->post_id, '_camppayments_vendor_country_iso3166', true )
     368        );
     369
    366370        $row = array(
    367371            get_wordcamp_name(),
     
    378382            get_post_meta( $index->post_id, '_camppayments_vendor_name', true ),
    379383            get_post_meta( $index->post_id, '_camppayments_vendor_contact_person', true ),
    380             get_post_meta( $index->post_id, '_camppayments_vendor_country', true ),
     384            $country_name,
    381385            \WCP_Encryption::maybe_decrypt( get_post_meta( $index->post_id, '_camppayments_payable_to', true ) ),
    382386            get_edit_post_link( $index->post_id ),
Note: See TracChangeset for help on using the changeset viewer.