Gerhard Potgieter
ddeee320ef
input to button for submit in html-admin-page-status-logs.php
2017-11-07 10:30:41 +02:00
Gerhard Potgieter
a9690b37f5
PHPCS fixes for html-admin-page-status-logs.php
2017-11-07 10:29:16 +02:00
Gerhard Potgieter
f063aad89c
input to button for submit in html-admin-page-product-export.php
2017-11-07 10:27:25 +02:00
Gerhard Potgieter
636a34630e
PHPCS fixes for html-admin-page-export.php
2017-11-07 10:24:39 +02:00
Gerhard Potgieter
3109b11dbe
input to button for submit in html-webhook-edit.php
2017-11-07 10:23:23 +02:00
Gerhard Potgieter
8b7320dcd6
PHPCS fixes for html-webhook-edit.php
2017-11-07 10:20:51 +02:00
Gerhard Potgieter
416fb697f9
input to button for submit in html-admin-page-shipping-zone-methods.php
2017-11-07 10:14:44 +02:00
Gerhard Potgieter
fcd9b206ff
PHPCS fixes for html-admin-page-shipping-zone-methods.php
2017-11-07 10:11:19 +02:00
Gerhard Potgieter
a8dab20cf8
input to button for submit in html-admin-page-shipping-classes.php
2017-11-07 10:05:32 +02:00
Gerhard Potgieter
7c8cb1150f
PHPCS fixes for html-admin-page-shipping-classes.php
2017-11-07 10:03:43 +02:00
Gerhard Potgieter
d3d41a4a05
input to button for submit in class-wc-report-sales-by-product.php
2017-11-07 09:56:31 +02:00
Gerhard Potgieter
e8b9ad7e17
PHPCS fixes for class-wc-report-sales-by-product
2017-11-07 09:55:19 +02:00
Gerhard Potgieter
02841582de
Input to button for submit in class-wc-report-sales-by-category.php
2017-11-07 09:13:47 +02:00
Gerhard Potgieter
bb64d6909f
PHPCS fixes for class-wc-report-sales-by-category.php
2017-11-07 09:12:40 +02:00
Gerhard Potgieter
4aef57ae40
Change input to button for submit in class-wc-report-coupon-usage.php
2017-11-07 09:03:52 +02:00
Gerhard Potgieter
1842e9b7de
PHPCS fixes for class-wc-report-coupon.usage.php
2017-11-07 08:52:45 +02:00
MounirHamani
2c471d3662
Add new Belarusian ruble BYN
2017-11-07 03:24:01 +01:00
Claudiu Lodromanean
c4fe2927d7
Merge pull request #17603 from woocommerce/pr/17563
...
Calculation fixes and unit tests
2017-11-06 14:32:11 -08:00
claudiulodro
c3689134d0
Underscores wrappers
2017-11-06 13:46:50 -08:00
Mike Jolley
cb61e9dd3d
WC_TAX_ROUNDING_MODE auto to support switching in tests
2017-11-06 21:25:02 +00:00
Mike Jolley
42fef1a51a
Float handling logic for scientific notation
2017-11-06 20:04:03 +00:00
Mike Jolley
004e58c8b8
Revert "Long floats convert to strings with chars like "E". Let's format to precision setting to avoid this."
...
This reverts commit 1ac8f6c272
.
2017-11-06 20:04:03 +00:00
Mike Jolley
7af6c2f55e
Long floats convert to strings with chars like "E". Let's format to precision setting to avoid this.
2017-11-06 20:04:03 +00:00
Mike Jolley
2547861710
Converting to floats messes with storage - keep strings
2017-11-06 20:04:03 +00:00
Grzegorz Rola
0c9ad20986
wp_unslash() needs to always comes first
2017-11-06 19:10:33 +01:00
Grzegorz Rola
4f4a3460a3
Security fix
2017-11-06 18:50:26 +01:00
Claudio Sanches
b24519b0c9
Merge pull request #17594 from woocommerce/fix/17582-downloads
...
Hide downloads from admin emails
2017-11-06 15:30:26 -02:00
Claudio Sanches
955539b648
Merge pull request #17588 from woocommerce/fix/17565
...
Check valid data when filtering wp_nav_menu_objects
2017-11-06 15:29:33 -02:00
Mike Jolley
c824dd7a85
Hide downloads from admin emails
2017-11-06 17:02:35 +00:00
Claudio Sanches
487d7f16cc
Merge pull request #17590 from woocommerce/fix/17544
...
Fix tax row orders count
2017-11-06 15:01:56 -02:00
Mike Jolley
c6c6a1e4b3
Grab all taxes individually
2017-11-06 16:34:45 +00:00
Mike Jolley
0a4adde9aa
Fix tax row orders count
...
Closes #17544
We had doubled up logic.
2017-11-06 16:20:56 +00:00
Mike Jolley
1b49e9a568
get_total_ex_tax should exclude fee taxes
...
Closes #17585
2017-11-06 16:18:21 +00:00
Claudio Sanches
eb594b05ef
Merge pull request #17586 from woocommerce/fix/17572-alt
...
Unslash shipping forms and addresses
2017-11-06 14:16:18 -02:00
Mike Jolley
c05e6d02f7
Check valid data when filtering wp_nav_menu_objects
...
Closes #17565
2017-11-06 16:05:19 +00:00
Mike Jolley
668fb1486c
Unslash shipping form
2017-11-06 15:50:52 +00:00
Mike Jolley
fa30b0bb07
Use wp_unslash
2017-11-06 15:48:11 +00:00
Mike Jolley
362867313f
Revert "Issue #17575 - perform stripslashes when setting shipping state to avoid unwanted backslashes"
...
This reverts commit 8771c1f8e2
.
2017-11-06 15:47:43 +00:00
Herb Miller
8771c1f8e2
Issue #17575 - perform stripslashes when setting shipping state to avoid unwanted backslashes
2017-11-06 15:47:31 +00:00
Herb Miller
4c9d411b08
Issue #17570 - stripslashes when setting customer data from the session
2017-11-06 15:47:31 +00:00
Gerhard Potgieter
0c5a208057
Change input to button for submit in class-wc-meta-box-order-actions.php
2017-11-06 15:23:00 +02:00
Gerhard Potgieter
8bb051fdcf
PHPCS fixes for class-wc-meta-box-order-actions.php
2017-11-06 15:20:37 +02:00
Gerhard Potgieter
956db3c8da
Change input to button for submit in html-product-csv-import-form.php
2017-11-06 15:15:31 +02:00
Gerhard Potgieter
56ddba9745
PHPCS fixes for html-product-csv-import-form.php
2017-11-06 15:14:35 +02:00
Gerhard Potgieter
01e4778d61
Change input to button for submit in html-csv-import-mapping.php
2017-11-06 15:12:28 +02:00
Gerhard Potgieter
844661230b
PHPCS fixes for html-csv-import-mapping.php
2017-11-06 15:11:15 +02:00
Gerhard Potgieter
bb9a29da85
Change input to button for submit in class-wc-tax-rate-importer.php
2017-11-06 15:06:15 +02:00
Gerhard Potgieter
fbe7a1e2a2
PHPCS fixes for class-wc-tax-rate-importer.php
2017-11-06 15:05:13 +02:00
Gerhard Potgieter
8add04b92e
Change input to button for submit in class-wc-admin-setup-wizard.php
2017-11-06 14:31:22 +02:00
Gerhard Potgieter
99f38e72c1
PHPCS changes for class-wc-admin-setup-wizard.php
2017-11-06 14:26:17 +02:00
Gerhard Potgieter
7aed2acf4a
Update class-wc-admin-menus.php to use button instead of input for submit
2017-11-06 13:14:30 +02:00
Gerhard Potgieter
9090f012f9
PHPCS fixes for class-wc-admin-menus.php
2017-11-06 13:10:34 +02:00
Gerhard Potgieter
fb66c2066e
PHPCS fixes for class-wc-admin-attributes.php
2017-11-06 12:58:57 +02:00
Gerhard Potgieter
2bcf8679be
Update class-wc-admin-attributes.php to use button instead of input for submit
2017-11-06 12:45:14 +02:00
Mike Jolley
90203dc704
Set placeholder for variation lxwxh
...
Fixes #17559
2017-11-06 10:44:49 +00:00
Shiva Poudel
aeb07b5fd8
Tweak - Order number to be sortable column
...
CC @mikejolley
2017-11-05 21:37:42 +05:45
Joel Rowley
390f46f7da
Attempt to fix type conversion precision bug
2017-11-04 16:33:23 -04:00
Grzegorz Rola
d8a6cc6eb2
Ability to search in DB logs.
2017-11-04 16:09:54 +01:00
Jeremy Pry
9eee3805c0
Allow for cloning the cart object
...
This handles creating new instances of the `$session` and `$fees_api` properties.
2017-11-03 15:50:43 -04:00
Jeremy Pry
0cca83ff83
Add separate methods to register hooks
...
This facilitates cloning the cart without registering additonal hooks unnecessarily.
2017-11-03 15:49:45 -04:00
Mike Jolley
0a77632a33
correct escape
2017-11-03 16:22:35 +00:00
Mike Jolley
2eb740e38a
Make address columns smaller
2017-11-03 16:12:42 +00:00
Mike Jolley
8f37ea33ed
Refactored into list table classes
2017-11-03 16:10:32 +00:00
Mike Jolley
ed49c5b524
Styling improvements
2017-11-03 11:57:44 +00:00
Mike Koval
d15aaf682d
Update class-wc-emails.php
...
Added missing param sent_to_admin to email-addresses template
2017-11-03 11:33:55 +02:00
Mike Jolley
040443a04d
Out of base rounding error fixes
2017-11-02 20:00:49 +00:00
Tim Howe
1b08688ea6
Checkout Postcode / Zip validation error message missing Billing / Shipping Identification #17474 ( #17535 )
...
* Fix - #17413
Update the `json_search_products` function to use the
`wc_products_array_filter_visible` filter rather then the
`wc_products_array_filter_editable` filter
Added an additional if condition to the `is_visible` function to check
if the product had a parent and it's post status
* remove additional comment from code to keep it clean
* Reverted filter
* Updated the is_visable to check parent product post status using WooCommerce class methods
* Updated the `if empty` check to make it is compatible with older versions of php
* Removed the empty check infavor of just testing on the returned value
Updated the way we are retrieving the partent product object
* Moved the `$parent_product` variable assigment out of the if statement.
* Applied and tested tregenza patch to updates Checkout Postcode / Zip validation error message
* Cleaned up code from testing
2017-11-02 11:54:03 -07:00
Mike Jolley
2e1e9291bc
Remove trailing `.`
...
@claudiulodro Only affects master.
2017-11-02 18:29:34 +00:00
Mike Jolley
98f2fd5685
Merge pull request #17529 from woocommerce/fix/17517
...
Adjust out of base discount logic
2017-11-02 18:20:09 +00:00
Claudiu Lodromanean
d0c1f16f26
Merge pull request #17533 from woocommerce/fix/17509
...
Remove kses from term description
2017-11-02 10:47:57 -07:00
Claudiu Lodromanean
d1157d6f0b
Merge pull request #17521 from woocommerce/fix/sort-tabs-callback
...
For code doing it wrong, ensure priority is set
2017-11-02 10:46:17 -07:00
Mike Jolley
19c288fa5b
Merge pull request #17530 from woocommerce/fix/17526
...
Packages should be shippable until proven otherwise.
2017-11-02 17:36:58 +00:00
Mike Jolley
10ea761a7d
Pass order location through to order ajax functions which recalc taxes.
...
Closes #17236
2017-11-02 17:31:03 +00:00
Mike Jolley
92a8bdf616
Remove kses from term description
...
Closes #17509
2017-11-02 17:13:02 +00:00
Markus Aurich
b27602db3f
fix: wrong validation of polish postcodes ( #17523 )
2017-11-02 16:55:37 +00:00
claudiulodro
d7161cb711
Refactor it a little bit
2017-11-02 09:24:09 -07:00
Mike Jolley
9ea088f6c9
Adjust discount logic when out of base
2017-11-02 16:18:51 +00:00
Mike Jolley
624c1a9516
Allow items to be sent directly to the discounts class
2017-11-02 16:18:17 +00:00
claudiulodro
a3ffd72842
Packages are shippable until proven otherwise
2017-11-02 09:16:17 -07:00
Mike Jolley
130d719d90
Small rounding error in items table
2017-11-02 15:03:43 +00:00
Mike Jolley
eb1bcee8b9
For code doing it wrong, ensure priority is set
2017-11-02 11:13:24 +00:00
Chase Wiseman
5c57be18b0
Conditionally display the Add Payment Method button if there are available gateways
2017-11-01 10:13:01 -07:00
Mike Jolley
1f7ecd9fb9
Merge branch 'master' into tweak/order-screens
...
# Conflicts:
# assets/js/frontend/checkout.min.js
2017-11-01 16:52:21 +00:00
Mike Jolley
bf4063b0cb
Merge pull request #17499 from woocommerce/fix/17492
...
Removed wp_kses_post() from product archive description
2017-11-01 16:48:31 +00:00
Claudiu Lodromanean
9117414dae
Merge pull request #17491 from woocommerce/update/17101
...
wc_caught_exception method
2017-11-01 09:31:57 -07:00
Claudio Sanches
9e29ed0bda
Removed wp_kses_post() from product archive description
...
Fixes #17492
2017-11-01 14:16:19 -02:00
Mike Jolley
8fd6864a23
Merge branch 'pr/17457'
2017-11-01 15:48:57 +00:00
Mike Jolley
7606666de9
woocommerce_pre_customer_bought_product
2017-11-01 15:48:46 +00:00
Mike Jolley
9c096b419f
Merge branch 'pr/17435'
2017-11-01 13:10:37 +00:00
Mike Jolley
9d92b8a8ff
phpcs
2017-11-01 13:10:25 +00:00
Tim Howe
abea378245
Variation Displayed in Cross-Sell and Upsells with Parent's Post Status set to 'draft' and 'pending review' ( #17423 )
...
* Fix - #17413
Update the `json_search_products` function to use the
`wc_products_array_filter_visible` filter rather then the
`wc_products_array_filter_editable` filter
Added an additional if condition to the `is_visible` function to check
if the product had a parent and it's post status
* remove additional comment from code to keep it clean
* Reverted filter
* Updated the is_visable to check parent product post status using WooCommerce class methods
* Updated the `if empty` check to make it is compatible with older versions of php
* Removed the empty check infavor of just testing on the returned value
Updated the way we are retrieving the partent product object
* Moved the `$parent_product` variable assigment out of the if statement.
2017-11-01 12:52:58 +00:00
Mike Jolley
ef4c05a393
Merge branch 'pr/17098'
2017-11-01 12:43:35 +00:00
Mike Jolley
415d1ab061
Use global if it exists to improve performance.
2017-11-01 12:43:26 +00:00
Mike Jolley
ff02941a53
Merge branch 'pr/17434'
2017-11-01 12:32:52 +00:00
Mike Jolley
80dfbc0ced
phpcs tweaks and escaping
2017-11-01 12:32:35 +00:00
Mike Jolley
c17e76adc8
Merge pull request #17113 from woocommerce/add/travis-phpcs
...
Run PHPCS in Travis CI
2017-11-01 12:18:44 +00:00
Mike Jolley
5d500ba5fb
wc_caught_exception method
2017-11-01 11:41:53 +00:00
veisis
fbd1b114db
Class name fix in docblock
2017-11-01 11:59:49 +02:00
Claudio Sanches
e1a4f6e159
Merge pull request #17470 from woocommerce/pr/16959
...
Added actions before calculations order totals and taxes and is_vat_excempt support
2017-10-31 12:21:08 -02:00
Claudio Sanches
418bbbfee5
Merge pull request #17467 from woocommerce/fix/17460-currency
...
Add direction character to currency output
2017-10-31 12:04:37 -02:00
Mike Jolley
7c74e77849
handle tax removal in order class
2017-10-31 13:37:57 +00:00
Mike Jolley
80b16adb0a
Revert is_vat_exempt changes in item classes
2017-10-31 13:36:57 +00:00
Mike Jolley
bc7484f473
Merge branch 'master' into pr/16959
...
# Conflicts:
# includes/abstracts/abstract-wc-order.php
2017-10-31 13:33:09 +00:00
Mike Jolley
01730cdc4f
Add method to generate transient name
2017-10-31 12:58:36 +00:00
Mike Jolley
5848590333
Merge branch 'master' into update/14260
2017-10-31 12:54:35 +00:00
Mike Jolley
43ba326ed9
Fix currency position with rtl symbols
2017-10-31 12:22:18 +00:00
Gabor Javorszky
d530556a0f
Add short circuit to customer bought product function
2017-10-30 17:20:55 +00:00
Mike Jolley
17a6f9fb15
Merge pull request #17421 from woocommerce/fix/method-return-value-in-write-content
...
Fixed method returning value in write content warning in legacy PHP
2017-10-30 14:17:37 +00:00
Claudio Sanches
83057e3771
Merge pull request #17455 from woocommerce/pr/17450
...
Use item tax class rather than product tax class for getter
2017-10-30 12:13:58 -02:00
Mike Jolley
9521a0ba1f
Improve tax class check and handle non-taxable items
2017-10-30 13:23:15 +00:00
Claudio Sanches
777ba46299
Merge branch 'master' into fix/17424
2017-10-30 11:01:17 -02:00
Mike Jolley
cb998799c6
Merge pull request #17298 from dechov/update/ignore-existing-unit-option-values-in-wizard
...
Ignore existing unit option values in wizard in favor of national unit conventions
2017-10-30 12:55:06 +00:00
Mike Jolley
7ec2c5a736
Merge pull request #17444 from shivapoudel/fix/empty-content
...
Fix - Undefined variable: empty_content in order screen
2017-10-30 12:25:52 +00:00
Mike Jolley
b436ad34e6
Merge branch 'pr/17452'
2017-10-30 12:15:41 +00:00
Mike Jolley
c1d86b9994
Split up skip logic
2017-10-30 12:15:32 +00:00
Claudio Sanches
4b13b6e79c
Merge pull request #17409 from woocommerce/tweak/invoice-email-name
...
Change title of Customer invoice email
2017-10-30 10:09:33 -02:00
Diego Zanella
3576025036
Added filter to process meta to be exported
2017-10-30 10:19:57 +00:00
Ewout Fernhout
029e93fd4f
Use item tax class rather than product tax class for getter
...
Fixes #17449
2017-10-30 11:04:56 +01:00
Shiva Poudel
53a2dfd77c
Fix - Empty content undeclared variable in #17233
2017-10-29 23:02:27 +05:45
Ryan Halliday
671b602db6
Added `{site_title}` replacement to Email footer
2017-10-28 15:18:53 +13:00
Shiva Poudel
289842aacf
Tweak - Order panel meta description
2017-10-28 06:37:29 +05:45
claudiulodro
f06ecee1c5
Fix order methods and add tests
2017-10-27 13:37:00 -07:00
Claudio Sanches
58d7a3fd3a
Merge pull request #17414 from woocommerce/fix/17412
...
Cart totals: don't add shipping unless show_shipping is true.
2017-10-27 16:02:02 -02:00
Claudio Sanches
1008ad1203
Fixed method returning value in write content warning in legacy PHP
2017-10-27 16:01:33 -02:00
Mike Jolley
a84fe7a314
Merge branch 'cache-variable-products-queries'
...
# Conflicts:
# readme.txt
2017-10-27 18:54:53 +01:00
Mike Jolley
635ea09127
Merge branch 'master' into cache-variable-products-queries
2017-10-27 18:53:40 +01:00
Mike Jolley
ba3d959e66
Merge branch 'master' into pr/17183
2017-10-27 18:49:27 +01:00
Mike Jolley
65f2ee0f49
Cart totals: don't add shipping unless show_shipping is true.
...
Closes #17412
2017-10-27 17:30:33 +01:00
Mike Jolley
349e37399f
Merge branch 'pr/17315'
2017-10-27 16:42:32 +01:00
Mike Jolley
3c3173b2f8
Rename actions and handle deprecation
2017-10-27 16:42:19 +01:00
Mike Jolley
422638bf75
Merge branch 'pr/17344'
2017-10-27 16:23:15 +01:00
Mike Jolley
e72a297842
Break up logic so is callable is only checked on internal meta keys
2017-10-27 16:23:05 +01:00
Mike Jolley
a6e5a684d0
Merge branch 'pr/17134'
2017-10-27 16:07:41 +01:00
Mike Jolley
e5038e737e
Standards
2017-10-27 16:07:30 +01:00
Gerhard Potgieter
1ee7033678
Only invoice in dropdown, too many customer usage.
2017-10-27 17:05:35 +02:00
Mike Jolley
35f5140e1c
Merge branch 'pr/17137'
2017-10-27 15:59:56 +01:00
Mike Jolley
47bb63733b
Standards
2017-10-27 15:59:47 +01:00
Mike Jolley
ced4551413
Merge branch 'pr/16986'
2017-10-27 15:49:00 +01:00
Mike Jolley
7cafc71526
Wording tweaks
2017-10-27 15:48:50 +01:00
Mike Jolley
8695d46637
Merge branch 'pr/17041'
2017-10-27 15:35:43 +01:00
Mike Jolley
bfebd204ee
Code standards and better action names
2017-10-27 15:35:34 +01:00
Mike Jolley
0ea2264033
Merge pull request #17317 from woocommerce/remove/legacy-rest-api-files
...
Removed legacy WordPress REST API files
2017-10-27 15:26:34 +01:00
Mike Jolley
22ee1810de
Merge remote-tracking branch 'origin/master'
2017-10-27 15:21:18 +01:00
Mike Jolley
43c77c51b5
Merge branch 'pr/17139'
2017-10-27 15:21:12 +01:00
Mike Jolley
6a7af9897a
Standards
2017-10-27 15:21:03 +01:00
Mike Jolley
2d021e3786
Merge pull request #17077 from grosssmutttr/patch-2
...
Update class-wc-widget-layered-nav.php - Avoid duplicate content
2017-10-27 15:19:48 +01:00
Mike Jolley
f3d2b2f7f1
Merge pull request #17071 from woocommerce/add/formatting-unit-tests
...
Formatting functions tests
2017-10-27 15:14:14 +01:00
Gerhard Potgieter
980d688ca0
Change invoice email title to "Customer invoice / Order details"
2017-10-27 15:01:02 +02:00
Mike Jolley
5824cb9358
Update stripe wording
...
Closes #16385
2017-10-27 13:48:48 +01:00
Rodrigo Primo
a3f14c7256
Caches call to load product variation attributes
...
This commit adds product variation attributes to WP cache when they are first loaded to avoid running the same database queries when the same product is loaded multiple times. This cache will be invalidated whenever product attributes are changed.
Fixes #17120
2017-10-27 10:01:23 -02:00
Gerhard Potgieter
1e66cedaf0
Save order items before adding new one when there are unsaved changes. Closes #17384 ( #17402 )
2017-10-27 12:38:10 +01:00
Gerhard Potgieter
f0b240d33a
Merge pull request #17399 from woocommerce/fix/17306
...
Escape attribute name commas in CSV exporter
2017-10-27 10:59:09 +02:00
Claudio Sanches
2d08ea7d15
Merge pull request #17400 from woocommerce/fix/17377
...
Clear counts cache when updating product attributes
2017-10-26 20:59:09 -02:00
Mike Jolley
08c4953b61
Clear counts cache when updating product attributes
...
Closes #17377
2017-10-26 20:16:52 +01:00
claudiulodro
981b2bc445
Escape attribute name commas in CSV exporter
2017-10-26 09:40:35 -07:00
Gerhard Potgieter
a3ec0bf85a
Merge pull request #17396 from woocommerce/fix/17379
...
Prevent cookie header sent error, and improve error message wording
2017-10-26 17:03:17 +02:00
Claudiu Lodromanean
3aa43ed5d2
Calculate shipping after discounts ( #17364 )
...
* Calculate shipping after discounts
* Calculate grand total after shipping is calculated
* Keep fees calculation before shipping
2017-10-26 15:27:10 +01:00
Mike Jolley
fb5e5209e3
Prevent cookie header sent error, and improve error message wording
...
Closes #17379
To test, reset your password via email.
Then click the reset link in the email again.
2017-10-26 15:22:25 +01:00
Paul Dechov
d048e4d355
Use measurement unit defaults in locale-info instead of hard coding
2017-10-26 09:28:18 -04:00
Mike Jolley
87c6ca5ae0
Merge pull request #17368 from james-allan/fix_thirdparty_coupon_calculations
...
Fix coupon discount calculations for third party coupon types
2017-10-26 14:23:31 +01:00
Paul Dechov
fee6f954dc
Ignore existing unit option values in wizard, in favor of national conventions
2017-10-26 09:21:35 -04:00
Claudio Sanches
787bb7f0c0
Fixed permalink default values ( #17385 )
...
* Fixed permalink default values
`woocommerce_permalinks` may return a list with empty results like:
wp> get_option( 'woocommerce_permalinks', array() )
=> array(5) {
["product_base"]=>
string(8) "/product"
["category_base"]=>
string(16) ""
["tag_base"]=>
string(11) ""
["attribute_base"]=>
string(0) ""
["use_verbose_page_rules"]=>
bool(false)
}
This override all placeholders declared with `wp_parse_args()`.
`wp_parse_args()` can apply default values only when missing, and not empty.
This PR removes all empty values in order to use the placeholders.
Fixes a bug introduced in #17352
* Moved array_filter() before wp_parse_args()
2017-10-26 13:57:40 +01:00
Marcin Bot
234d9e05a5
Fixed the jetpack redirect url for sites in subdirectories ( #17312 )
...
* Fixed the jetpack redirect url for sites in subdirectories
* Using admin_url instead of get_admin_url for consistency
* Wrapped the generated url in esc_url_raw
2017-10-26 13:40:54 +01:00
Paul Dechov
9c2df6486c
Default currency responds to country selection in setup wizard ( #17318 )
...
* Default currency responds to country selection in wizard
* Refactor to use wp_list_pluck
* Use <script> tag to define global instead of using hidden <input>
* Revert ignoring currency option value on page load
2017-10-26 13:39:54 +01:00
Mike Jolley
8590cd297c
Merge pull request #17383 from woocommerce/fix/17332
...
[REST API] Fix category "image" returned type when is empty
2017-10-26 13:01:50 +01:00
Claudio Sanches
6782cfaca5
Fixed how apply strtolower in columns names in the importer auto map
...
Now apply for all columns names, even when added by the filters.
2017-10-26 08:20:06 -02:00
Claudio Sanches
d23448a823
Merge branch 'master' into fix/17300-search-orderby
2017-10-25 20:53:25 -02:00
Claudio Sanches
6e9ad75be5
Category image is a single object
2017-10-25 20:41:31 -02:00
Claudio Sanches
4b90c12db1
Fixed coding standards.
...
Still missing fix the file name, but I'll leave it for 3.3
2017-10-25 20:40:44 -02:00
Claudio Sanches
9f81791e17
Merge pull request #17358 from woocommerce/fix/17337-bases
...
Adjust how permalinks are retrieved and saved
2017-10-25 20:20:41 -02:00
Claudio Sanches
2a4c16977c
Merge pull request #17331 from woocommerce/fix/17275-alt
...
Adjust item limiting discount code to work with multiple coupons
2017-10-25 20:19:13 -02:00
Claudio Sanches
faa614ffa7
Merge branch 'master' into fix/17308-remove-item-reloads-unsaved-items
2017-10-25 19:47:54 -02:00
claudiulodro
6cc5d5290c
Update to latest selectWoo
2017-10-25 13:51:37 -07:00
Rodrigo Primo
fb70ae3fea
Coding standards fixes
2017-10-25 17:53:17 -02:00
Claudiu Lodromanean
a396a6c83e
Merge pull request #17372 from woocommerce/fix/17369
...
Add cache invalidation for wc_get_product_terms
2017-10-25 10:30:44 -07:00
Claudiu Lodromanean
5892777c62
Merge pull request #17371 from woocommerce/fix/17367
...
Prevent notice on settings page when accessing invalid tab
2017-10-25 10:25:12 -07:00
Mike Jolley
e882c8e864
Merge pull request #17373 from woocommerce/fix/17334-product-downloads-shortcode
...
Allow shortcodes & relative download urls for product imports
2017-10-25 17:36:23 +01:00
Mike Jolley
206ffcdcb3
Merge pull request #17376 from woocommerce/fix/products-api-schema
...
[REST API] Fixed date_on_sale_to_gmt description on products endpoint
2017-10-25 17:33:20 +01:00
Claudio Sanches
e7508c2c54
[REST API] Fixed date_on_sale_to_gmt description on products endpoint
2017-10-25 14:06:50 -02:00
Claudio Sanches
c17fbf53b4
Fixed coding standards
2017-10-25 14:06:13 -02:00
Gerhard Potgieter
8e837adc50
Allow for shortcode and relative download urls to be imported. Closes #17334
2017-10-25 14:54:02 +02:00
Mike Jolley
a467d35acd
Add cache invalidation for wc_get_product_terms
...
Closes #17369
2017-10-25 13:27:18 +01:00
Mike Jolley
9d2a493cea
Prevent notice on settings page when accessing invalid tab
...
Closes #17367
2017-10-25 12:51:19 +01:00
James Allan
c0e3ac8ce6
fix coupon discount calculations for thirdparty coupon types
2017-10-25 16:33:59 +10:00
claudiulodro
e6a9a5f79b
Fix date query meta unset checking
2017-10-24 13:07:21 -07:00
Mike Jolley
1a08afeab2
Don't apply remainder logic when discount amount is changed via a filter
...
Closes #17330
2017-10-24 18:07:23 +01:00
Mike Jolley
8ca76e84cd
Add test for #17330
2017-10-24 17:53:51 +01:00
Claudiu Lodromanean
f8552ebbad
Merge pull request #17352 from woocommerce/fix/17324
...
Setup locale before generating placeholders
2017-10-24 09:01:20 -07:00
Mike Jolley
e68f087659
When no permalinks are set, set the defaults and avoid switching locales
2017-10-24 16:29:04 +01:00
Mike Jolley
79ef09d293
Setup locale before generating placeholders
...
Closes #17324
2017-10-24 14:06:21 +01:00
Gerhard Potgieter
054c4a1100
Merge pull request #17203 from hisman/fix/17043
...
Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
2017-10-24 06:02:48 -07:00
Gerhard Potgieter
ec6379a6ec
Merge pull request #17291 from michaelrimbach/patch-1
...
Format PL (Poland) Postal Code
2017-10-24 05:13:13 -07:00
Gerhard Potgieter
998ac25691
Merge pull request #17273 from woocommerce/fix/eu-vat-calc
...
Fix issue when customer is VAT exempt and prices include tax
2017-10-24 04:00:03 -07:00
Cesar Rodas
32da25c4f1
Improved "is_internal_meta_key"
...
Improved is_internal_meta_key to check if the meta_key has a setter or a getter before returning TRUE and calling doing_it_wrong
2017-10-23 22:22:31 -03:00
Farhad Sakhaei
5062831b50
spelling
...
spelling
2017-10-23 13:44:44 +03:30
Mike Jolley
6223ffb684
Adjust item limiting logic to work with multiple coupons
...
Fixes #17275
2017-10-22 09:13:12 -07:00
Mike Jolley
1278c84c11
Revert "WIP"
...
This reverts commit 2255066c0f
.
2017-10-22 07:13:46 -07:00
Mike Jolley
2255066c0f
WIP
2017-10-22 07:13:31 -07:00
Mike Jolley
f90c7bfc26
Form row wide for email
...
Remove arbitrary widths. Closes #17288
2017-10-20 16:15:48 -07:00
Gerhard Potgieter
ec1a70ad14
When deleting an order item and there are changes to other items, first save those before deleting.
2017-10-20 11:51:16 -07:00
Claudio Sanches
cb5122cc07
Removed legacy WordPress REST API files
2017-10-20 15:52:57 -02:00
Claudio Sanches
7d6d98dca0
Merge pull request #17314 from woocommerce/fix/17285
...
Let wp_signon handle email to username
2017-10-20 15:40:02 -02:00
Gerhard Potgieter
7ab0b25ba5
Only set to relevance when the orderby is set to menu_order
2017-10-20 10:33:21 -07:00
Gerhard Potgieter
5d9efb7885
Set orderby to relevance when searching for products. Closes #17300
2017-10-20 10:28:23 -07:00
Gerhard Potgieter
f9cff6e3f8
PHPCS Fixes. @claudiosanches Would you mind reviewing these as it is quite a lot of changes.
2017-10-20 10:24:56 -07:00
Mike Jolley
72c10bdd33
Remove email to login handling code
2017-10-20 09:21:07 -07:00
Mike Jolley
4844abc326
add woocommerce_cross_sells_order
...
Filter to control sort direction.
2017-10-20 09:11:00 -07:00
Michael Rimbach
6183d0973d
Format PL (Poland) Postal Code
...
Add "PL" formatting to wc_format_postcode function. An example pl postal code is 24-100
2017-10-19 17:16:36 +02:00
Mike Jolley
f27c8a226f
Fix issue when customer is VAT exempt and prices include tax
...
Ref: https://github.com/woocommerce/woocommerce-eu-vat-number/issues/82
In this scenario, base taxes need to be removed from the item price.
2017-10-18 09:31:35 -07:00
Claudiu Lodromanean
07e6a72234
Merge pull request #17259 from woocommerce/fix/17239
...
Added an update_prices_from_children routine and fixed sync_prices
2017-10-18 08:33:16 -07:00
Claudiu Lodromanean
9fd391b414
Merge pull request #17263 from woocommerce/fix/17219
...
Zoom and flexslider fixes
2017-10-18 08:29:01 -07:00
Mike Jolley
b0c9efbdc2
Merge pull request #17267 from Umangvaghela/fix-17264
...
fix 17264 issue
2017-10-18 08:25:50 -07:00
Paul Dechov
85af075566
Check for proper currency when getting WCS live rates carrier in setup wizard ( #17240 )
2017-10-18 11:09:33 -04:00
Umangvaghela
1b7b3f214e
fix issue
2017-10-18 15:11:59 +05:30
Mike Jolley
516ea83353
Revert flexslider to 2.6.1 with RTL support
...
Fixes #17219
2017-10-17 17:05:38 -07:00
Mike Jolley
29e175901f
Added an update_prices_from_children routine and fixed sync_prices
2017-10-17 10:06:49 -07:00
Claudio Sanches
2b3f524d35
Merge pull request #17256 from woocommerce/fix/major-update-checks
...
Moved major update check into get_untested_plugins.
2017-10-17 10:03:23 -07:00
Claudio Sanches
c739c80817
[REST API] Fixed variations 'visible' description in schema
...
Fixes #17249
2017-10-17 14:22:56 -02:00
Claudio Sanches
4bec8f9df5
Fixed coding standards
2017-10-17 14:22:30 -02:00
Mike Jolley
120d5b0768
Moved major update check into get_untested_plugins.
...
Prevents results returning when already on the major.
2017-10-17 08:27:55 -07:00
Herre Groen
1bde5aa37f
Add error logging to status update failes to prevent silent swallowing of errors.
2017-10-17 14:23:54 +02:00
Claudio Sanches
46c15b235a
Merge pull request #17245 from woocommerce/fix/17216
...
Modal should only display for major updates
2017-10-16 22:33:00 -07:00
Claudio Sanches
1f7a038bcd
Merge pull request #17242 from woocommerce/fix/17232
...
Fix meta data clone for products
2017-10-16 22:32:20 -07:00
Claudio Sanches
ececd63c93
Merge pull request #17247 from woocommerce/fix/17221
...
Filter out invalid tax classes
2017-10-16 22:31:49 -07:00
Mike Jolley
0e7cb9940c
Filter out invalid tax classes
...
Closes #17221
2017-10-16 22:05:48 -07:00
Mike Jolley
47a609edb7
Modal should only display for major updates
...
Fixes #17216
2017-10-16 21:50:44 -07:00
Mike Jolley
3d55a45bfa
Only change nocacheheaders when on a cart/checkout page
2017-10-16 21:29:23 -07:00
Mike Jolley
fecf950a98
Merge pull request #17237 from woocommerce/fix/17235
...
Coupon user limit check fix
2017-10-16 21:15:15 -07:00
Mike Jolley
344456c115
Merge pull request #17234 from woocommerce/fix/17216
...
Scroll untested plugins list if it's too big
2017-10-16 21:08:07 -07:00
Mike Jolley
39443d23e5
Fix meta data clone for products
2017-10-16 21:05:29 -07:00
Dan Wyman
4c16aeac6d
Coupon user limit check fix
...
Fixes a where clause problem. Fixes #17235 .
2017-10-16 18:40:46 +01:00
claudiulodro
4ebac67545
Scroll plugins list if it's too big
2017-10-16 09:10:20 -07:00
Mike Jolley
7419168e65
More cleanup and new fallback option for addresses
2017-10-16 08:12:07 -07:00
Umangvaghela
10fe92cfc1
Fix-minor-changes
2017-10-16 16:33:12 +05:30
Mike Jolley
a087f5fa63
Merge pull request #17205 from woocommerce/fix/invoice-subject
...
Remove # before order number to match 3.1
2017-10-13 19:38:55 +01:00
Mike Jolley
7b67d2d9a9
Remove # before order number to match 3.1
2017-10-13 19:37:03 +01:00
Will Gorham
fc8b3266c9
Fix deprecated functions in cart shortcode
2017-10-13 14:22:09 -04:00
Mike Jolley
a2e580f59e
Merge pull request #17201 from woocommerce/fix/17200
...
Restore blogname placeholder, but do not list in admin
2017-10-13 19:15:50 +01:00
Mike Jolley
1865528486
Merge pull request #17197 from woocommerce/fix/17125
...
Use edit context when updating prices in the API
2017-10-13 18:54:58 +01:00
Hisman
78c15569a7
Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
...
Fixes #17043
Call the wc_get_template filter on each template and show the file if it exists.
2017-10-14 00:07:38 +07:00
Mike Jolley
6647b35585
Restore blogname placeholder, but do not list in admin
...
Closes #17200
2017-10-13 17:42:12 +01:00
Mike Jolley
93a6f68408
Merge pull request #17193 from woocommerce/fix/legacy-fees-api
...
Fix/legacy fees api
2017-10-13 17:36:43 +01:00
Mike Jolley
fbc6850fb9
Merge pull request #17198 from JeroenSormani/fee-tax-class-slugs
...
Allow tax_class slugs when adding a fee
2017-10-13 17:25:46 +01:00
JeroenSormani
f244b178d3
Allow tax_class slugs when adding a fee
2017-10-13 18:06:23 +02:00
Mike Jolley
840da4f0c8
Use edit context when updating prices in the API
...
Fixes #17125
2017-10-13 16:37:38 +01:00
Gerhard Potgieter
e4c961c3ba
Merge pull request #17194 from woocommerce/update/email-tweaks
...
Email template and admin tweaks
2017-10-13 17:10:08 +02:00
Mike Jolley
c1b83df5f6
Merge pull request #17174 from woocommerce/improve/17172
...
Add extra lines back in admin order summary
2017-10-13 15:24:51 +01:00
Mike Jolley
c2c213fe05
Include date in customer emails again
2017-10-13 15:09:21 +01:00
Mike Jolley
7df8f6bec6
Resend new order notification option
...
@kloon Stole your code.
Ref: #17186
2017-10-13 14:54:12 +01:00
Mike Jolley
ddf8abf474
Merge pull request #17189 from franticpsyx/add-missing-break-in-legacy-cart
...
[3.2] Add missing break in WC_Legacy_Cart class
2017-10-13 14:41:47 +01:00
Mike Jolley
d694483735
Fix tax display issue for discounts
2017-10-13 14:36:35 +01:00
Mike Jolley
98eeafcc29
Hide shipping/discount rows when not needed and match email wording.
2017-10-13 14:01:20 +01:00
Mike Jolley
803b31a18c
Switched to property_exists and moved deprecation notice to avoid errors and setting fees unnecessarily.
2017-10-13 13:46:49 +01:00
Mike Jolley
8fa6116ef6
Hide cat-parent class when category will show no children due to depth setting
...
Closes #17184
2017-10-13 12:50:49 +01:00
Manos Psychogyiopoulos
3562f7156a
Add missing break in WC_Legacy_Cart class
2017-10-13 14:17:13 +03:00
Gerhard Potgieter
feffde2a73
Merge pull request #17167 from woocommerce/tweak/services-text-in-wizard
...
Tweak/services text in wizard
2017-10-13 11:32:51 +02:00
Gerhard Potgieter
0146c7d240
Merge pull request #17164 from woocommerce/fix/17088
...
Fix image matching queries
2017-10-13 11:30:34 +02:00
claudiulodro
b5e02ea6f6
Add extra lines back in admin order summary
2017-10-12 14:01:11 -07:00
Mike Jolley
8fa3ddde86
Tweaked intro text further about live rates
2017-10-12 18:29:23 +01:00
Claudiu Lodromanean
0f9bd218ed
Merge pull request #17160 from woocommerce/fix/17138
...
Use city and postcode count to determine sort order
2017-10-12 09:27:30 -07:00
Mike Jolley
a447221213
wc_setup_wcs_tout is not used.
2017-10-12 17:19:47 +01:00
Mike Jolley
a1f4cc0464
Show what powers taxes and link, just like storefront
2017-10-12 17:19:17 +01:00
Claudiu Lodromanean
cd0eb65852
Merge pull request #17162 from woocommerce/fix/17150
...
Fixed discount logic to also look at parent categories when validatiing coupons
2017-10-12 09:19:14 -07:00
Mike Jolley
9198d636c5
This installs jetpack/services - be clear
2017-10-12 17:18:37 +01:00
Mike Jolley
806f80c8d2
Be explicit about what powers live rates
2017-10-12 17:18:15 +01:00
Claudiu Lodromanean
a63c822d2d
Merge pull request #17161 from woocommerce/fix/17158
...
Remove rounding in wc_remove_number_precision
2017-10-12 08:48:32 -07:00
Claudiu Lodromanean
fb763a6deb
Merge pull request #17155 from woocommerce/fix/selectWoo-dependency
...
wc-admin-order-meta-boxes as a selectwoo dependency
2017-10-12 08:38:36 -07:00
Mike Jolley
b72268172a
Fix image matching queries
2017-10-12 16:32:40 +01:00
Mike Jolley
4379a47cd5
Fixed discount logic to also look at parent categories when validatiing coupons
...
Fixes #17150
2017-10-12 15:40:58 +01:00
Mike Jolley
88ea1eaf7b
Remove rounding in wc_remove_number_precision
...
Remove the rounding when removing precision so the cart can handle it.
For taxes, this means it can round down.
Fixes #17158
Tests are passing.
2017-10-12 15:16:48 +01:00
Mike Jolley
878e4816fb
Use city and postcode count to determine sort order
2017-10-12 14:04:10 +01:00
Mike Jolley
2db0d1d4d6
Merge pull request #17151 from woocommerce/fix/shipping-rate-save
...
Fix tax rate save when only changing shipping checkbox
2017-10-12 12:33:46 +01:00
Mike Jolley
cffcaaf773
wc-admin-order-meta-boxes as a selectwoo dependency
2017-10-12 12:32:36 +01:00
Mike Jolley
6aca58324a
Merge pull request #17152 from woocommerce/fix/lazy-load-embeds
...
Load videos when the help tab is opened, not before.
2017-10-12 12:28:00 +01:00
Mike Jolley
47d69dad2d
Load videos when the help tab is opened, not before.
...
Closes #17145
2017-10-12 12:18:37 +01:00
Mike Jolley
5a22c7fa97
Fix tax rate save when only changing shipping checkbox
2017-10-12 11:30:41 +01:00
Mike Jolley
0908bc0b13
phpcs
2017-10-12 11:26:55 +01:00
Mike Jolley
4f3393fc2f
Tax calculations should use `unfiltered` context for tax class
...
This fixes variations which have a ‘parent’ tax class. It should
inherit from the parent.
Closes #17147
2017-10-12 10:12:20 +01:00
mehul0810
024eec53f8
Added Text Domain
2017-10-12 08:28:45 +05:30
mehul0810
3e2cf907eb
Modified message key
2017-10-12 08:27:41 +05:30
Mike Jolley
a6059ea759
Remove menu-ordering sorting
2017-10-11 21:36:13 +01:00
Chris Schrijver
dee7a8c8d4
If no tax rate is defined for a specific country it still shows "incl. VAT" at the checkout / cart when tax display is set to "As single total". This will solved that
2017-10-11 17:58:43 +02:00
grosssmutttr
1ccec7d156
class-wc-widget-layered-nav.php - Crawling Budget
...
Additional optimization to save up crawling budget.
Added $link = str_replace('%2C', ',', $link); on line 513
https://mydomain.com/produkt-kategorie/my-category/?filter_filter-color=orange,black
If you add another filter it encodes the existing commas:
https://mydomain.com/produkt-kategorie/my-category/?filter_filter-color=orange%2Cblack&filter_manufacturer=adidas&filter_cut=men.children
So sometimes you have "," as seperator and sometimes you have encoded "%2C".
After implementing this pull-request the seperator stays ",":
https://mydomain.com/produkt-kategorie/my-category/?filter_filter-farbe=orange,black&filter_manufacturer=adidas&filter_cut=men.children
This pull request belongs to the optimization https://github.com/woocommerce/woocommerce/pull/17134 to save up crawling budget,
2017-10-11 14:47:00 +02:00
Mike Jolley
12d93803ee
Merge pull request #17121 from woocommerce/update/wizard-payments-copy
...
Update payment step copy for Stripe, and fixes margins/spacing
2017-10-11 10:17:57 +01:00
grosssmutttr
d9f0bd5e92
Keep link structure - prevent duplicate content
...
Added asort($current_filter) so the urls always look the same and there are not millions of urls possibilities when adding multiple filters.
Current url example:
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=yellow,brown,blue,red
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=yellow,blue,red,brown
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=blue,yellow,red,brown
...
With asort you only have this url:
https://myurl.com/produkt-kategorie/mycategory/?filter_filter-color=blue,brown,red,yellow
So it is independent on the sequence a user adds a filter
2017-10-11 08:33:46 +02:00
Marcin Bot
17e4f2a609
Merge pull request #17127 from woocommerce/fix/17122-setup-required-shipping-fields
...
Setup wizard - made the shipping cost fields required
2017-10-10 18:50:20 +02:00
Marcin Bot
01578d55c9
Wrapped the class name in esc_attr
2017-10-10 17:49:04 +01:00
Marcin Bot
eaf8a09e82
Setup wizard - made the shipping cost fields required
2017-10-10 16:59:08 +01:00
Claudio Sanches
b775074900
Fixed includes/wc-webhook-functions.php and removed debug
2017-10-10 12:59:04 -03:00
Mike Jolley
31367a72b8
Merge pull request #17123 from woocommerce/update/wizard-extras-copy
...
Setup wizard: add “powered by” to automated taxes description.
2017-10-10 16:39:45 +01:00
Clifford
1474350f0f
Correct docblock @return
...
From incorrect `string` to correct `array`
2017-10-10 10:31:16 -05:00
Jeff Stieler
24599524ba
Setup wizard: add “powered by” to automated taxes description.
2017-10-10 09:24:13 -06:00
Mike Jolley
6b357bcfdc
Updates the payment step copy and fixes margins
2017-10-10 15:40:03 +01:00
mehul0810
48e7575b10
Alignment Fix
2017-10-10 18:44:33 +05:30
mehul0810
aaa092159b
Added using CRUD
2017-10-10 18:44:12 +05:30
Mike Jolley
d4965e9df4
Merge pull request #17112 from woocommerce/fix/product-variations-tax-classes
...
Add 'parent' to the list of valid tax classes for product variations
2017-10-10 12:32:29 +01:00
mehul0810
0a4307ce40
Modified confirmation popup message
2017-10-10 16:52:37 +05:30
Jack
24efd36126
set query_vars ( #17105 )
...
* query_vars is set
* add changes
2017-10-10 12:14:35 +01:00
Jeff Stieler
974f402017
Fix duplicate plugin install from wizard. ( #17114 )
...
* Setup wizard: avoid duplicate plugin installs.
* Setup wizard: use background flag to determine if Jetpack is being installed.
* Setup wizard: use wc_set_time_limit() instead of set_time_limit() to avoid potential warnings/errors.
2017-10-09 16:45:33 -06:00
Claudio Sanches
b62b954f19
Small change to test PHPCS into Travis CI
2017-10-09 17:32:53 -03:00