woocommerce/includes
Justin Shreve fb124232cf Update Payment Tokens to follow the same pattern for custom data as other object types.
Payment tokens was introduced in 2.6 and was updated to use the new CRUD code while some of the CRUD system was still in flux.

While most things were correct, the prop handling for custom fields (like a card's last 4 digits) were directly calling meta functions, instead of delegating to the data store/parent.

This PR moves these props to `extra_data` and follows the same pattern as product types or order items. It also updates some version tags to 3.0.0. Finally, it adds an additional test for saving meta after a create which looks like it was lacking.

To Test:
* Run `phpunit`.
* Go to the "My Account" tab and add a new payment method. You need a payment gateway that supports this, like Simplify.
* Test the add a payment method flow.
* Make a test purchase using the saved payment method.
2017-03-14 12:33:35 -07:00
..
abstracts Update Payment Tokens to follow the same pattern for custom data as other object types. 2017-03-14 12:33:35 -07:00
admin Check empty strings literally 2017-03-14 12:17:49 +00:00
api Add missing trailing punctuation 2017-03-10 17:01:47 +02:00
cli Fix some PHPCS errors 2017-03-07 19:57:28 +02:00
data-stores Update Payment Tokens to follow the same pattern for custom data as other object types. 2017-03-14 12:33:35 -07:00
emails Fixed coding standards 2017-02-17 16:10:15 -02:00
gateways i18n: escape translation strings and fix wrong usage of i18n functions 2017-03-13 07:39:46 +02:00
interfaces Imrpove checkout performance when updating product sales 2017-02-10 23:41:53 +00:00
legacy Update Payment Tokens to follow the same pattern for custom data as other object types. 2017-03-14 12:33:35 -07:00
libraries Merge branch 'master' into db-schema-tweaks 2017-02-16 16:33:20 +00:00
log-handlers kses/sanitize 2017-02-09 15:43:47 +00:00
payment-tokens Update Payment Tokens to follow the same pattern for custom data as other object types. 2017-03-14 12:33:35 -07:00
shipping Add the shortcode name param to the WC_Shipping_Legacy_Flat_Rate fee shortcode. 2017-01-03 13:12:00 -05:00
shortcodes Correct formatting 2017-03-14 12:34:20 +00:00
theme-support Make WC_Twenty_Seventeen::init() static 2017-02-24 16:10:34 -03:00
vendor Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
walkers Tidy up includes 2017-02-16 11:46:01 +00:00
widgets Wrap rating with esc_html 2017-03-14 12:32:34 +00:00
class-wc-ajax.php Fixed coding standards 2017-02-24 17:30:41 -03:00
class-wc-api.php Added legacy classes 2017-02-17 00:27:40 -02:00
class-wc-auth.php Tidy up includes 2017-02-16 11:46:01 +00:00
class-wc-autoloader.php Tidy up includes 2017-02-16 11:46:01 +00:00
class-wc-background-updater.php Tidy up includes 2017-02-16 11:46:01 +00:00
class-wc-breadcrumb.php Add locale independent wc_get_permalink_structure function 2017-02-07 16:16:45 +00:00
class-wc-cache-helper.php Data stores 2016-11-14 18:18:08 +00:00
class-wc-cart.php Type cast ->get_weight() on WC_Cart::get_cart_contents_weight calculation 2017-03-11 19:01:58 +01:00
class-wc-checkout.php Improve validation event 2017-02-23 11:51:27 +00:00
class-wc-cli.php Tidy up includes 2017-02-16 11:46:01 +00:00
class-wc-comments.php Check isset in check_comment_rating 2017-02-24 10:35:28 +00:00
class-wc-countries.php Fix email address field 2016-12-19 12:19:44 +00:00
class-wc-coupon.php Use active voice 2017-03-10 10:32:27 -08:00
class-wc-customer-download.php Download BW compat 2017-02-17 11:54:50 +00:00
class-wc-customer.php Set the default to '' to prevent warning 2017-03-01 19:45:38 +01:00
class-wc-data-exception.php Allow WC_Data_Exception have extra error data 2017-01-23 17:29:16 -02:00
class-wc-data-store.php Allow invalid data store exceptions to bubble 2017-03-01 09:24:30 -08:00
class-wc-deprecated-action-hooks.php Actions 2017-02-14 19:23:57 +00:00
class-wc-deprecated-filter-hooks.php Actions 2017-02-14 19:23:57 +00:00
class-wc-download-handler.php Do not set remaining downloads when is unlimited 2017-03-13 21:24:59 -03:00
class-wc-emails.php docblock 2017-02-28 21:16:58 +00:00
class-wc-embed.php Escaping for scruitinizer 2017-01-06 12:45:28 +00:00
class-wc-form-handler.php Remove unused variable 2017-03-03 13:31:27 +00:00
class-wc-frontend-scripts.php Use WordPress wp_get_password_hint() function to display passowd hint 2017-03-10 00:48:19 -03:00
class-wc-geo-ip.php Replace log `tag` with log `source` 2016-12-29 11:58:43 +01:00
class-wc-geolocation.php Fixed coding standards 2017-02-17 16:10:15 -02:00
class-wc-https.php PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
class-wc-install.php i18n: escape translation strings and fix wrong usage of i18n functions 2017-03-13 07:39:46 +02:00
class-wc-integrations.php Fixed mixed tabs and spaces 2016-07-11 16:56:35 +02:00
class-wc-legacy-api.php WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
class-wc-log-levels.php Use constants over settings to configure logger 2016-12-29 11:58:43 +01:00
class-wc-logger.php Use __METHOD__ over "{$class}::{$method}" 2017-01-24 23:09:24 +01:00
class-wc-order-factory.php Standardize cache group names 2017-03-02 17:15:39 +00:00
class-wc-order-item-coupon.php Fix order item meta 2016-11-24 11:50:34 +00:00
class-wc-order-item-fee.php Merge branch 'master' into fix#13454 2017-03-03 10:52:14 +00:00
class-wc-order-item-meta.php Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
class-wc-order-item-product.php Skip attributes in get_formatted_meta_data a different way 2017-02-13 13:53:22 -08:00
class-wc-order-item-shipping.php Fix order item meta 2016-11-24 11:50:34 +00:00
class-wc-order-item-tax.php Map legacy tax array keys to CRUD 2017-02-23 11:14:42 -08:00
class-wc-order-item.php Missing return in offsetSet 2017-03-14 11:33:35 +00:00
class-wc-order-refund.php Merge WC_Data::$extra_data in WC_Data::__construct 2017-02-01 12:48:27 -08:00
class-wc-order.php Status transition hooks should never run when objects are read regardless of status being set. 2017-03-10 20:20:07 +00:00
class-wc-payment-gateways.php Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
class-wc-payment-tokens.php Order stores complete 2016-11-18 14:07:21 +00:00
class-wc-post-data.php Check product exists before getting permalink 2017-02-16 10:38:14 +00:00
class-wc-post-types.php Add locale independent wc_get_permalink_structure function 2017-02-07 16:16:45 +00:00
class-wc-product-attribute.php Create text terms if they do not exist 2016-12-19 13:09:45 +00:00
class-wc-product-download.php Fix tests 2016-12-05 14:21:09 +00:00
class-wc-product-external.php use woocommerce_product_add_to_cart_text hook 2017-02-07 01:04:34 +08:00
class-wc-product-factory.php use global in factory if no id is passed 2017-02-16 10:33:59 +00:00
class-wc-product-grouped.php Merge WC_Data::$extra_data in WC_Data::__construct 2017-02-01 12:48:27 -08:00
class-wc-product-simple.php WIP - Product CRUD (#12065) 2016-11-16 12:38:24 +00:00
class-wc-product-variable.php Hide suffix on variable product when dynamic. 2017-03-07 13:25:52 +00:00
class-wc-product-variation.php Set all default parent data 2017-02-09 11:07:34 +00:00
class-wc-query.php Public WC()->query->get_endpoints_mask() #13179 2017-02-15 12:30:23 -02:00
class-wc-register-wp-admin-settings.php fix failing test from master 2016-09-09 19:39:09 +03:00
class-wc-session-handler.php Tidy up includes 2017-02-16 11:46:01 +00:00
class-wc-shipping-rate.php add argument on woocommerce_shipping_rate_label (#12075) 2016-10-12 17:06:51 +01:00
class-wc-shipping-zone.php Allow html in description 2017-01-17 15:50:19 +00:00
class-wc-shipping-zones.php Add zone_id to get_zones output for ajax. 2016-11-16 04:54:42 -08:00
class-wc-shipping.php Fix empty string case for `WC_Order::get_total_shipping` 2017-02-06 14:41:19 +01:00
class-wc-shortcodes.php Escaping for scruitinizer 2017-01-06 12:45:28 +00:00
class-wc-structured-data.php Fix undefined $order_url variable 2017-03-02 13:09:38 -08:00
class-wc-tax.php Performance updates to order tax 2017-02-20 13:50:07 -08:00
class-wc-template-loader.php Fix get_template_loader_files 2017-01-31 09:56:27 +01:00
class-wc-tracker.php Remove legacy dependency code 2016-11-17 19:06:46 -02:00
class-wc-validation.php Fix some docblock @param tags / remove a @access public 2017-03-01 18:44:11 +01:00
class-wc-webhook.php Fix undefined index notice in WC_Webhook 2017-02-02 12:52:00 -08:00
wc-account-functions.php Allow password resets when account page isn’t set 2017-01-30 22:59:32 -06:00
wc-attribute-functions.php Remove attribute_ prefix rather than add so that get_attributes has better return values, and don't show duplicate data in cart. 2016-11-24 14:20:48 +00:00
wc-cart-functions.php wc_add_to_cart_message_html filter which passes in full array of products and qty 2017-02-06 18:11:54 +00:00
wc-conditional-functions.php Adding WP filter to is_order_received_page() 2017-02-16 07:00:16 +01:00
wc-core-functions.php Removed duplicate $symbols array key 2017-02-23 12:59:09 -05:00
wc-coupon-functions.php Merge percent and cart percent coupon types 2016-12-14 11:07:08 +00:00
wc-deprecated-functions.php Tidy up includes 2017-02-16 11:46:01 +00:00
wc-formatting-functions.php Allow wc_format_decimal() return negative values 2017-02-24 15:58:02 -03:00
wc-notice-functions.php Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
wc-order-functions.php Make increase_usage_count work correctly on concurrent checkoutt 2017-03-08 15:27:37 -08:00
wc-order-item-functions.php Fix order item meta functions cache busting. 2017-03-09 13:36:23 -08:00
wc-page-functions.php Use endpoint option in wc_get_endpoint_url 2017-02-23 12:37:41 +00:00
wc-product-functions.php fix wc_get_price_{in/ex}cluding tax behavior with zero/empty inputs 2017-03-08 18:21:36 +02:00
wc-rest-functions.php WIP - Product CRUD (#12065) 2016-11-16 12:38:24 +00:00
wc-stock-functions.php 13320 Delete cached object when updating stock 2017-02-23 12:56:34 -08:00
wc-template-functions.php i18n: escape translation strings and fix wrong usage of i18n functions 2017-03-13 07:39:46 +02:00
wc-template-hooks.php render product attributes in 'woocommerce_product_additional_information' action 2016-12-18 00:53:45 +02:00
wc-term-functions.php i18n: escape translation strings and fix wrong usage of i18n functions 2017-03-13 07:39:46 +02:00
wc-update-functions.php Fix term name in update function 2017-03-02 15:59:22 +00:00
wc-user-functions.php Fixed empty file object in downloads data and removee extra download_name 2017-03-06 19:45:03 -03:00
wc-webhook-functions.php Require create webhook secret in the REST API 2016-06-27 21:55:54 -03:00
wc-widget-functions.php Define full path for includes 2016-07-27 11:58:43 +01:00