Merge branch 'master' into fix/26006

This commit is contained in:
Claudio Sanches 2020-08-10 18:52:21 -03:00
commit db85fad826
757 changed files with 64842 additions and 3162 deletions

View File

@ -14,6 +14,7 @@ contributors.html
docker-compose.yaml
Dockerfile
Gruntfile.js
lerna.json
none
package-lock.json
package.json

View File

@ -1,5 +1,155 @@
== Changelog ==
= 4.4.0 - 2020-08-18 =
**WooCommerce**
* Accessibility: Adds alt attribute to photoswipe gallery images. #26945
* Enhancement - Remove the privacy page dropdown from the Accounts & Privacy page. #26809
* Enhancement - Added automatic language pack updates for WooCommerce.com extensions. #26750
* Enhancement - Improvements for the Hungarian address format. #26697
* Enhancement - Dropdown arrow width was made smaller. #26202
* Enhancement - Add a "No change" option to the "Stock status" selector in quick edit, preselect it when the product being edited is a variable product. #26174
* Enhancement - Don't request language packs for empty locales list. #27148
* Localization - Added 14 Namibia regions. #26894
* Localization - Change default Greek states names to English. #26719
* Localization - Improved Puerto Rico addresses and improve address formatting. #26698
* Localization - Wrapped price and currency inside a BDI tag, in order to prevent the bidirectional algorithm to produce confusing results. #26462
* Localization - Added Algerian provinces. #25687
* Tweak - Added "order_total" to the wcadmin_orders_edit_status_change tracker event. #26935
* Tweak - Fixed WooCommerce menu for users that can only manage orders on WooCommerce. #26877
* Tweak - Limit nocache headers to googleweblight by default. #26858
* Tweak - Preserve quantity input value when changing variations. #26805
* Tweak - Confirm before running any tool from the WooCommerce Status settings. #26660
* Tweak - Limit stock changes for order items to status methods for consistency. #26642
* Tweak - Custom vendor taxonomy update messages. #26634
* Tweak - Remove HTML tags from plain text email template for Customer new account. #26613
* Tweak - Conditionally change the text in My account to reflect if shipping is disabled. #26325
* Tweak - Show CSV file name in result message when product import is complete. #25240
* Tweak - Improve order details UI to highlight "Paid" and "Net Payment" sections. #27142
* Fix - Remove the dot after the generated password in new account emails. #27073
* Fix - Delayed the execution of all webhooks until after the request has completed. #27067
* Fix - [Importer/Exporter] Fixed the value display of "Published" for children of draft variable products. #27046
* Fix - Removed the extra id parameter added to CLI commands that shouldn't have one. #27017
* Fix - Added the missing instance_id to the REST CLI command so that shipping zone method commands will work. #27017
* Fix - Add rating_count to order by rating clause. #26964
* Fix - Don't show premium support forum link if the store is not connected to WooCommerce.com. #26932
* Fix - Incorrect capability used on add order note while creating an user note. #26920
* Fix - Preserve HTML entities from product names in the cart page. #26885
* Fix - Display warning hen leaving settings page without saving first. #26880
* Fix - Remove wc_round_tax_total from shipping tax because shipping prices never include tax so rounding down is not needed. #26850
* Fix - Make the "Please log in" message displayed to users with an existing account a hyperlink. #26837
* Fix - Typo in composer.json for makepot. #26829
* Fix - Layout issue on the checkout page when switching countries. #26697
* Fix - Missing closing select tag to the product exporter category select. #26680
* Fix - Possible PHP undefined index notice before WooCommerce has been configured. #26658
* Fix - A deferred product sync is now scheduled when a product having a parent (e.g. a variation product) is deleted, not only when it's saved. #26629
* Fix - Stock status of variable products that handle stock at the main product level is now appropriately updated when the product is saved. #26611
* Fix - Discounted prices are no longer underlined in Twenty Twenty. #26609
* Fix - Email link color clash. #26591
* Fix - Remove HTML from error message. #26589
* Fix - Fixed Tooltip flashing. #26558
* Fix - Correctly displays the instructional option as default in the select box for picking a Country / Region on the checkout page. #26554
* Fix - Default option "Select a country..." will now display accurately on Country select box in Cart shipping calculator. #26541
* Fix - Fixed user capability required to view the order count indicator. #26338
* Fix - The filtering widget now works as expected with variable products, displaying those products for which visible variations are available. #26260
* Fix - Added a z-index to the remove button (x) to set the z-order of the element. #26202
* Fix - Don't change the stock status of variations when bulk editing a variable product and leaving the "Stock status" selector as "No change". #26174
* Fix - Remove new WP 5.5 meta box arrows from "Order data" and "Order items" meta boxes. #27173
* Fix - After clicking to update WooCommerce, the user will stay in the same page instead of being redirected to the "Settings" page. #27172
* Fix - "Product type" dropdown missing from Product's data meta box on WP 5.5. #27170
* Fix - Removed the JETPACK_AUTOLOAD_DEV define. #27185
* Dev - Update WooCommerce Admin version to v1.4.0-beta.3. #27214
* Dev - Upgraded to the 2.x Jetpack Autoloader. #27123
* Dev - Update jest-preset-default version to ^6.2.0. #27090
* Dev - Added a second $existing_meta_keys parameter to the woocommerce_duplicate_product_exclude_meta filter. #27038
* Dev - Remove leftover note for translators in customer-completed-order.php. #26989
* Dev - Allow extend BACS accounts filter with order ID. #26961
* Dev - Add npm run build:packages to npm run build. #26906
* Dev - Add woocommerce_order_note_added action. #26846
* Dev - Add tests for template cache. #26840
* Dev - Add filter to allow disabling nocache headers. #26802
* Dev - Introduce a dependency injection framework for the code in the src directory. #26731
* Dev - Normalized parameters of woocommerce_product_importer_parsed_data filter. #26669
* Dev - Introduced new WC_Product_CSV_Importer::get_formatting_callback() fixing a typo in the method name. #26668
* Dev - Allow set "date_created" while creating orders via CRUD. #26567
* Dev - Allow set a custom as order key using wc_generate_order_key(). #26566
* Dev - Allow set order_key while creating an order via CRUD. #26565
* Dev - Introduced woocommerce_product_cross_sells_products_heading filter. #26545
* Dev - Added the removed_coupon_in_checkout event that is triggered on the Checkout page after a coupon is removed using .woocommerce-remove-coupon button. #26536
* Dev - Remove no longer used styles from TwentyTwenty. #26516
* Dev - Fix error message in wc_get_template() function. #26515
* Dev - Add npm publish script for @woocommerce/e2e-environment. #26432
* Dev - Make WC_Cart::display_prices_including_tax aware of tax display changes. #26400
* Dev - Deprecated WC_Legacy_Cart::tax_display_cart in favor of WC_Cart:: get_tax_price_display_mode(). #26400
* Dev - Add an optional $render_variations argument to in WC_Product_Variable::get_available_variation() in order to allow plugins to avoid performance bottlenecks. #26303
* Dev - Ensure wc_load_cart loads its own dependencies. #26219
* Dev - Clean up deprecated documentation. #27054
* Dev - Update WooCommerce Blocks version to 3.1.0. #27177
**REST API 1.0.11**
* Enhancement - Introduced X-WP-Total header for product attributes GET endpoint listing the number of entries in the response. woocommerce/woocommerce-rest-api#171
* Enhancement - Introduced X-WP-TotalPages header for product attributes GET endpoint listing the number of pages that can be fetched. woocommerce/woocommerce-rest-api#171
* Enhancement - Introduced the modified option for orderby fetch requests in post based resources. woocommerce/woocommerce-rest-api#226
* Fix - Ensured Action Scheduler transients are cleared by "Clear Transients" tool. woocommerce/woocommerce-rest-api#152
* Fix - Corrected the schema datatype for coupon expiry_date, date_expires, and date_expires_gmt fields. woocommerce/woocommerce-rest-api#176
* Fix - Query parameters are now passed correctly when using the batch product variation endpoints. woocommerce/woocommerce-rest-api#191
**WooCommerce Admin 1.4.0**
* Enhancement - Move the WooCommerce > Coupons dashboard menu item to Marketing > Coupons. #4786
* Fix - Installation of child theme zip files from the store setup wizard. #4852
* Fix - Center the skip link on the theme selection step. #4847
* Fix - Removed item "profiler" from the menu. #4851
* Fix - PHP notices when hosts block certain WP scripts. #4856
* Fix - Remove new WP 5.5 meta box arrows in the shipping banner. #4914
* Fix - Allow revisiting of the payments task. #4918
* Fix - Use of Jetpack autoloader. #4920
* Fix - Only show WCPay task in US based stores. #4899
* Fix - Polyfill core-data saveUser() on WP 5.3.x. #4869
* Fix - Product types step bugs in onboarding wizard. #4900
* Fix - Center all descriptive text on onboarding wizard steps. #4902
* Fix - Change account required text on biz step in onboarding wizard. #4909
* Dev - Add the experimental resolver to WCA data package. #4862
* Dev - Fix linter errors. #4904
**WooCommerce Blocks 3.0.0**
* Build - Updated the automattic/jetpack-autoloader package to the 2.0 branch. #2847
* Enhancement - Add support for the Bank Transfer (BACS) payment method in the Checkout block. #2821
* Enhancement - Several improvements to make Credit Card input fields display more consistent across different themes and viewport sizes. #2869
* Enhancement - Cart and Checkout blocks show a notification for products on backorder. #2833
* Enhancement - Chip styles of the Filter Products by Attribute and Active Filters have been updated to give a more consistent experience. #2765
* Enhancement - Add protection for rogue filters on order queries when executing cleanup draft orders logic. #2874
* Enhancement - Extend payment gateway extension API so gateways (payment methods) can dynamically disable (hide), based on checkout or order data (such as cart items or shipping method). For example, Cash on Delivery can limit availability to specific shipping methods only. #2840 [DN]
* Enhancement - Support Cash on Delivery core payment gateway in the Checkout block. #2831
* Performance - Don't load shortcode Cart and Checkout scripts when using the blocks. #2842
* Performance - Scripts only relevant to the frontend side of blocks are no longer loaded in the editor. #2788
* Performance - Lazy Loading Atomic Components. #2777
* Pefactor - Remove dashicon classes. #2848
**WooCommerce Blocks 3.1.0**
* Fix - Missing permissions_callback arg in StoreApi route definitions. #2926
* Fix - 'Product Summary' in All Products block is not pulling in the short description of the product. #2913
* Dev - Add query filter when searching for a table. #2886
= 4.3.2 - 2020-08-10 =
**WooCommerce**
* Fix - Remove new WP 5.5 meta box arrows from "Order data" and "Order items" meta boxes. #27173
* Fix - "Product type" dropdown missing from Product's data meta box on WP 5.5. #27170
**WooCommerce Blocks 2.7.3**
* Fix - Fix missing permissions_callback arg in StoreApi route definitions. #2926
**WooCommerce REST API 1.0.10-pl-1**
* Enhancement - Compatibility fixes for WordPress 5.5 #232
= 4.3.1 - 2020-07-21 =
**WooCommerce Admin 1.3.1**
* Fix - PHP Fatal errors when columns are missing from the Notes table. #4831
**WooCommerce Blocks 2.7.2**
* Enhancement - Move Draft order logic behind feature flag. #2874
= 4.3.0 - 2020-07-08 =
**WooCommerce**

View File

@ -1062,6 +1062,7 @@ ul.wc_coupon_list_block {
#woocommerce-order-data {
.postbox-header,
.hndle,
.handlediv {
display: none;
@ -1412,6 +1413,10 @@ ul.wc_coupon_list_block {
.refunded-total {
color: $red;
}
.label-highlight {
font-weight: bold;
}
}
.refund-actions {
@ -1466,6 +1471,7 @@ ul.wc_coupon_list_block {
display: block !important;
}
.postbox-header,
.hndle,
.handlediv {
display: none;
@ -4347,14 +4353,13 @@ img.help_tip {
span {
display: block;
vertical-align: middle;
line-height: 24px;
}
span {
display: inline;
line-height: inherit;
vertical-align: baseline;
}
.type_box {
display: inline;
line-height: inherit;
vertical-align: baseline;
}
select {
@ -6819,6 +6824,23 @@ table.bar_chart {
}
}
.wc-wp-version-gte-55 {
#woocommerce-product-data {
.hndle {
display: block;
line-height: 24px;
.type_box {
display: inline;
line-height: inherit;
vertical-align: baseline;
}
}
}
}
/**
* Select2 colors for built-in admin color themes.
*/

View File

@ -27,7 +27,11 @@ jQuery( function( $ ) {
});
// Type box.
$( '.type_box' ).appendTo( '#woocommerce-product-data .hndle span' );
if ( $( 'body' ).hasClass( 'wc-wp-version-gte-55' ) ) {
$( '.type_box' ).appendTo( '#woocommerce-product-data .hndle' );
} else {
$( '.type_box' ).appendTo( '#woocommerce-product-data .hndle span' );
}
$( function() {
// Prevent inputs in meta box headings opening/closing contents.

View File

@ -8,16 +8,15 @@
"minimum-stability": "dev",
"require": {
"php": ">=7.0",
"automattic/jetpack-autoloader": "^1.7.0",
"automattic/jetpack-constants": "^1.1",
"automattic/jetpack-autoloader": "2.0.2",
"automattic/jetpack-constants": "1.4.0",
"composer/installers": "1.7.0",
"league/container": "^3.3",
"league/container": "3.3.1",
"maxmind-db/reader": "1.6.0",
"pelago/emogrifier": "^3.1",
"pelago/emogrifier": "3.1.0",
"woocommerce/action-scheduler": "3.1.6",
"woocommerce/woocommerce-admin": "1.3.1",
"woocommerce/woocommerce-blocks": "2.7.1",
"woocommerce/woocommerce-rest-api": "1.0.10"
"woocommerce/woocommerce-admin": "1.4.0-beta.3",
"woocommerce/woocommerce-blocks": "3.1.0"
},
"require-dev": {
"phpunit/phpunit": "7.5.20",
@ -40,6 +39,9 @@
"includes/legacy",
"includes/libraries"
],
"classmap": [
"includes/rest-api"
],
"psr-4": {
"Automattic\\WooCommerce\\": "src/"
}
@ -48,7 +50,10 @@
"psr-4": {
"Automattic\\WooCommerce\\Tests\\": "tests/php/src/",
"Automattic\\WooCommerce\\Testing\\Tools\\": "tests/Tools/"
}
},
"classmap": [
"tests/legacy/unit-tests/rest-api/Helpers"
]
},
"scripts": {
"post-install-cmd": [

110
composer.lock generated
View File

@ -4,24 +4,24 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c0a0cf15845787f05ec6bc30f06084c4",
"content-hash": "ae4abaa8d39e860cc6c379cb5f6a0c2f",
"packages": [
{
"name": "automattic/jetpack-autoloader",
"version": "v1.7.0",
"version": "v2.0.2",
"source": {
"type": "git",
"url": "https://github.com/Automattic/jetpack-autoloader.git",
"reference": "7c6736eeee0f9fc49fa691fe3e958725efb27ca0"
"reference": "4502da4b2443fc1b61389cacc94c34876aca2b3d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/7c6736eeee0f9fc49fa691fe3e958725efb27ca0",
"reference": "7c6736eeee0f9fc49fa691fe3e958725efb27ca0",
"url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/4502da4b2443fc1b61389cacc94c34876aca2b3d",
"reference": "4502da4b2443fc1b61389cacc94c34876aca2b3d",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.1"
"composer-plugin-api": "^1.1 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
@ -40,20 +40,20 @@
"GPL-2.0-or-later"
],
"description": "Creates a custom autoloader for a plugin or theme.",
"time": "2020-04-23T02:28:37+00:00"
"time": "2020-07-09T13:18:38+00:00"
},
{
"name": "automattic/jetpack-constants",
"version": "v1.3.0",
"version": "v1.4.0",
"source": {
"type": "git",
"url": "https://github.com/Automattic/jetpack-constants.git",
"reference": "77e4a85601c63dc98b3dd282090eb8558a61685c"
"reference": "b4210d56948529b43785ce31e0055f435eac1f9f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/77e4a85601c63dc98b3dd282090eb8558a61685c",
"reference": "77e4a85601c63dc98b3dd282090eb8558a61685c",
"url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/b4210d56948529b43785ce31e0055f435eac1f9f",
"reference": "b4210d56948529b43785ce31e0055f435eac1f9f",
"shasum": ""
},
"require-dev": {
@ -71,7 +71,7 @@
"GPL-2.0-or-later"
],
"description": "A wrapper for defining constants in a more testable way.",
"time": "2020-06-22T11:37:41+00:00"
"time": "2020-07-01T15:55:35+00:00"
},
{
"name": "composer/installers",
@ -554,20 +554,20 @@
},
{
"name": "woocommerce/woocommerce-admin",
"version": "v1.3.1",
"version": "v1.4.0-beta.3",
"source": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce-admin.git",
"reference": "337036202a29078aed827f8e5dec566a9c57929a"
"reference": "df2af46a8552cdee15df0030fccbe4cd5a6d270d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/woocommerce/woocommerce-admin/zipball/337036202a29078aed827f8e5dec566a9c57929a",
"reference": "337036202a29078aed827f8e5dec566a9c57929a",
"url": "https://api.github.com/repos/woocommerce/woocommerce-admin/zipball/df2af46a8552cdee15df0030fccbe4cd5a6d270d",
"reference": "df2af46a8552cdee15df0030fccbe4cd5a6d270d",
"shasum": ""
},
"require": {
"automattic/jetpack-autoloader": "^1.6.0",
"automattic/jetpack-autoloader": "^2.0.0",
"composer/installers": "1.7.0",
"php": ">=5.6|>=7.0"
},
@ -597,24 +597,24 @@
],
"description": "A modern, javascript-driven WooCommerce Admin experience.",
"homepage": "https://github.com/woocommerce/woocommerce-admin",
"time": "2020-07-20T22:33:15+00:00"
"time": "2020-08-04T02:21:47+00:00"
},
{
"name": "woocommerce/woocommerce-blocks",
"version": "v2.7.1",
"version": "v3.1.0",
"source": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce-gutenberg-products-block.git",
"reference": "0025c5cda83892c6f566fffd05197006f230d16c"
"reference": "d8fdcb4fc90c392e672b0e75bb0b7fd81dac7436"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/woocommerce/woocommerce-gutenberg-products-block/zipball/0025c5cda83892c6f566fffd05197006f230d16c",
"reference": "0025c5cda83892c6f566fffd05197006f230d16c",
"url": "https://api.github.com/repos/woocommerce/woocommerce-gutenberg-products-block/zipball/d8fdcb4fc90c392e672b0e75bb0b7fd81dac7436",
"reference": "d8fdcb4fc90c392e672b0e75bb0b7fd81dac7436",
"shasum": ""
},
"require": {
"automattic/jetpack-autoloader": "^1.6.0",
"automattic/jetpack-autoloader": "^2.0.0",
"composer/installers": "1.7.0"
},
"require-dev": {
@ -644,47 +644,7 @@
"gutenberg",
"woocommerce"
],
"time": "2020-06-16T13:34:29+00:00"
},
{
"name": "woocommerce/woocommerce-rest-api",
"version": "1.0.10",
"source": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce-rest-api.git",
"reference": "fdcb116b4f5b699b942c01b46fd863c7da8b4b7c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/woocommerce/woocommerce-rest-api/zipball/fdcb116b4f5b699b942c01b46fd863c7da8b4b7c",
"reference": "fdcb116b4f5b699b942c01b46fd863c7da8b4b7c",
"shasum": ""
},
"require": {
"automattic/jetpack-autoloader": "^1.2.0"
},
"require-dev": {
"phpunit/phpunit": "6.5.14",
"woocommerce/woocommerce-sniffs": "0.0.9"
},
"type": "wordpress-plugin",
"autoload": {
"classmap": [
"src/Controllers/Version1",
"src/Controllers/Version2",
"src/Controllers/Version3"
],
"psr-4": {
"Automattic\\WooCommerce\\RestApi\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-3.0-or-later"
],
"description": "The WooCommerce core REST API.",
"homepage": "https://github.com/woocommerce/woocommerce-rest-api",
"time": "2020-06-16T09:51:51+00:00"
"time": "2020-07-29T15:45:19+00:00"
}
],
"packages-dev": [
@ -808,6 +768,20 @@
"constructor",
"instantiate"
],
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
"type": "custom"
},
{
"url": "https://www.patreon.com/phpdoctrine",
"type": "patreon"
},
{
"url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
"type": "tidelift"
}
],
"time": "2020-05-29T17:27:14+00:00"
},
{
@ -1070,6 +1044,12 @@
"object",
"object graph"
],
"funding": [
{
"url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
"type": "tidelift"
}
],
"time": "2020-06-29T13:22:24+00:00"
},
{
@ -2612,7 +2592,7 @@
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.18.0",
"version": "v1.18.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",

View File

@ -4,7 +4,7 @@
*
* Returns an array of continents.
*
* @package WooCommerce/i18n
* @package WooCommerce\i18n
* @version 2.5.0
*/

View File

@ -13,7 +13,7 @@ defined( 'ABSPATH' ) || exit;
return array(
'AF' => __( 'Afghanistan', 'woocommerce' ),
'AX' => __( 'Åland Islands', 'woocommerce' ),
'AX' => __( 'Åland Islands', 'woocommerce' ),
'AL' => __( 'Albania', 'woocommerce' ),
'DZ' => __( 'Algeria', 'woocommerce' ),
'AS' => __( 'American Samoa', 'woocommerce' ),

View File

@ -2,13 +2,22 @@
/**
* Locales information
*
* @package WooCommerce/i18n
* @package WooCommerce\i18n
* @version 3.5.0
*/
defined( 'ABSPATH' ) || exit;
return array(
'AT' => array(
'currency_code' => 'EUR',
'currency_pos' => 'left',
'thousand_sep' => '.',
'decimal_sep' => ',',
'num_decimals' => 2,
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'AU' => array(
'currency_code' => 'AUD',
'currency_pos' => 'left',
@ -18,6 +27,15 @@ return array(
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'BA' => array(
'currency_code' => 'BAM',
'currency_pos' => 'right_space',
'thousand_sep' => '.',
'decimal_sep' => ',',
'num_decimals' => 2,
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'BD' => array(
'currency_code' => 'BDT',
'currency_pos' => 'left',
@ -54,6 +72,15 @@ return array(
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'CH' => array(
'currency_code' => 'CHF',
'currency_pos' => 'left_space',
'thousand_sep' => "'",
'decimal_sep' => '.',
'num_decimals' => 2,
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'DE' => array(
'currency_code' => 'EUR',
'currency_pos' => 'left',
@ -135,6 +162,15 @@ return array(
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'LI' => array(
'currency_code' => 'CHF',
'currency_pos' => 'left_space',
'thousand_sep' => "'",
'decimal_sep' => '.',
'num_decimals' => 2,
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
),
'MD' => array(
'currency_code' => 'MDL',
'currency_pos' => 'right_space',

View File

@ -4,7 +4,7 @@
*
* Returns an array of calling codes.
*
* @package WooCommerce/i18n
* @package WooCommerce\i18n
*/
defined( 'ABSPATH' ) || exit;

View File

@ -36,22 +36,22 @@ return array(
'ZAI' => __( 'Zaire', 'woocommerce' ),
),
'AR' => array( // Argentinian provinces.
'C' => __( 'Ciudad Autónoma de Buenos Aires', 'woocommerce' ),
'C' => __( 'Ciudad Autónoma de Buenos Aires', 'woocommerce' ),
'B' => __( 'Buenos Aires', 'woocommerce' ),
'K' => __( 'Catamarca', 'woocommerce' ),
'H' => __( 'Chaco', 'woocommerce' ),
'U' => __( 'Chubut', 'woocommerce' ),
'X' => __( 'Córdoba', 'woocommerce' ),
'X' => __( 'Córdoba', 'woocommerce' ),
'W' => __( 'Corrientes', 'woocommerce' ),
'E' => __( 'Entre Ríos', 'woocommerce' ),
'E' => __( 'Entre Ríos', 'woocommerce' ),
'P' => __( 'Formosa', 'woocommerce' ),
'Y' => __( 'Jujuy', 'woocommerce' ),
'L' => __( 'La Pampa', 'woocommerce' ),
'F' => __( 'La Rioja', 'woocommerce' ),
'M' => __( 'Mendoza', 'woocommerce' ),
'N' => __( 'Misiones', 'woocommerce' ),
'Q' => __( 'Neuquén', 'woocommerce' ),
'R' => __( 'Río Negro', 'woocommerce' ),
'Q' => __( 'Neuquén', 'woocommerce' ),
'R' => __( 'Río Negro', 'woocommerce' ),
'A' => __( 'Salta', 'woocommerce' ),
'J' => __( 'San Juan', 'woocommerce' ),
'D' => __( 'San Luis', 'woocommerce' ),
@ -59,7 +59,7 @@ return array(
'S' => __( 'Santa Fe', 'woocommerce' ),
'G' => __( 'Santiago del Estero', 'woocommerce' ),
'V' => __( 'Tierra del Fuego', 'woocommerce' ),
'T' => __( 'Tucumán', 'woocommerce' ),
'T' => __( 'Tucumán', 'woocommerce' ),
),
'AT' => array(),
'AU' => array( // Australian states.
@ -186,29 +186,29 @@ return array(
'BR' => array( // Brazillian states.
'AC' => __( 'Acre', 'woocommerce' ),
'AL' => __( 'Alagoas', 'woocommerce' ),
'AP' => __( 'Amapá', 'woocommerce' ),
'AP' => __( 'Amapá', 'woocommerce' ),
'AM' => __( 'Amazonas', 'woocommerce' ),
'BA' => __( 'Bahia', 'woocommerce' ),
'CE' => __( 'Ceará', 'woocommerce' ),
'CE' => __( 'Ceará', 'woocommerce' ),
'DF' => __( 'Distrito Federal', 'woocommerce' ),
'ES' => __( 'Espírito Santo', 'woocommerce' ),
'GO' => __( 'Goiás', 'woocommerce' ),
'MA' => __( 'Maranhão', 'woocommerce' ),
'ES' => __( 'Espírito Santo', 'woocommerce' ),
'GO' => __( 'Goiás', 'woocommerce' ),
'MA' => __( 'Maranhão', 'woocommerce' ),
'MT' => __( 'Mato Grosso', 'woocommerce' ),
'MS' => __( 'Mato Grosso do Sul', 'woocommerce' ),
'MG' => __( 'Minas Gerais', 'woocommerce' ),
'PA' => __( 'Pará', 'woocommerce' ),
'PB' => __( 'Paraíba', 'woocommerce' ),
'PR' => __( 'Paraná', 'woocommerce' ),
'PA' => __( 'Pará', 'woocommerce' ),
'PB' => __( 'Paraíba', 'woocommerce' ),
'PR' => __( 'Paraná', 'woocommerce' ),
'PE' => __( 'Pernambuco', 'woocommerce' ),
'PI' => __( 'Piauí', 'woocommerce' ),
'PI' => __( 'Piauí', 'woocommerce' ),
'RJ' => __( 'Rio de Janeiro', 'woocommerce' ),
'RN' => __( 'Rio Grande do Norte', 'woocommerce' ),
'RS' => __( 'Rio Grande do Sul', 'woocommerce' ),
'RO' => __( 'Rondônia', 'woocommerce' ),
'RO' => __( 'Rondônia', 'woocommerce' ),
'RR' => __( 'Roraima', 'woocommerce' ),
'SC' => __( 'Santa Catarina', 'woocommerce' ),
'SP' => __( 'São Paulo', 'woocommerce' ),
'SP' => __( 'São Paulo', 'woocommerce' ),
'SE' => __( 'Sergipe', 'woocommerce' ),
'TO' => __( 'Tocantins', 'woocommerce' ),
),
@ -237,10 +237,10 @@ return array(
'FR' => __( 'Fribourg', 'woocommerce' ),
'GE' => __( 'Geneva', 'woocommerce' ),
'GL' => __( 'Glarus', 'woocommerce' ),
'GR' => __( 'Graubünden', 'woocommerce' ),
'GR' => __( 'Graubünden', 'woocommerce' ),
'JU' => __( 'Jura', 'woocommerce' ),
'LU' => __( 'Luzern', 'woocommerce' ),
'NE' => __( 'Neuchâtel', 'woocommerce' ),
'NE' => __( 'Neuchâtel', 'woocommerce' ),
'NW' => __( 'Nidwalden', 'woocommerce' ),
'OW' => __( 'Obwalden', 'woocommerce' ),
'SH' => __( 'Schaffhausen', 'woocommerce' ),
@ -253,41 +253,41 @@ return array(
'VS' => __( 'Valais', 'woocommerce' ),
'VD' => __( 'Vaud', 'woocommerce' ),
'ZG' => __( 'Zug', 'woocommerce' ),
'ZH' => __( 'Zürich', 'woocommerce' ),
'ZH' => __( 'Zürich', 'woocommerce' ),
),
'CN' => array( // Chinese states.
'CN1' => __( 'Yunnan / 云南', 'woocommerce' ),
'CN2' => __( 'Beijing / 北京', 'woocommerce' ),
'CN3' => __( 'Tianjin / 天津', 'woocommerce' ),
'CN4' => __( 'Hebei / 河北', 'woocommerce' ),
'CN5' => __( 'Shanxi / 山西', 'woocommerce' ),
'CN6' => __( 'Inner Mongolia / 內蒙古', 'woocommerce' ),
'CN7' => __( 'Liaoning / 辽宁', 'woocommerce' ),
'CN8' => __( 'Jilin / 吉林', 'woocommerce' ),
'CN9' => __( 'Heilongjiang / 黑龙江', 'woocommerce' ),
'CN10' => __( 'Shanghai / 上海', 'woocommerce' ),
'CN11' => __( 'Jiangsu / 江苏', 'woocommerce' ),
'CN12' => __( 'Zhejiang / 浙江', 'woocommerce' ),
'CN13' => __( 'Anhui / 安徽', 'woocommerce' ),
'CN14' => __( 'Fujian / 福建', 'woocommerce' ),
'CN15' => __( 'Jiangxi / 江西', 'woocommerce' ),
'CN16' => __( 'Shandong / 山东', 'woocommerce' ),
'CN17' => __( 'Henan / 河南', 'woocommerce' ),
'CN18' => __( 'Hubei / 湖北', 'woocommerce' ),
'CN19' => __( 'Hunan / 湖南', 'woocommerce' ),
'CN20' => __( 'Guangdong / 广东', 'woocommerce' ),
'CN21' => __( 'Guangxi Zhuang / 广西壮族', 'woocommerce' ),
'CN22' => __( 'Hainan / 海南', 'woocommerce' ),
'CN23' => __( 'Chongqing / 重庆', 'woocommerce' ),
'CN24' => __( 'Sichuan / 四川', 'woocommerce' ),
'CN25' => __( 'Guizhou / 贵州', 'woocommerce' ),
'CN26' => __( 'Shaanxi / 陕西', 'woocommerce' ),
'CN27' => __( 'Gansu / 甘肃', 'woocommerce' ),
'CN28' => __( 'Qinghai / 青海', 'woocommerce' ),
'CN29' => __( 'Ningxia Hui / 宁夏', 'woocommerce' ),
'CN30' => __( 'Macao / 澳门', 'woocommerce' ),
'CN31' => __( 'Tibet / 西藏', 'woocommerce' ),
'CN32' => __( 'Xinjiang / 新疆', 'woocommerce' ),
'CN1' => __( 'Yunnan / 云南', 'woocommerce' ),
'CN2' => __( 'Beijing / 北京', 'woocommerce' ),
'CN3' => __( 'Tianjin / 天津', 'woocommerce' ),
'CN4' => __( 'Hebei / 河北', 'woocommerce' ),
'CN5' => __( 'Shanxi / 山西', 'woocommerce' ),
'CN6' => __( 'Inner Mongolia / 內蒙古', 'woocommerce' ),
'CN7' => __( 'Liaoning / 辽宁', 'woocommerce' ),
'CN8' => __( 'Jilin / 吉林', 'woocommerce' ),
'CN9' => __( 'Heilongjiang / 黑龙江', 'woocommerce' ),
'CN10' => __( 'Shanghai / 上海', 'woocommerce' ),
'CN11' => __( 'Jiangsu / 江苏', 'woocommerce' ),
'CN12' => __( 'Zhejiang / 浙江', 'woocommerce' ),
'CN13' => __( 'Anhui / 安徽', 'woocommerce' ),
'CN14' => __( 'Fujian / 福建', 'woocommerce' ),
'CN15' => __( 'Jiangxi / 江西', 'woocommerce' ),
'CN16' => __( 'Shandong / 山东', 'woocommerce' ),
'CN17' => __( 'Henan / 河南', 'woocommerce' ),
'CN18' => __( 'Hubei / 湖北', 'woocommerce' ),
'CN19' => __( 'Hunan / 湖南', 'woocommerce' ),
'CN20' => __( 'Guangdong / 广东', 'woocommerce' ),
'CN21' => __( 'Guangxi Zhuang / 广西壮族', 'woocommerce' ),
'CN22' => __( 'Hainan / 海南', 'woocommerce' ),
'CN23' => __( 'Chongqing / 重庆', 'woocommerce' ),
'CN24' => __( 'Sichuan / 四川', 'woocommerce' ),
'CN25' => __( 'Guizhou / 贵州', 'woocommerce' ),
'CN26' => __( 'Shaanxi / 陕西', 'woocommerce' ),
'CN27' => __( 'Gansu / 甘肃', 'woocommerce' ),
'CN28' => __( 'Qinghai / 青海', 'woocommerce' ),
'CN29' => __( 'Ningxia Hui / 宁夏', 'woocommerce' ),
'CN30' => __( 'Macao / 澳门', 'woocommerce' ),
'CN31' => __( 'Tibet / 西藏', 'woocommerce' ),
'CN32' => __( 'Xinjiang / 新疆', 'woocommerce' ),
),
'CZ' => array(),
'DE' => array(),
@ -298,36 +298,36 @@ return array(
'DZ-03' => __( 'Laghouat', 'woocommerce' ),
'DZ-04' => __( 'Oum El Bouaghi', 'woocommerce' ),
'DZ-05' => __( 'Batna', 'woocommerce' ),
'DZ-06' => __( 'Béjaïa', 'woocommerce' ),
'DZ-06' => __( 'Béjaïa', 'woocommerce' ),
'DZ-07' => __( 'Biskra', 'woocommerce' ),
'DZ-08' => __( 'Béchar', 'woocommerce' ),
'DZ-08' => __( 'Béchar', 'woocommerce' ),
'DZ-09' => __( 'Blida', 'woocommerce' ),
'DZ-10' => __( 'Bouira', 'woocommerce' ),
'DZ-11' => __( 'Tamanghasset', 'woocommerce' ),
'DZ-12' => __( 'Tébessa', 'woocommerce' ),
'DZ-12' => __( 'Tébessa', 'woocommerce' ),
'DZ-13' => __( 'Tlemcen', 'woocommerce' ),
'DZ-14' => __( 'Tiaret', 'woocommerce' ),
'DZ-15' => __( 'Tizi Ouzou', 'woocommerce' ),
'DZ-16' => __( 'Algiers', 'woocommerce' ),
'DZ-17' => __( 'Djelfa', 'woocommerce' ),
'DZ-18' => __( 'Jijel', 'woocommerce' ),
'DZ-19' => __( 'Sétif', 'woocommerce' ),
'DZ-20' => __( 'Saïda', 'woocommerce' ),
'DZ-19' => __( 'Sétif', 'woocommerce' ),
'DZ-20' => __( 'Saïda', 'woocommerce' ),
'DZ-21' => __( 'Skikda', 'woocommerce' ),
'DZ-22' => __( 'Sidi Bel Abbès', 'woocommerce' ),
'DZ-22' => __( 'Sidi Bel Abbès', 'woocommerce' ),
'DZ-23' => __( 'Annaba', 'woocommerce' ),
'DZ-24' => __( 'Guelma', 'woocommerce' ),
'DZ-25' => __( 'Constantine', 'woocommerce' ),
'DZ-26' => __( 'Médéa', 'woocommerce' ),
'DZ-26' => __( 'Médéa', 'woocommerce' ),
'DZ-27' => __( 'Mostaganem', 'woocommerce' ),
'DZ-28' => __( 'M’Sila', 'woocommerce' ),
'DZ-28' => __( 'MSila', 'woocommerce' ),
'DZ-29' => __( 'Mascara', 'woocommerce' ),
'DZ-30' => __( 'Ouargla', 'woocommerce' ),
'DZ-31' => __( 'Oran', 'woocommerce' ),
'DZ-32' => __( 'El Bayadh', 'woocommerce' ),
'DZ-33' => __( 'Illizi', 'woocommerce' ),
'DZ-34' => __( 'Bordj Bou Arréridj', 'woocommerce' ),
'DZ-35' => __( 'Boumerdès', 'woocommerce' ),
'DZ-34' => __( 'Bordj Bou Arréridj', 'woocommerce' ),
'DZ-35' => __( 'Boumerdès', 'woocommerce' ),
'DZ-36' => __( 'El Tarf', 'woocommerce' ),
'DZ-37' => __( 'Tindouf', 'woocommerce' ),
'DZ-38' => __( 'Tissemsilt', 'woocommerce' ),
@ -336,32 +336,32 @@ return array(
'DZ-41' => __( 'Souk Ahras', 'woocommerce' ),
'DZ-42' => __( 'Tipasa', 'woocommerce' ),
'DZ-43' => __( 'Mila', 'woocommerce' ),
'DZ-44' => __( 'Aïn Defla', 'woocommerce' ),
'DZ-44' => __( 'Aïn Defla', 'woocommerce' ),
'DZ-45' => __( 'Naama', 'woocommerce' ),
'DZ-46' => __( 'Aïn Témouchent', 'woocommerce' ),
'DZ-47' => __( 'Ghardaïa', 'woocommerce' ),
'DZ-46' => __( 'Aïn Témouchent', 'woocommerce' ),
'DZ-47' => __( 'Ghardaïa', 'woocommerce' ),
'DZ-48' => __( 'Relizane', 'woocommerce' ),
),
'EE' => array(),
'ES' => array( // Spanish states.
'C' => __( 'A Coruña', 'woocommerce' ),
'VI' => __( 'Araba/Álava', 'woocommerce' ),
'C' => __( 'A Coruña', 'woocommerce' ),
'VI' => __( 'Araba/Álava', 'woocommerce' ),
'AB' => __( 'Albacete', 'woocommerce' ),
'A' => __( 'Alicante', 'woocommerce' ),
'AL' => __( 'Almería', 'woocommerce' ),
'AL' => __( 'Almería', 'woocommerce' ),
'O' => __( 'Asturias', 'woocommerce' ),
'AV' => __( 'Ávila', 'woocommerce' ),
'AV' => __( 'Ávila', 'woocommerce' ),
'BA' => __( 'Badajoz', 'woocommerce' ),
'PM' => __( 'Baleares', 'woocommerce' ),
'B' => __( 'Barcelona', 'woocommerce' ),
'BU' => __( 'Burgos', 'woocommerce' ),
'CC' => __( 'Cáceres', 'woocommerce' ),
'CA' => __( 'Cádiz', 'woocommerce' ),
'CC' => __( 'Cáceres', 'woocommerce' ),
'CA' => __( 'Cádiz', 'woocommerce' ),
'S' => __( 'Cantabria', 'woocommerce' ),
'CS' => __( 'Castellón', 'woocommerce' ),
'CS' => __( 'Castellón', 'woocommerce' ),
'CE' => __( 'Ceuta', 'woocommerce' ),
'CR' => __( 'Ciudad Real', 'woocommerce' ),
'CO' => __( 'Córdoba', 'woocommerce' ),
'CO' => __( 'Córdoba', 'woocommerce' ),
'CU' => __( 'Cuenca', 'woocommerce' ),
'GI' => __( 'Girona', 'woocommerce' ),
'GR' => __( 'Granada', 'woocommerce' ),
@ -369,14 +369,14 @@ return array(
'SS' => __( 'Gipuzkoa', 'woocommerce' ),
'H' => __( 'Huelva', 'woocommerce' ),
'HU' => __( 'Huesca', 'woocommerce' ),
'J' => __( 'Jaén', 'woocommerce' ),
'J' => __( 'Jaén', 'woocommerce' ),
'LO' => __( 'La Rioja', 'woocommerce' ),
'GC' => __( 'Las Palmas', 'woocommerce' ),
'LE' => __( 'León', 'woocommerce' ),
'LE' => __( 'León', 'woocommerce' ),
'L' => __( 'Lleida', 'woocommerce' ),
'LU' => __( 'Lugo', 'woocommerce' ),
'M' => __( 'Madrid', 'woocommerce' ),
'MA' => __( 'Málaga', 'woocommerce' ),
'MA' => __( 'Málaga', 'woocommerce' ),
'ML' => __( 'Melilla', 'woocommerce' ),
'MU' => __( 'Murcia', 'woocommerce' ),
'NA' => __( 'Navarra', 'woocommerce' ),
@ -856,48 +856,48 @@ return array(
),
'LU' => array(),
'MD' => array( // Moldova states.
'C' => __( 'Chișinău', 'woocommerce' ),
'BL' => __( 'Bălți', 'woocommerce' ),
'C' => __( 'Chișinău', 'woocommerce' ),
'BL' => __( 'Bălți', 'woocommerce' ),
'AN' => __( 'Anenii Noi', 'woocommerce' ),
'BS' => __( 'Basarabeasca', 'woocommerce' ),
'BR' => __( 'Briceni', 'woocommerce' ),
'CH' => __( 'Cahul', 'woocommerce' ),
'CT' => __( 'Cantemir', 'woocommerce' ),
'CL' => __( 'Călărași', 'woocommerce' ),
'CS' => __( 'Căușeni', 'woocommerce' ),
'CM' => __( 'Cimișlia', 'woocommerce' ),
'CL' => __( 'Călărași', 'woocommerce' ),
'CS' => __( 'Căușeni', 'woocommerce' ),
'CM' => __( 'Cimișlia', 'woocommerce' ),
'CR' => __( 'Criuleni', 'woocommerce' ),
'DN' => __( 'Dondușeni', 'woocommerce' ),
'DN' => __( 'Dondușeni', 'woocommerce' ),
'DR' => __( 'Drochia', 'woocommerce' ),
'DB' => __( 'Dubăsari', 'woocommerce' ),
'ED' => __( 'Edineț', 'woocommerce' ),
'FL' => __( 'Fălești', 'woocommerce' ),
'FR' => __( 'Florești', 'woocommerce' ),
'GE' => __( 'UTA Găgăuzia', 'woocommerce' ),
'DB' => __( 'Dubăsari', 'woocommerce' ),
'ED' => __( 'Edineț', 'woocommerce' ),
'FL' => __( 'Fălești', 'woocommerce' ),
'FR' => __( 'Florești', 'woocommerce' ),
'GE' => __( 'UTA Găgăuzia', 'woocommerce' ),
'GL' => __( 'Glodeni', 'woocommerce' ),
'HN' => __( 'Hîncești', 'woocommerce' ),
'HN' => __( 'Hîncești', 'woocommerce' ),
'IL' => __( 'Ialoveni', 'woocommerce' ),
'LV' => __( 'Leova', 'woocommerce' ),
'NS' => __( 'Nisporeni', 'woocommerce' ),
'OC' => __( 'Ocnița', 'woocommerce' ),
'OC' => __( 'Ocnița', 'woocommerce' ),
'OR' => __( 'Orhei', 'woocommerce' ),
'RZ' => __( 'Rezina', 'woocommerce' ),
'RS' => __( 'Rîșcani', 'woocommerce' ),
'SG' => __( 'Sîngerei', 'woocommerce' ),
'RS' => __( 'Rîșcani', 'woocommerce' ),
'SG' => __( 'Sîngerei', 'woocommerce' ),
'SR' => __( 'Soroca', 'woocommerce' ),
'ST' => __( 'Strășeni', 'woocommerce' ),
'SD' => __( 'Șoldănești', 'woocommerce' ),
'SV' => __( 'Ștefan Vodă', 'woocommerce' ),
'ST' => __( 'Strășeni', 'woocommerce' ),
'SD' => __( 'Șoldănești', 'woocommerce' ),
'SV' => __( 'Ștefan Vodă', 'woocommerce' ),
'TR' => __( 'Taraclia', 'woocommerce' ),
'TL' => __( 'Telenești', 'woocommerce' ),
'TL' => __( 'Telenești', 'woocommerce' ),
'UN' => __( 'Ungheni', 'woocommerce' ),
),
'MQ' => array(),
'MT' => array(),
'MX' => array( // Mexico States.
'DF' => __( 'Ciudad de México', 'woocommerce' ),
'DF' => __( 'Ciudad de México', 'woocommerce' ),
'JA' => __( 'Jalisco', 'woocommerce' ),
'NL' => __( 'Nuevo León', 'woocommerce' ),
'NL' => __( 'Nuevo León', 'woocommerce' ),
'AG' => __( 'Aguascalientes', 'woocommerce' ),
'BC' => __( 'Baja California', 'woocommerce' ),
'BS' => __( 'Baja California Sur', 'woocommerce' ),
@ -910,22 +910,22 @@ return array(
'GT' => __( 'Guanajuato', 'woocommerce' ),
'GR' => __( 'Guerrero', 'woocommerce' ),
'HG' => __( 'Hidalgo', 'woocommerce' ),
'MX' => __( 'Estado de México', 'woocommerce' ),
'MI' => __( 'Michoacán', 'woocommerce' ),
'MX' => __( 'Estado de México', 'woocommerce' ),
'MI' => __( 'Michoacán', 'woocommerce' ),
'MO' => __( 'Morelos', 'woocommerce' ),
'NA' => __( 'Nayarit', 'woocommerce' ),
'OA' => __( 'Oaxaca', 'woocommerce' ),
'PU' => __( 'Puebla', 'woocommerce' ),
'QT' => __( 'Querétaro', 'woocommerce' ),
'QT' => __( 'Querétaro', 'woocommerce' ),
'QR' => __( 'Quintana Roo', 'woocommerce' ),
'SL' => __( 'San Luis Potosí', 'woocommerce' ),
'SL' => __( 'San Luis Potosí', 'woocommerce' ),
'SI' => __( 'Sinaloa', 'woocommerce' ),
'SO' => __( 'Sonora', 'woocommerce' ),
'TB' => __( 'Tabasco', 'woocommerce' ),
'TM' => __( 'Tamaulipas', 'woocommerce' ),
'TL' => __( 'Tlaxcala', 'woocommerce' ),
'VE' => __( 'Veracruz', 'woocommerce' ),
'YU' => __( 'Yucatán', 'woocommerce' ),
'YU' => __( 'Yucatán', 'woocommerce' ),
'ZA' => __( 'Zacatecas', 'woocommerce' ),
),
'MY' => array( // Malaysian states.
@ -1039,7 +1039,7 @@ return array(
'BP' => __( 'Bay of Plenty', 'woocommerce' ),
'TK' => __( 'Taranaki', 'woocommerce' ),
'GI' => __( 'Gisborne', 'woocommerce' ),
'HB' => __( 'Hawke’s Bay', 'woocommerce' ),
'HB' => __( 'Hawkes Bay', 'woocommerce' ),
'MW' => __( 'Manawatu-Wanganui', 'woocommerce' ),
'WE' => __( 'Wellington', 'woocommerce' ),
'NS' => __( 'Nelson', 'woocommerce' ),
@ -1055,15 +1055,15 @@ return array(
'LMA' => __( 'Municipalidad Metropolitana de Lima', 'woocommerce' ),
'AMA' => __( 'Amazonas', 'woocommerce' ),
'ANC' => __( 'Ancash', 'woocommerce' ),
'APU' => __( 'Apurímac', 'woocommerce' ),
'APU' => __( 'Apurímac', 'woocommerce' ),
'ARE' => __( 'Arequipa', 'woocommerce' ),
'AYA' => __( 'Ayacucho', 'woocommerce' ),
'CAJ' => __( 'Cajamarca', 'woocommerce' ),
'CUS' => __( 'Cusco', 'woocommerce' ),
'HUV' => __( 'Huancavelica', 'woocommerce' ),
'HUC' => __( 'Huánuco', 'woocommerce' ),
'HUC' => __( 'Huánuco', 'woocommerce' ),
'ICA' => __( 'Ica', 'woocommerce' ),
'JUN' => __( 'Junín', 'woocommerce' ),
'JUN' => __( 'Junín', 'woocommerce' ),
'LAL' => __( 'La Libertad', 'woocommerce' ),
'LAM' => __( 'Lambayeque', 'woocommerce' ),
'LIM' => __( 'Lima', 'woocommerce' ),
@ -1073,7 +1073,7 @@ return array(
'PAS' => __( 'Pasco', 'woocommerce' ),
'PIU' => __( 'Piura', 'woocommerce' ),
'PUN' => __( 'Puno', 'woocommerce' ),
'SAM' => __( 'San Martín', 'woocommerce' ),
'SAM' => __( 'San Martín', 'woocommerce' ),
'TAC' => __( 'Tacna', 'woocommerce' ),
'TUM' => __( 'Tumbes', 'woocommerce' ),
'UCA' => __( 'Ucayali', 'woocommerce' ),
@ -1179,67 +1179,67 @@ return array(
'PL' => array(),
'PT' => array(),
'PY' => array( // Paraguay states.
'PY-ASU' => __( 'Asunción', 'woocommerce' ),
'PY-1' => __( 'Concepción', 'woocommerce' ),
'PY-ASU' => __( 'Asunción', 'woocommerce' ),
'PY-1' => __( 'Concepción', 'woocommerce' ),
'PY-2' => __( 'San Pedro', 'woocommerce' ),
'PY-3' => __( 'Cordillera', 'woocommerce' ),
'PY-4' => __( 'Guairá', 'woocommerce' ),
'PY-5' => __( 'Caaguazú', 'woocommerce' ),
'PY-6' => __( 'Caazapá', 'woocommerce' ),
'PY-7' => __( 'Itapúa', 'woocommerce' ),
'PY-4' => __( 'Guairá', 'woocommerce' ),
'PY-5' => __( 'Caaguazú', 'woocommerce' ),
'PY-6' => __( 'Caazapá', 'woocommerce' ),
'PY-7' => __( 'Itapúa', 'woocommerce' ),
'PY-8' => __( 'Misiones', 'woocommerce' ),
'PY-9' => __( 'Paraguarí', 'woocommerce' ),
'PY-10' => __( 'Alto Paraná', 'woocommerce' ),
'PY-9' => __( 'Paraguarí', 'woocommerce' ),
'PY-10' => __( 'Alto Paraná', 'woocommerce' ),
'PY-11' => __( 'Central', 'woocommerce' ),
'PY-12' => __( 'Ñeembucú', 'woocommerce' ),
'PY-12' => __( 'Ñeembucú', 'woocommerce' ),
'PY-13' => __( 'Amambay', 'woocommerce' ),
'PY-14' => __( 'Canindeyú', 'woocommerce' ),
'PY-14' => __( 'Canindeyú', 'woocommerce' ),
'PY-15' => __( 'Presidente Hayes', 'woocommerce' ),
'PY-16' => __( 'Alto Paraguay', 'woocommerce' ),
'PY-17' => __( 'Boquerón', 'woocommerce' ),
'PY-17' => __( 'Boquerón', 'woocommerce' ),
),
'RE' => array(),
'RO' => array( // Romania states.
'AB' => __( 'Alba', 'woocommerce' ),
'AR' => __( 'Arad', 'woocommerce' ),
'AG' => __( 'Argeș', 'woocommerce' ),
'BC' => __( 'Bacău', 'woocommerce' ),
'AG' => __( 'Argeș', 'woocommerce' ),
'BC' => __( 'Bacău', 'woocommerce' ),
'BH' => __( 'Bihor', 'woocommerce' ),
'BN' => __( 'Bistrița-Năsăud', 'woocommerce' ),
'BT' => __( 'Botoșani', 'woocommerce' ),
'BR' => __( 'Brăila', 'woocommerce' ),
'BV' => __( 'Brașov', 'woocommerce' ),
'B' => __( 'București', 'woocommerce' ),
'BZ' => __( 'Buzău', 'woocommerce' ),
'CL' => __( 'Călărași', 'woocommerce' ),
'CS' => __( 'Caraș-Severin', 'woocommerce' ),
'BN' => __( 'Bistrița-Năsăud', 'woocommerce' ),
'BT' => __( 'Botoșani', 'woocommerce' ),
'BR' => __( 'Brăila', 'woocommerce' ),
'BV' => __( 'Brașov', 'woocommerce' ),
'B' => __( 'București', 'woocommerce' ),
'BZ' => __( 'Buzău', 'woocommerce' ),
'CL' => __( 'Călărași', 'woocommerce' ),
'CS' => __( 'Caraș-Severin', 'woocommerce' ),
'CJ' => __( 'Cluj', 'woocommerce' ),
'CT' => __( 'Constanța', 'woocommerce' ),
'CT' => __( 'Constanța', 'woocommerce' ),
'CV' => __( 'Covasna', 'woocommerce' ),
'DB' => __( 'Dâmbovița', 'woocommerce' ),
'DB' => __( 'Dâmbovița', 'woocommerce' ),
'DJ' => __( 'Dolj', 'woocommerce' ),
'GL' => __( 'Galați', 'woocommerce' ),
'GL' => __( 'Galați', 'woocommerce' ),
'GR' => __( 'Giurgiu', 'woocommerce' ),
'GJ' => __( 'Gorj', 'woocommerce' ),
'HR' => __( 'Harghita', 'woocommerce' ),
'HD' => __( 'Hunedoara', 'woocommerce' ),
'IL' => __( 'Ialomița', 'woocommerce' ),
'IS' => __( 'Iași', 'woocommerce' ),
'IL' => __( 'Ialomița', 'woocommerce' ),
'IS' => __( 'Iași', 'woocommerce' ),
'IF' => __( 'Ilfov', 'woocommerce' ),
'MM' => __( 'Maramureș', 'woocommerce' ),
'MH' => __( 'Mehedinți', 'woocommerce' ),
'MS' => __( 'Mureș', 'woocommerce' ),
'NT' => __( 'Neamț', 'woocommerce' ),
'MM' => __( 'Maramureș', 'woocommerce' ),
'MH' => __( 'Mehedinți', 'woocommerce' ),
'MS' => __( 'Mureș', 'woocommerce' ),
'NT' => __( 'Neamț', 'woocommerce' ),
'OT' => __( 'Olt', 'woocommerce' ),
'PH' => __( 'Prahova', 'woocommerce' ),
'SJ' => __( 'Sălaj', 'woocommerce' ),
'SJ' => __( 'Sălaj', 'woocommerce' ),
'SM' => __( 'Satu Mare', 'woocommerce' ),
'SB' => __( 'Sibiu', 'woocommerce' ),
'SV' => __( 'Suceava', 'woocommerce' ),
'TR' => __( 'Teleorman', 'woocommerce' ),
'TM' => __( 'Timiș', 'woocommerce' ),
'TM' => __( 'Timiș', 'woocommerce' ),
'TL' => __( 'Tulcea', 'woocommerce' ),
'VL' => __( 'Vâlcea', 'woocommerce' ),
'VL' => __( 'Vâlcea', 'woocommerce' ),
'VS' => __( 'Vaslui', 'woocommerce' ),
'VN' => __( 'Vrancea', 'woocommerce' ),
),
@ -1328,56 +1328,56 @@ return array(
),
'TR' => array( // Turkey States.
'TR01' => __( 'Adana', 'woocommerce' ),
'TR02' => __( 'Adıyaman', 'woocommerce' ),
'TR02' => __( 'Adıyaman', 'woocommerce' ),
'TR03' => __( 'Afyon', 'woocommerce' ),
'TR04' => __( 'Ağrı', 'woocommerce' ),
'TR04' => __( 'Ağrı', 'woocommerce' ),
'TR05' => __( 'Amasya', 'woocommerce' ),
'TR06' => __( 'Ankara', 'woocommerce' ),
'TR07' => __( 'Antalya', 'woocommerce' ),
'TR08' => __( 'Artvin', 'woocommerce' ),
'TR09' => __( 'Aydın', 'woocommerce' ),
'TR10' => __( 'Balıkesir', 'woocommerce' ),
'TR09' => __( 'Aydın', 'woocommerce' ),
'TR10' => __( 'Balıkesir', 'woocommerce' ),
'TR11' => __( 'Bilecik', 'woocommerce' ),
'TR12' => __( 'Bingöl', 'woocommerce' ),
'TR12' => __( 'Bingöl', 'woocommerce' ),
'TR13' => __( 'Bitlis', 'woocommerce' ),
'TR14' => __( 'Bolu', 'woocommerce' ),
'TR15' => __( 'Burdur', 'woocommerce' ),
'TR16' => __( 'Bursa', 'woocommerce' ),
'TR17' => __( 'Çanakkale', 'woocommerce' ),
'TR18' => __( 'Çankırı', 'woocommerce' ),
'TR19' => __( 'Çorum', 'woocommerce' ),
'TR17' => __( 'Çanakkale', 'woocommerce' ),
'TR18' => __( 'Çankırı', 'woocommerce' ),
'TR19' => __( 'Çorum', 'woocommerce' ),
'TR20' => __( 'Denizli', 'woocommerce' ),
'TR21' => __( 'Diyarbakır', 'woocommerce' ),
'TR21' => __( 'Diyarbakır', 'woocommerce' ),
'TR22' => __( 'Edirne', 'woocommerce' ),
'TR23' => __( 'Elazığ', 'woocommerce' ),
'TR23' => __( 'Elazığ', 'woocommerce' ),
'TR24' => __( 'Erzincan', 'woocommerce' ),
'TR25' => __( 'Erzurum', 'woocommerce' ),
'TR26' => __( 'Eskişehir', 'woocommerce' ),
'TR26' => __( 'Eskişehir', 'woocommerce' ),
'TR27' => __( 'Gaziantep', 'woocommerce' ),
'TR28' => __( 'Giresun', 'woocommerce' ),
'TR29' => __( 'Gümüşhane', 'woocommerce' ),
'TR29' => __( 'Gümüşhane', 'woocommerce' ),
'TR30' => __( 'Hakkari', 'woocommerce' ),
'TR31' => __( 'Hatay', 'woocommerce' ),
'TR32' => __( 'Isparta', 'woocommerce' ),
'TR33' => __( 'İçel', 'woocommerce' ),
'TR34' => __( 'İstanbul', 'woocommerce' ),
'TR35' => __( 'İzmir', 'woocommerce' ),
'TR33' => __( 'İçel', 'woocommerce' ),
'TR34' => __( 'İstanbul', 'woocommerce' ),
'TR35' => __( 'İzmir', 'woocommerce' ),
'TR36' => __( 'Kars', 'woocommerce' ),
'TR37' => __( 'Kastamonu', 'woocommerce' ),
'TR38' => __( 'Kayseri', 'woocommerce' ),
'TR39' => __( 'Kırklareli', 'woocommerce' ),
'TR40' => __( 'Kırşehir', 'woocommerce' ),
'TR39' => __( 'Kırklareli', 'woocommerce' ),
'TR40' => __( 'Kıehir', 'woocommerce' ),
'TR41' => __( 'Kocaeli', 'woocommerce' ),
'TR42' => __( 'Konya', 'woocommerce' ),
'TR43' => __( 'Kütahya', 'woocommerce' ),
'TR43' => __( 'Kütahya', 'woocommerce' ),
'TR44' => __( 'Malatya', 'woocommerce' ),
'TR45' => __( 'Manisa', 'woocommerce' ),
'TR46' => __( 'Kahramanmaraş', 'woocommerce' ),
'TR46' => __( 'Kahramanmaraş', 'woocommerce' ),
'TR47' => __( 'Mardin', 'woocommerce' ),
'TR48' => __( 'Muğla', 'woocommerce' ),
'TR49' => __( 'Muş', 'woocommerce' ),
'TR50' => __( 'Nevşehir', 'woocommerce' ),
'TR51' => __( 'Niğde', 'woocommerce' ),
'TR48' => __( 'Muğla', 'woocommerce' ),
'TR49' => __( 'Muş', 'woocommerce' ),
'TR50' => __( 'Nevşehir', 'woocommerce' ),
'TR51' => __( 'Niğde', 'woocommerce' ),
'TR52' => __( 'Ordu', 'woocommerce' ),
'TR53' => __( 'Rize', 'woocommerce' ),
'TR54' => __( 'Sakarya', 'woocommerce' ),
@ -1385,29 +1385,29 @@ return array(
'TR56' => __( 'Siirt', 'woocommerce' ),
'TR57' => __( 'Sinop', 'woocommerce' ),
'TR58' => __( 'Sivas', 'woocommerce' ),
'TR59' => __( 'Tekirdağ', 'woocommerce' ),
'TR59' => __( 'Tekirdağ', 'woocommerce' ),
'TR60' => __( 'Tokat', 'woocommerce' ),
'TR61' => __( 'Trabzon', 'woocommerce' ),
'TR62' => __( 'Tunceli', 'woocommerce' ),
'TR63' => __( 'Şanlıurfa', 'woocommerce' ),
'TR64' => __( 'Uşak', 'woocommerce' ),
'TR63' => __( 'Şanlıurfa', 'woocommerce' ),
'TR64' => __( 'Uşak', 'woocommerce' ),
'TR65' => __( 'Van', 'woocommerce' ),
'TR66' => __( 'Yozgat', 'woocommerce' ),
'TR67' => __( 'Zonguldak', 'woocommerce' ),
'TR68' => __( 'Aksaray', 'woocommerce' ),
'TR69' => __( 'Bayburt', 'woocommerce' ),
'TR70' => __( 'Karaman', 'woocommerce' ),
'TR71' => __( 'Kırıkkale', 'woocommerce' ),
'TR71' => __( 'Kırıkkale', 'woocommerce' ),
'TR72' => __( 'Batman', 'woocommerce' ),
'TR73' => __( 'Şırnak', 'woocommerce' ),
'TR74' => __( 'Bartın', 'woocommerce' ),
'TR73' => __( 'Şırnak', 'woocommerce' ),
'TR74' => __( 'Bartın', 'woocommerce' ),
'TR75' => __( 'Ardahan', 'woocommerce' ),
'TR76' => __( 'Iğdır', 'woocommerce' ),
'TR76' => __( 'Iğdır', 'woocommerce' ),
'TR77' => __( 'Yalova', 'woocommerce' ),
'TR78' => __( 'Karabük', 'woocommerce' ),
'TR78' => __( 'Karabük', 'woocommerce' ),
'TR79' => __( 'Kilis', 'woocommerce' ),
'TR80' => __( 'Osmaniye', 'woocommerce' ),
'TR81' => __( 'Düzce', 'woocommerce' ),
'TR81' => __( 'Düzce', 'woocommerce' ),
),
'TZ' => array( // Tanzania States.
'TZ01' => __( 'Arusha', 'woocommerce' ),

View File

@ -7,7 +7,7 @@
*
* @class WC_Data
* @version 3.0.0
* @package WooCommerce/Classes
* @package WooCommerce\Classes
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* Implemented by classes using the same CRUD(s) pattern.
*
* @version 2.6.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Data {

View File

@ -7,7 +7,7 @@
*
* @class WC_Settings_API
* @version 2.6.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @class WC_Integration
* @extends WC_Settings_API
* @version 2.6.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Integration extends WC_Settings_API {

View File

@ -3,7 +3,7 @@
* Log handling functionality.
*
* @class WC_Log_Handler
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* Abstract WC Log Handler Class
*
* @version 1.0.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Log_Handler implements WC_Log_Handler_Interface {

View File

@ -2,7 +2,7 @@
/**
* Query abstraction layer functionality.
*
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* Extended by classes to provide a query abstraction layer for safe object searching.
*
* @version 3.1.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Object_Query {

View File

@ -7,7 +7,7 @@
*
* @class WC_Abstract_Order
* @version 3.0.0
* @package WooCommerce/Classes
* @package WooCommerce\Classes
*/
defined( 'ABSPATH' ) || exit;

View File

@ -6,7 +6,7 @@
*
* @class WC_Payment_Gateway
* @version 2.1.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
use Automattic\Jetpack\Constants;
@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @class WC_Payment_Gateway
* @extends WC_Settings_API
* @version 2.1.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Payment_Gateway extends WC_Settings_API {

View File

@ -5,7 +5,7 @@
* Generic payment tokens functionality which can be extended by idividual types of payment tokens.
*
* @class WC_Payment_Token
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -23,7 +23,7 @@ require_once WC_ABSPATH . 'includes/legacy/abstract-wc-legacy-payment-token.php'
* @class WC_Payment_Token
* @version 3.0.0
* @since 2.6.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Payment_Token extends WC_Legacy_Payment_Token {

View File

@ -3,7 +3,7 @@
* WooCommerce abstract privacy class.
*
* @since 3.4.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
defined( 'ABSPATH' ) || exit;
@ -15,7 +15,7 @@ defined( 'ABSPATH' ) || exit;
* privacy data to be exported and privacy data to be deleted.
*
* @version 3.4.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Abstract_Privacy {
/**

View File

@ -2,7 +2,7 @@
/**
* WooCommerce product base class.
*
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -21,7 +21,7 @@ require_once WC_ABSPATH . 'includes/legacy/abstract-wc-legacy-product.php';
* The WooCommerce product class handles individual product data.
*
* @version 3.0.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
class WC_Product extends WC_Abstract_Legacy_Product {
@ -1501,6 +1501,16 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @return bool
*/
public function is_visible() {
$visible = $this->is_visible_core();
return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() );
}
/**
* Returns whether or not the product is visible in the catalog (doesn't trigger filters).
*
* @return bool
*/
protected function is_visible_core() {
$visible = 'visible' === $this->get_catalog_visibility() || ( is_search() && 'search' === $this->get_catalog_visibility() ) || ( ! is_search() && 'catalog' === $this->get_catalog_visibility() );
if ( 'trash' === $this->get_status() ) {
@ -1521,7 +1531,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
$visible = false;
}
return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() );
return $visible;
}
/**

View File

@ -4,7 +4,7 @@
*
* @class WC_Session
* @version 2.0.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -4,7 +4,7 @@
*
* Admin Settings API used by Integrations, Shipping Methods, and Payment Gateways.
*
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
defined( 'ABSPATH' ) || exit;

View File

@ -3,7 +3,7 @@
* Abstract shipping method
*
* @class WC_Shipping_Method
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @class WC_Shipping_Method
* @version 3.0.0
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
abstract class WC_Shipping_Method extends WC_Settings_API {

View File

@ -3,7 +3,7 @@
* Abstract widget class
*
* @class WC_Widget
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
*/
use Automattic\Jetpack\Constants;
@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* WC_Widget
*
* @package WooCommerce/Abstracts
* @package WooCommerce\Abstracts
* @version 2.5.0
* @extends WP_Widget
*/

View File

@ -5,7 +5,7 @@
* Uses https://github.com/A5hleyRich/wp-background-processing to handle DB
* updates in the background.
*
* @package WooCommerce/Classes
* @package WooCommerce\Classes
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* Addons Page
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.5.0
*/

View File

@ -2,7 +2,7 @@
/**
* Load assets
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.7.0
*/

View File

@ -4,7 +4,7 @@
*
* The attributes section lets users add custom attributes to assign to products - they can also be used in the "Filter Products by Attribute" widget.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.3.0
*/

View File

@ -4,7 +4,7 @@
*
* @author WooCommerce
* @category Admin
* @package WooCommerce/Admin/Customize
* @package WooCommerce\Admin\Customize
* @version 3.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Admin Dashboard
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Duplicate product functionality
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.0.0
*/

View File

@ -2,7 +2,7 @@
/**
* Init WooCommerce data exporters.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Add some content to the help tab
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Init WooCommerce data importers.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
use Automattic\Jetpack\Constants;

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 1.0.0
*/

View File

@ -4,7 +4,7 @@
*
* Sets up the write panels used by products and orders (custom post types).
*
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
*/
use Automattic\Jetpack\Constants;

View File

@ -5,7 +5,7 @@
* @class WC_Admin_Permalink_Settings
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.3.0
*/

View File

@ -2,7 +2,7 @@
/**
* Post Types Admin
*
* @package WooCommerce/admin
* @package WooCommerce\Admin
* @version 3.3.0
*/
@ -804,9 +804,10 @@ class WC_Admin_Post_Types {
* @param int $product_id product identifier.
* @param int $variation_id optional product variation identifier.
* @param array $downloadable_files newly set files.
* @deprecated and moved to post-data class.
* @deprecated 3.3.0 and moved to post-data class.
*/
public function process_product_file_download_paths( $product_id, $variation_id, $downloadable_files ) {
wc_deprecated_function( 'WC_Admin_Post_Types::process_product_file_download_paths', '3.3', '' );
WC_Post_Data::process_product_file_download_paths( $product_id, $variation_id, $downloadable_files );
}

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.4.0
*/

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.0.0
*/

View File

@ -2,7 +2,7 @@
/**
* WooCommerce Admin Settings Class
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.4.0
*/

View File

@ -4,7 +4,7 @@
*
* Takes new users through some basic steps to setup their store.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.6.0
*/

View File

@ -2,7 +2,7 @@
/**
* Debug/Status page
*
* @package WooCommerce/Admin/System Status
* @package WooCommerce\Admin\System Status
* @version 2.2.0
*/

View File

@ -4,7 +4,7 @@
*
* @class WC_Admin_Taxonomies
* @version 2.3.10
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -3,7 +3,7 @@
* WooCommerce Admin
*
* @class WC_Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.6.0
*/
@ -331,6 +331,11 @@ class WC_Admin {
$classes .= ' wc-wp-version-gte-53';
}
// Add WP 5.5+ compatibility class.
if ( $raw_version && version_compare( $version, '5.5', '>=' ) ) {
$classes .= ' wc-wp-version-gte-55';
}
return $classes;
}
}

View File

@ -3,7 +3,7 @@
* WooCommerce Admin
*
* @class WC_Helper_API
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -3,7 +3,7 @@
* The update helper for WooCommerce.com plugins.
*
* @class WC_Helper_Updater
* @package WooCommerce/Admin.
* @package WooCommerce\Admin.
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -191,6 +191,11 @@ class WC_Helper_Updater {
$locales = apply_filters( 'plugins_update_check_locales', $locales );
$locales = array_unique( $locales );
// No locales, the respone will be empty, we can return now.
if ( empty( $locales ) ) {
return array();
}
// Scan local plugins which may or may not have a subscription.
$plugins = WC_Helper::get_local_woo_plugins();
$active_woo_plugins = array_intersect( array_keys( $plugins ), get_option( 'active_plugins', array() ) );

View File

@ -3,7 +3,7 @@
* WooCommerce Admin
*
* @class WC_Helper
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
use Automattic\Jetpack\Constants;

View File

@ -2,7 +2,7 @@
/**
* Helper admin navigation.
*
* @package WooCommerce/Helper
* @package WooCommerce\Helper
*/
defined( 'ABSPATH' ) || exit(); ?>

View File

@ -16,7 +16,7 @@ if ( ! class_exists( 'WP_Importer' ) ) {
/**
* Product importer controller - handles file upload and forms in admin.
*
* @package WooCommerce/Admin/Importers
* @package WooCommerce\Admin\Importers
* @version 3.1.0
*/
class WC_Product_CSV_Importer_Controller {

View File

@ -3,7 +3,7 @@
* Tax importer class file
*
* @version 2.3.0
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -17,7 +17,7 @@ if ( ! class_exists( 'WP_Importer' ) ) {
/**
* Tax Rates importer - import tax rates and local tax rates into WooCommerce.
*
* @package WooCommerce/Admin/Importers
* @package WooCommerce\Admin\Importers
* @version 2.3.0
*/
class WC_Tax_Rate_Importer extends WP_Importer {

View File

@ -2,7 +2,7 @@
/**
* Admin View: Product import form
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,7 +2,7 @@
/**
* List tables.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.3.0
*/

View File

@ -2,7 +2,7 @@
/**
* List tables: coupons.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.3.0
*/

View File

@ -2,7 +2,7 @@
/**
* List tables: orders.
*
* @package WooCommerce\admin
* @package WooCommerce\Admin
* @version 3.3.0
*/

View File

@ -2,7 +2,7 @@
/**
* List tables: products.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.3.0
*/
@ -395,11 +395,12 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
/**
* Search by SKU or ID for products.
*
* @deprecated Logic moved to query_filters.
* @deprecated 4.4.0 Logic moved to query_filters.
* @param string $where Where clause SQL.
* @return string
*/
public function sku_search( $where ) {
wc_deprecated_function( 'WC_Admin_List_Table_Products::sku_search', '4.4.0', 'Logic moved to query_filters.' );
return $where;
}

View File

@ -2,7 +2,7 @@
/**
* Marketplace suggestions container
*
* @package WooCommerce/Templates
* @package WooCommerce\Templates
* @version 3.6.0
*/

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.1.0
*/

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.1.0
*/

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.2.0
*/

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.1.0
*/

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Order Notes
*
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -4,7 +4,7 @@
*
* Displays the product data box, tabbed, with several panels covering price, stock etc.
*
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 3.0.0
*/

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.1.0
*/

View File

@ -4,7 +4,7 @@
*
* Functions for displaying product reviews data meta box.
*
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
*/
defined( 'ABSPATH' ) || exit;

View File

@ -4,7 +4,7 @@
*
* Replaces the standard excerpt box.
*
* @package WooCommerce/Admin/Meta Boxes
* @package WooCommerce\Admin\Meta Boxes
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Shows an order item
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @var object $item The item being displayed
* @var int $item_id The id of the item being displayed
*/

View File

@ -2,7 +2,7 @@
/**
* Order items HTML for meta box.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;
@ -147,7 +147,7 @@ if ( wc_tax_enabled() ) {
<td class="label"><?php esc_html_e( 'Items Subtotal:', 'woocommerce' ); ?></td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $order->get_subtotal(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_subtotal(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
<?php if ( 0 < $order->get_total_discount() ) : ?>
@ -155,7 +155,7 @@ if ( wc_tax_enabled() ) {
<td class="label"><?php esc_html_e( 'Coupon(s):', 'woocommerce' ); ?></td>
<td width="1%"></td>
<td class="total">-
<?php echo wc_price( $order->get_total_discount(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_total_discount(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
<?php endif; ?>
@ -164,7 +164,7 @@ if ( wc_tax_enabled() ) {
<td class="label"><?php esc_html_e( 'Fees:', 'woocommerce' ); ?></td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $order->get_total_fees(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_total_fees(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
<?php endif; ?>
@ -176,7 +176,7 @@ if ( wc_tax_enabled() ) {
<td class="label"><?php esc_html_e( 'Shipping:', 'woocommerce' ); ?></td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $order->get_shipping_total(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_shipping_total(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
<?php endif; ?>
@ -189,7 +189,7 @@ if ( wc_tax_enabled() ) {
<td class="label"><?php echo esc_html( $tax_total->label ); ?>:</td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $tax_total->amount, array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $tax_total->amount, array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
<?php endforeach; ?>
@ -201,7 +201,7 @@ if ( wc_tax_enabled() ) {
<td class="label"><?php esc_html_e( 'Order Total', 'woocommerce' ); ?>:</td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $order->get_total(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_total(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
@ -209,16 +209,31 @@ if ( wc_tax_enabled() ) {
<div class="clear"></div>
<?php if ( in_array( $order->get_status(), array( 'processing', 'completed', 'refunded' ) ) && ! empty( $order->get_date_paid() ) ) : ?>
<?php if ( in_array( $order->get_status(), array( 'processing', 'completed', 'refunded' ), true ) && ! empty( $order->get_date_paid() ) ) : ?>
<table class="wc-order-totals" style="border-top: 1px solid #999; margin-top:12px; padding-top:12px">
<tr>
<td class="label"><?php esc_html_e( 'Paid By Customer', 'woocommerce' ); ?>:</td>
<td class="<?php echo $order->get_total_refunded() ? 'label' : 'label label-highlight'; ?>"><?php esc_html_e( 'Paid', 'woocommerce' ); ?>: <br /></td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $order->get_total(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_total(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
<tr>
<td>
<span class="description">
<?php
if ( $order->get_payment_method_title() ) {
/* translators: 1: payment date. 2: payment method */
echo esc_html( sprintf( __( '%1$s via %2$s', 'woocommerce' ), $order->get_date_paid()->date_i18n( get_option( 'date_format' ) ), $order->get_payment_method_title() ) );
} else {
echo esc_html( $order->get_date_paid()->date_i18n( get_option( 'date_format' ) ) );
}
?>
</span>
</td>
<td colspan="2"></td>
</tr>
</table>
<div class="clear"></div>
@ -230,16 +245,16 @@ if ( wc_tax_enabled() ) {
<tr>
<td class="label refunded-total"><?php esc_html_e( 'Refunded', 'woocommerce' ); ?>:</td>
<td width="1%"></td>
<td class="total refunded-total">-<?php echo wc_price( $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?></td>
<td class="total refunded-total">-<?php echo wc_price( $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
</tr>
<?php do_action( 'woocommerce_admin_order_totals_after_refunded', $order->get_id() ); ?>
<tr>
<td class="label"><?php esc_html_e( 'Net Total', 'woocommerce' ); ?>:</td>
<td class="label label-highlight"><?php esc_html_e( 'Net Payment', 'woocommerce' ); ?>:</td>
<td width="1%"></td>
<td class="total">
<?php echo wc_price( $order->get_total() - $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?>
<?php echo wc_price( $order->get_total() - $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
</tr>
@ -301,11 +316,11 @@ if ( wc_tax_enabled() ) {
<?php endif; ?>
<tr>
<td class="label"><?php esc_html_e( 'Amount already refunded', 'woocommerce' ); ?>:</td>
<td class="total">-<?php echo wc_price( $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?></td>
<td class="total">-<?php echo wc_price( $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
</tr>
<tr>
<td class="label"><?php esc_html_e( 'Total available to refund', 'woocommerce' ); ?>:</td>
<td class="total"><?php echo wc_price( $order->get_total() - $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // WPCS: XSS ok. ?></td>
<td class="total"><?php echo wc_price( $order->get_total() - $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
</tr>
<tr>
<td class="label">
@ -386,7 +401,7 @@ if ( wc_tax_enabled() ) {
?>
<tbody data-row="<?php echo esc_attr( $row ); ?>">
<tr>
<?php echo $row; // WPCS: XSS ok. ?>
<?php echo $row; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</tr>
</tbody>
</table>
@ -426,18 +441,17 @@ if ( wc_tax_enabled() ) {
</tr>
</thead>
<?php
$rates = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}woocommerce_tax_rates ORDER BY tax_rate_name LIMIT 100" );
$rates = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}woocommerce_tax_rates ORDER BY tax_rate_name LIMIT 100" );
foreach ( $rates as $rate ) {
echo '
<tr>
<td><input type="radio" id="add_order_tax_' . absint( $rate->tax_rate_id ) . '" name="add_order_tax" value="' . absint( $rate->tax_rate_id ) . '" /></td>
<td><label for="add_order_tax_' . absint( $rate->tax_rate_id ) . '">' . WC_Tax::get_rate_label( $rate ) . '</label></td>
<td>' . ( isset( $classes_options[ $rate->tax_rate_class ] ) ? $classes_options[ $rate->tax_rate_class ] : '-' ) . '</td>
<td>' . WC_Tax::get_rate_code( $rate ) . '</td>
<td>' . WC_Tax::get_rate_percent( $rate ) . '</td>
<td><label for="add_order_tax_' . absint( $rate->tax_rate_id ) . '">' . esc_html( WC_Tax::get_rate_label( $rate ) ) . '</label></td>
<td>' . ( isset( $classes_options[ $rate->tax_rate_class ] ) ? esc_html( $classes_options[ $rate->tax_rate_class ] ) : '-' ) . '</td>
<td>' . esc_html( WC_Tax::get_rate_code( $rate ) ) . '</td>
<td>' . esc_html( WC_Tax::get_rate_percent( $rate ) ) . '</td>
</tr>
'; // WPCS: XSS ok.
';
}
?>
</table>

View File

@ -2,7 +2,7 @@
/**
* Order notes HTML for meta box.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,12 +2,12 @@
/**
* Shows a shipping line
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*
* @var object $item The item being displayed
* @var int $item_id The id of the item being displayed
*
* @package WooCommerce/Admin/Views
* @package WooCommerce\Admin\Views
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,7 +2,7 @@
/**
* Product general data panel.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* Linked product options.
*
* @package WooCommerce/admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* Product data meta box.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -6,7 +6,7 @@
* @var int $variation_id
* @var WP_POST $variation
* @var WC_Product_Variation $variation_object
* @var array $variation_data array of variation data @deprecated.
* @var array $variation_data array of variation data @deprecated 4.4.0.
*/
defined( 'ABSPATH' ) || exit;

View File

@ -111,7 +111,7 @@ class WC_Notes_Run_Db_Update {
private static function update_needed_notice( $note_id = null ) {
$update_url = html_entity_decode(
wp_nonce_url(
add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ),
add_query_arg( 'do_update_woocommerce', 'true', wc_get_current_admin_url() ? wc_get_current_admin_url() : admin_url( 'admin.php?page=wc-settings' ) ),
'wc_db_update',
'wc_db_update_nonce'
)
@ -210,7 +210,7 @@ class WC_Notes_Run_Db_Update {
add_query_arg(
'wc-hide-notice',
'update',
admin_url( 'admin.php?page=wc-settings' )
wc_get_current_admin_url() ? wc_get_current_admin_url() : admin_url( 'admin.php?page=wc-settings' )
),
'woocommerce_hide_notices_nonce',
'_wc_notice_nonce'

View File

@ -2,7 +2,7 @@
/**
* Class for displaying plugin warning notifications and determining 3rd party plugin compatibility.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.2.0
*/

View File

@ -2,7 +2,7 @@
/**
* Manages WooCommerce plugin updating on the Plugins screen.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.2.0
*/

View File

@ -2,7 +2,7 @@
/**
* Manages WooCommerce plugin updating on the Updates screen.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.2.0
*/

View File

@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Admin_Report {

View File

@ -2,7 +2,7 @@
/**
* Coupon usage report functionality
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Coupon_Usage extends WC_Admin_Report {

View File

@ -16,7 +16,7 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
/**
* WC_Report_Customer_List.
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Customer_List extends WP_List_Table {

View File

@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* WC_Report_Customers
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Customers extends WC_Admin_Report {

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 3.3.0
*/

View File

@ -2,7 +2,7 @@
/**
* WC_Report_Low_In_Stock.
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* WC_Report_Most_Stocked.
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* WC_Report_Out_Of_Stock.
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* Sales by category report functionality
*
* @package WooCommerce/Admin/Reporting
* @package WooCommerce\Admin\Reporting
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Sales_By_Category extends WC_Admin_Report {

View File

@ -2,7 +2,7 @@
/**
* WC_Report_Sales_By_Date
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* Sales By Product Reporting
*
* @package WooCommerce/Admin/Reporting
* @package WooCommerce\Admin\Reporting
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* WC_Report_Sales_By_Product
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Sales_By_Product extends WC_Admin_Report {

View File

@ -13,7 +13,7 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Stock extends WP_List_Table {

View File

@ -2,7 +2,7 @@
/**
* Taxes by tax code report.
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* WC_Report_Taxes_By_Code
*
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Taxes_By_Code extends WC_Admin_Report {

View File

@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @package WooCommerce\Admin\Reports
* @version 2.1.0
*/
class WC_Report_Taxes_By_Date extends WC_Admin_Report {

View File

@ -2,7 +2,7 @@
/**
* WooCommerce Account Settings.
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* WooCommerce advanced settings
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

View File

@ -2,7 +2,7 @@
/**
* WooCommerce Email Settings
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* WooCommerce General Settings
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.1.0
*/

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 2.1.0
*/

View File

@ -2,7 +2,7 @@
/**
* WooCommerce Checkout Settings
*
* @package WooCommerce/Admin
* @package WooCommerce\Admin
*/
defined( 'ABSPATH' ) || exit;

Some files were not shown because too many files have changed in this diff Show More