Commit Graph

202 Commits

Author SHA1 Message Date
Rodrigo Primo f06ad5d78a Replace removed WordPress.Security.NonceVerification.NoNonceVerification
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:

```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```

(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31))

This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Yash Kapoor 9517cd7877
Update html-product-csv-import-form.php
Fixed line indentation issue on line no 52.
2019-08-23 18:22:28 +05:30
Yash Kapoor ef2d38097d
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:04:52 +05:30
Yash Kapoor 9eed3757ae
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:03:59 +05:30
Yash Kapoor c3c91298b5
Update html-product-csv-import-form.php
Fixed data-showtext value.
2019-08-23 17:18:01 +05:30
Claudio Sanches 55692cba87
Merge pull request #23255 from woocommerce/shopify-column-mapping
Mapping for default Shopify fields
2019-07-08 18:53:57 -03:00
Claudio Sanches c1223e3890 Fixed meta: label 2019-07-08 18:52:03 -03:00
Rodrigo Primo 737f6af5e8 Introduce file type check for tax rate importer 2019-07-02 10:44:21 -03:00
Rodrigo Primo cabf9de71a Added nonce check to CSV importer actions 2019-07-02 10:37:46 -03:00
Mike Jolley aaca13ee3d Map more fields, including special columns with custom data handling requirements 2019-04-15 16:05:29 +01:00
Mike Jolley 93535047fd Ability to parse tags with space separators 2019-04-15 15:55:42 +01:00
Mike Jolley b5f89e35d1 Remove localisation 2019-04-15 14:26:49 +01:00
Mike Jolley c5b7719697 Only map if this is looks like a Shopify export. 2019-04-15 14:24:56 +01:00
John Coy 0bd52938ab Mapping for default Shopify fields
Helps to improve assigning the default Shopify columns upon upload.
2019-04-09 14:09:09 -05:00
Mike Jolley cb27b40c67 Search for 'number' anywhere in cell, not just the end 2019-04-09 14:37:46 +01:00
Rodrigo Primo 2c8d006c37 Update PHPCompatibility sniff names
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo bfa9424d17 Update WPCS sniff name
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo e467737653 phpcs fixes 2018-11-21 11:06:42 -02:00
jvanderveen c205cab470
Update class-wc-tax-rate-importer.php 2018-11-06 15:01:44 +01:00
claudiulodro ccdf6d0253 Simplified path check for CSV importer to cause less issues 2018-10-15 13:50:34 -07:00
claudiulodro 26b188569b Add filter for disabling file path check 2018-10-11 13:31:27 -07:00
claudiulodro acf8757636 Add path checking and fix bug 2018-10-11 13:31:27 -07:00
claudiulodro 7b19673dea Extra file type checking 2018-10-11 13:31:27 -07:00
Joey Gilham 58cdd7dad2
Merge branch 'master' into master 2018-07-03 15:41:15 +01:00
Mike Jolley 38be26e7a5 sanitize_special_column_name_regex trim 2018-06-11 14:55:36 +01:00
Mike Jolley 5cfd2f0f7a
Merge pull request #20273 from woocommerce/fix/20268
Fix broken product import file uploads on windows
2018-05-29 15:27:40 +01:00
Mike Jolley 800701adb0 Pass varaible 2018-05-29 15:25:11 +01:00
Mike Jolley 9637ada4ee Keep escape, pass link 2018-05-29 11:16:30 +01:00
Gerhard Potgieter e3a37f81ee Changes based on feedback, no need for sanitasion since wp_handle_upload alread checks 2018-05-29 07:37:25 +02:00
Remi Corson b64182162e remove wp_kses() and esc_html() 2018-05-28 12:29:26 +02:00
Gerhard Potgieter 4e40d79f84 Use wc_clean and not wp_unslash when cleaning the file path, strips out slashed on windows machines 2018-05-28 11:50:04 +02:00
Remi Corson 61b9461375 Add wp_kses() authorized tag 2018-05-28 11:44:05 +02:00
Remi Corson 4743dba7d0 Make sample tax rate URL clickable 2018-05-28 11:23:32 +02:00
Joey d815f7bad5 updated import/export functions for low_stock_amount 2018-05-27 06:00:20 +01:00
Joey b08b55a651 added changes for low stock notifications per product 2018-05-27 05:40:58 +01:00
Chris Montgomery 5c37551128 Fix infinite loop with importing tax rates (#20253). 2018-05-26 22:42:37 +00:00
Gerhard Potgieter 5b1180d81a Server files always need to be relative to ABSPATH, and use wc_clean as esc_url_raw will mess up file paths. 2018-05-25 12:57:01 +02:00
Gerhard Potgieter b1739dd21d Add functionality to handle import files hosted on server 2018-05-24 07:34:40 +02:00
claudiulodro 2ee7c62499 Add default empty step class to html-csv-import-steps.php 2018-05-10 11:59:17 -07:00
Claudio Sanches 0ac857f049 Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
Fixed notice:

```
PHP Notice:  Only variables should be passed by reference in includes/admin/importers/class-wc-product-csv-importer-controller.php on line 298
```
2018-04-04 15:50:08 -03:00
Rodrigo Primo a0db877e24 phpcs fixes in includes/admin/importers/views/html-product-csv-import-form.php 2018-03-09 17:26:49 -03:00
Rodrigo Primo 9b03fff8b8 phpcs fixes in includes/admin/importers/views/html-csv-import-steps.php 2018-03-09 17:26:40 -03:00
Rodrigo Primo 924a7a5cc3 phpcs fixes in includes/admin/importers/views/html-csv-import-progress.php 2018-03-09 17:26:26 -03:00
Rodrigo Primo 56b82815a9 phpcs fixes in includes/admin/importers/views/html-csv-import-mapping.php 2018-03-09 17:26:16 -03:00
Rodrigo Primo 703627365a phpcs fixes in includes/admin/importers/views/html-csv-import-header.php 2018-03-09 17:26:05 -03:00
Rodrigo Primo 8c54884118 phpcs fixes in includes/admin/importers/views/html-csv-import-footer.php 2018-03-09 17:25:55 -03:00
Rodrigo Primo b67e839dbb phpcs fixes in includes/admin/importers/views/html-csv-import-done.php 2018-03-09 17:25:45 -03:00
Rodrigo Primo 5b425402c2 phpcs fixes in includes/admin/importers/mappings/wordpress.php 2018-03-09 17:25:36 -03:00
Rodrigo Primo 20650248ae phpcs fixes in includes/admin/importers/mappings/mappings.php 2018-03-09 17:25:24 -03:00
Rodrigo Primo c7d13ddab6 phpcs fixes in includes/admin/importers/mappings/generic.php 2018-03-09 17:25:15 -03:00