Gerhard Potgieter
49adf8169b
Merge pull request #23672 from woocommerce/fix/23366-2
...
Auto generate usernames when a username is blacklisted by WP
2019-07-10 15:44:44 +02:00
Gerhard Potgieter
9ca6dad11e
Merge pull request #23433 from justlevine/master
...
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Ron Rennick
64476263b8
add filter for product import image separator
2019-07-10 09:13:05 -03:00
Mike Jolley
c928188831
Update from master
2019-07-10 12:57:02 +01:00
aslamshekh
3df0769366
I have done with few changes which is suggested.
2019-07-10 14:52:59 +05:30
Gerhard
98c24b1090
Merge branch 'master' into pr/23043
2019-07-10 10:34:52 +02:00
aslamshekh
15eaaebdeb
Fix-24115, Downloads report not getting 503 any more, If previously downloaded files are removed from product
2019-07-10 12:58:07 +05:30
Gerhard Potgieter
600da8cee2
Merge pull request #24112 from woocommerce/fix/tax-class-initialization
...
Fix Tax Class table initialization
2019-07-10 08:38:31 +02:00
Claudio Sanches
08d301779b
Set max index length for slug in tax class table
2019-07-09 17:59:16 -03:00
Andy Mardell
9d4e7f2e12
Rename filters
2019-07-09 21:22:41 +01:00
Claudio Sanches
d18c3f8ed1
Merge pull request #24069 from woocommerce/add/coupon-code-generator
...
Add generate coupon code button
2019-07-09 16:50:24 -03:00
Claudio Sanches
18b876a95c
Always load generate code button
...
Some improvements in the button label and names
2019-07-09 16:46:17 -03:00
Claudio Sanches
6e6ca196f9
Merge branch 'master' into fix/23340
2019-07-09 16:32:43 -03:00
Rodrigo Primo
53df16b2b5
Merge pull request #23781 from woocommerce/try/obw-changes
...
OBW: Switch shipping labels and shipping zones placement
2019-07-09 16:06:38 -03:00
Claudio Sanches
0e5c0eeccd
Merge pull request #23091 from woocommerce/fix/23087
...
Move settings save functionality to wp_loaded hook
2019-07-09 15:47:41 -03:00
Rodrigo Primo
2827b57060
Merge pull request #23785 from woocommerce/update/14361
...
Use WP 5.0 determine_locale() function
2019-07-09 15:46:47 -03:00
Claudio Sanches
da00ef76cc
Merge pull request #24111 from alerobertson/add/tag-operator-shortcode
...
Add tag_operator to products shortcode
2019-07-09 15:37:43 -03:00
Claudio Sanches
6c0ef10016
Do not save create taxes with empty names
2019-07-09 15:26:07 -03:00
Claudio Sanches
56240c9633
Prevent saving empty tax classes into the database
2019-07-09 15:23:46 -03:00
Claudio Sanches
b178f1be1f
Set initial tax classes
2019-07-09 15:13:02 -03:00
Claudio Sanches
1425b0c3b6
Crate tables before create options
2019-07-09 15:12:34 -03:00
Claudio Sanches
958a970255
Include missing wc_tax_rate_classes in WC_Install::get_tables
2019-07-09 15:02:07 -03:00
Rodrigo Primo
34e5018137
Merge pull request #23262 from woocommerce/fix/23257
...
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
alerobertson
b7ab7b81c9
Add tag_operator to products shortcode
...
Allow user to decide how products are filtered by tag, instead of defaulting to IN
2019-07-09 13:06:35 -04:00
Claudio Sanches
92253ea862
Merge pull request #23773 from woocommerce/fix/23744
...
PayPal pass billing address when shipping address option disabled
2019-07-09 12:48:07 -03:00
Claudio Sanches
32996d2fdd
Merge branch 'master' into pr/23043
2019-07-09 12:39:40 -03:00
vedanshujain
dd783615cc
Use helper method instead of `wp_list_pluck` to avoid notices
...
In country locales, many times configuration for postcodes may not be defined. In these cases, using `wp_list_pluck` will throw notices.
We now use a small helper method to extract post code configuration from country locales.
2019-07-09 18:13:27 +05:30
Diego
f95f73c548
Added arguments to filter `woocommerce_ajax_order_item`
2019-07-09 13:31:47 +01:00
vedanshujain
e2577b3a06
[Setup] Make PostCode optional as few countries don't use them
...
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30
Gerhard Potgieter
a7b6d7bfa4
Merge pull request #24024 from woocommerce/fix/23917/code
...
Round late when rounding at subtotal to reduce rounding error.
2019-07-09 11:05:40 +02:00
Gerhard Potgieter
013ee83b47
Merge pull request #23189 from woocommerce/tracks/coupons
...
Tracks: Add coupons view events
2019-07-09 11:04:43 +02:00
Gerhard
7038c73ab4
Merge branch 'master' into update/exclude-compiled-assets-from-git
2019-07-09 10:57:40 +02:00
Claudio Sanches
01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
...
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
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
Claudio Sanches
8b04f8d6cc
Merge pull request #23150 from woocommerce/fix/23135
...
Made WooCommerce roles translatable
2019-07-08 18:39:33 -03:00
Claudio Sanches
fb19ffe48f
Avoid infinity loop caused by PHP warning
2019-07-08 18:38:03 -03:00
Claudio Sanches
db06d3dbae
Merge branch 'master' into update/22164-tax-rate-class-table
2019-07-08 18:12:23 -03:00
Claudio Sanches
b54997d9f5
Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221
2019-07-08 17:55:07 -03:00
Claudio Sanches
adc543f8f1
Merge pull request #24058 from woocommerce/add/wc-admin-obw-recommended
...
OBW: Add wc-admin to recommended page
2019-07-08 16:56:49 -03:00
Claudio Sanches
c131225825
Merge pull request #24050 from woocommerce/update/23930
...
Add support for namespaced Jetpack tracks_get_identity
2019-07-08 16:48:01 -03:00
Claudio Sanches
a4b8184464
Merge pull request #23950 from parmarhardip/fix-23944
...
Currency changes applied for 'São Tomé and Príncipe dobra' and 'Mauritanian ouguiya'
2019-07-08 16:12:53 -03:00
Claudio Sanches
da99bc8ca0
Merge branch 'master' into feature/feature-plugin-packages
2019-07-08 14:33:21 -03:00
Paul Sealock
2d2ef711b8
Pass in select id
2019-07-08 11:41:52 +12:00
Paul Sealock
bc23340909
Use #doaction to target bulk actions
2019-07-05 17:02:30 +12:00
Paul Sealock
7af9d1813d
Tracks: Add coupons view events
2019-07-05 16:46:58 +12:00
Paul Sealock
8777dc4c01
Revert title to WooCommerce Admin
2019-07-05 16:11:35 +12:00
Paul Sealock
1116e5516d
update 'free' usage and wc-admin description
2019-07-05 16:10:10 +12:00
Rodrigo Primo
b648647893
Merge pull request #23741 from woocommerce/feature/23728
...
Allows customize buyer name in orders list screen
2019-07-04 16:23:43 -03:00
Rodrigo Primo
9eed45af4e
Merge pull request #23740 from woocommerce/fix/23735
...
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-07-04 16:20:11 -03:00
Rodrigo Primo
4712f75f67
Merge branch 'master' into fix/23508
2019-07-04 16:13:01 -03:00
Rodrigo Primo
4de12633d6
Merge pull request #24073 from woocommerce/fix/status-helper-disconnected-typo
...
Fix missing space and closing <strong> tag in WooCommerce.com disconnect message
2019-07-04 16:05:59 -03:00
Rodrigo Primo
9325e233d7
Merge pull request #23190 from woocommerce/tracks/status-events
...
Tracks: Status page events
2019-07-04 15:21:07 -03:00
oscargare
2c8e45830a
Added new action "woocommerce_product_read" ( #23181 )
...
* Added new action "woocommerce_read_product_data"
* Added new action woocommerce_product_read
2019-07-04 14:17:34 -03:00
vedanshujain
8ab6cb2b5a
Round late when rounding at subtotal to reduce rounding error.
...
We were earlier rounding different tax rate values while they are merged, even if rounding at subtotal setting is enabled. This increases the rounding error, especially when prices are inclusive of taxes, and thus there is a chance that the total will be slightly different from when add the original values. For egs: https://github.com/woocommerce/woocommerce/issues/23917 .
This commit changes this behavior to round *after* we have summed all the precise unround values. Similar for items prices, we now round as late as possible, if rounding at subtotal is enabled.
2019-07-04 22:34:29 +05:30
Rodrigo Primo
a26f38f3a1
Merge pull request #23133 from woocommerce/update/23111
...
If variations are missing prices, show notice
2019-07-04 10:08:41 -03:00
Gerhard Potgieter
213e52852c
Merge pull request #23968 from woocommerce/fix/23954
...
Allow display multiple error messages through registration validation
2019-07-04 13:17:39 +02:00
Gerhard Potgieter
a91d271ae2
Merge pull request #23776 from woocommerce/fix/23699
...
Moved the JS enqueue from get_instance_form_fields to admin_footer hook.
2019-07-04 13:13:35 +02:00
Gerhard Potgieter
12fbfa5677
Merge pull request #22927 from woocommerce/update/22895
...
Allow "Thanks" wording in emails to be reworded by admin
2019-07-04 12:43:00 +02:00
Gerhard
52ef1d0b5f
Remove esc_html call, it messes with the code tags.
2019-07-04 11:33:05 +02:00
Gerhard Potgieter
c484fdd6d9
Merge pull request #24023 from woocommerce/fix/engine-php-notice
...
DB received `ENGINE` instead of `engine`, so PHP notices appear
2019-07-04 10:55:03 +02:00
Gerhard
d4eb233843
Deprecate email_footer_replace_site_title and use replace_placeholders
2019-07-04 09:36:05 +02:00
Daniel Bitzer
20625e9a45
Fix missing space and closing <strong> tag
...
Strong tag was not being echoed and space was missing after full stop.
2019-07-04 16:57:50 +09:30
Gerhard Potgieter
c3a25bb6bf
Merge pull request #23884 from woocommerce/fix/23875
...
Prevents taxes columns from being removed when the order is no longer editable
2019-07-04 09:25:49 +02:00
Gerhard Potgieter
007fc457a3
Merge pull request #24020 from woocommerce/fix/plural-forms-usage
...
Correct singular form usage in class-wc-admin-report.php
2019-07-04 09:23:14 +02:00
Gerhard Potgieter
762f051080
Merge pull request #24071 from woocommerce/add/action_log-excluded-comment-type
...
WC_Comments: Add action_log to excluded types in wp_count_comments
2019-07-04 09:18:03 +02:00
Gerhard Potgieter
54cab8086c
Merge pull request #23998 from yash-webkul/patch-1
...
Update class-wc-ajax.php
2019-07-04 09:17:03 +02:00
Gerhard
5d604329fc
Reword postfix to suffix
2019-07-04 09:07:02 +02:00
Gerhard
9e2ba43d3b
Forgot the 9
2019-07-04 09:05:05 +02:00
Gerhard
164f09e9c7
Remove abiguous characters that are dificult to read.
2019-07-04 09:00:15 +02:00
Paul Sealock
08224c06f2
Add facebook and wc-admin to 'obw_recommended' Tracks event properties
2019-07-04 13:07:18 +12:00
Timmy Crawford
e5b9f508bc
WC_Comments: Add action_log to excluded comment_types in wp_count_comments
2019-07-03 15:06:21 -07:00
Gerhard
538edcaac0
Make button text translatable.
2019-07-03 22:57:08 +02:00
Gerhard
24fc4948c0
Add generate coupon code button for quick coupon code generation.
2019-07-03 22:48:30 +02:00
rmalviya
b5447cd060
Filter meta value even if key not found
...
Resolves #24062 .
2019-07-03 22:25:51 +05:30
Mark Senff
9c013b132b
Update html-product-attribute.php
2019-07-03 07:30:32 -04:00
Gerhard
8a972ee5c3
Add check for empty string when checking meta_value since checking an empty string in mysql against an int results in a 0 value.
2019-07-03 12:37:28 +02:00
Gerhard
7ff9788450
Use plugin_path instead of plugin_url.
2019-07-03 11:49:51 +02:00
Gerhard
77e8e36f72
Add notice when assets are not built, introduce grunt assets task for compiling and minifying assets.
2019-07-03 11:46:28 +02:00
Paul Sealock
01f428d34f
install plugin
2019-07-03 13:12:24 +12:00
Paul Sealock
b65ce3dd26
OBW: Add wc-admin to recommended page
2019-07-03 13:02:07 +12:00
Timmy Crawford
6f6265f8e3
Track views of the last step in the OBW.
2019-07-02 14:56:08 -07:00
Timmy Crawford
3f6d5eb49a
Tracks: Fix marketing signup track.
2019-07-02 14:47:41 -07:00
Peter Fabian
6727fdba62
Updated constants' names to better reflect their usage.
2019-07-02 18:44:43 +02:00
Claudio Sanches
cb12b30c85
Fixed @since tag version
2019-07-02 12:51:36 -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
Rodrigo Primo
18813662dd
Fix link to documentation about WordPress and PHP minimum requirements
2019-07-02 09:19:39 -03:00
Gerhard
f74c32c17b
Add return
2019-07-02 10:25:32 +02:00
Gerhard
e08279d190
Add support for namespaced Jetpack tracks_get_identity from Jetpack 7.5
2019-07-02 10:20:57 +02:00
Andy Mardell
821d387c19
Add full-stop to inline comment
2019-07-01 08:31:10 +01:00
Rodrigo Primo
b08fd05a7d
Fix: check if DB_NAME is defined before using it
...
WooCommerce relies on the constant DB_NAME to display information about the database tables in the system status page. The problem is that this constant is not always defined (e.g., when the plugin HyperDB is used to replace the standard wpdb class). When that is the case, WooCommerce will incorrectly say that its core tables are missing and the following PHP warning will be generated:
```
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP)
wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-system-status-v2-controller.php:708
```
To fix this, this commit checks to see if DB_NAME is defined before using it. When the constant is not set, WooCommerce will display the following message to the users instead of the list of supposedly missing tables:
```
Database information: Unable to retrieve database information. Usually, this is not a problem, and it only means that your install is using a class that replaces the WordPress database class (e.g., HyperDB) and WooCommerce is unable to get database information.
```
2019-06-28 17:57:54 -03:00
Jeff Stieler
3bf58f2d48
Tracks: fix blog ID retrieval from Jetpack options.
...
JavaScripty syntax resulted in boolean values.
2019-06-27 14:15:17 -06:00
Boro Sitnikovski
a7f5d87f5e
DB received `ENGINE` instead of `engine`, so PHP notices appear
2019-06-27 17:34:08 +02:00
Rodrigo Primo
68f5ccabc1
Merge pull request #23811 from woocommerce/feature/23807
...
Allow enforce password strength meter on checkout
2019-06-27 11:39:00 -03:00
Rodrigo Primo
f3b0d755fd
Correct singular form usage in class-wc-admin-report.php
...
For more information see https://github.com/woocommerce/woocommerce/issues/24004
2019-06-27 11:03:35 -03:00
Andy Mardell
f2152e665e
Allow notice type changes when updating cart
2019-06-27 14:54:35 +01:00
Rodrigo Primo
3f2cacb1be
Use phpcbf to fix phpcs violations in class-wc-admin-report.php
2019-06-27 10:48:31 -03:00
Rodrigo Primo
12d03d8d57
Merge pull request #23863 from Jon007/patch-2
...
Avoid attempting to cache expired sessions
2019-06-27 10:15:39 -03:00
Kris Shannon
3945694e37
Force string comparison for customer_id
...
In 203dba5
a check against the current user id was introduced.
This check is always failing because of a type mismatch causing an unnecessary insert/update query against the database.
2019-06-27 18:40:39 +10:00
Gerhard Potgieter
698625ce1d
WP & PHP Upgrade Notices ( #23975 )
...
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.
* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1
* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.
* Add missing variables for adding nag class
* Add styling to dashboard widget
* Rework css to use exclamation instead
* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.
* Update constant to reflect minimum requirements.
* Don't show banner. Fix undefined variable.
* Remove dashboard widget
* Update banner link to docs site
* Add link to docs page where instructions live for updating
* Change button text
* Add UTM params to docs link
* Moved the msg logic from template to php file.
* Bail out early when PHP and WP versions are ok.
* Added missing translation functiog
* Extracted notice function from reset_admin_notices.
To follow suit with other similar functions in the file.
* Synchronize fetching of WP version.
* Removed unused functions.
* Corrected indent.
* Reduce number of variables and fixed coding standards
* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley
a0a58cfb15
update from master
2019-06-26 15:26:47 +01:00
Mike Jolley
48e1dc5bec
Remove init_packages from class-woocommerce
2019-06-25 13:12:14 +01:00
MD0123-Hardip
60cafccb37
added new line in update-function.php file
2019-06-25 15:20:26 +05:30
MD0123-Hardip
530d53c428
added new 370 function for currency updater.
2019-06-25 15:17:16 +05:30
Yash Kapoor
84fd2bbca9
Update class-wc-ajax.php
...
Removed unused code.
2019-06-25 10:58:56 +05:30
Claudio Sanches
deec93f8ca
Merge pull request #23769 from mch0lic/master
...
Forward query (GET) parameters when executing a batch REST API request.
2019-06-24 12:39:36 -03:00
Claudio Sanches
1f73c63a57
Merge pull request #23909 from woocommerce/fix/23895
...
Explicitly check 0 value attributes when looking up variations.
2019-06-24 12:35:39 -03:00
Claudio Sanches
45f1ac63e0
Merge pull request #23935 from malviyaritesh/fix/23931-sale-tooltip
...
Change misleading tooltip for product sale meta box
2019-06-24 12:35:04 -03:00
Claudio Sanches
fe4dfea8eb
Merge pull request #23771 from woocommerce/fix/23756
...
Fix Top rated shortcode results
2019-06-24 12:18:57 -03:00
Claudio Sanches
912ee38836
Merge pull request #23812 from woocommerce/fix/rest-api-customers-type
...
Fixed a typo in customers endpoint
2019-06-24 12:18:15 -03:00
Claudio Sanches
606c0417a9
Merge pull request #23837 from woocommerce/fix/23834
...
Make NL postcode validation more flexible
2019-06-24 12:17:53 -03:00
Claudio Sanches
8d0e2f632b
Merge pull request #23878 from woocommerce/fix/23865
...
Shows city as an optional field for Singapore
2019-06-24 12:17:30 -03:00
Claudio Sanches
c04f7b79f9
Merge pull request #23919 from woocommerce/fix/codex-memory-limit-link
...
Updated documentation about increasing memory allocated to php
2019-06-24 12:12:11 -03:00
Claudio Sanches
35c4183cad
Merge pull request #23966 from woocommerce/fix/23946
...
Fixed database update tool, fixing System Status, REST API and CLI
2019-06-24 12:11:47 -03:00
Claudio Sanches
09408d9296
Merge pull request #23967 from woocommerce/fix/23947
...
Fix phone number format to accept "(", and ")"
2019-06-24 12:09:09 -03:00
aslamshekh
dce3f4907f
Fix - 23913, Delete product query transients when removing terms via wp_remove_object_terms()
2019-06-24 18:58:20 +05:30
Mike Jolley
558a330291
Update version/path getters
2019-06-21 20:00:03 +01:00
Mike Jolley
6bfe8d63c5
Load Packge files
2019-06-21 19:58:38 +01:00
Mike Jolley
d31f6f70a2
Package init method
2019-06-21 17:28:46 +01:00
Mike Jolley
e3dc79481d
Init the blocks library using autoloading
2019-06-21 15:03:28 +01:00
Mike Jolley
ed0a4aae1f
update shipping saving in setup wizard
2019-06-21 13:59:51 +01:00
Mike Jolley
3a1c401a5b
update status report
2019-06-21 13:59:40 +01:00
Mike Jolley
833ad116c6
Update webhooks
2019-06-21 13:59:32 +01:00
Mike Jolley
ab37649474
get_endpoint_data helper
2019-06-21 13:59:25 +01:00
Mike Jolley
5b105d0c7f
Init the API and add to status report
2019-06-21 13:40:53 +01:00
Mike Jolley
950f31a9e0
Remove abstract rest class that is in the package
2019-06-21 13:40:10 +01:00
Mike Jolley
8b41b03f2e
Remove blocks files
2019-06-21 12:23:41 +01:00
Gerhard
c4096a1d8f
Cater for blank paths, do not prepend ABSPATH when template path blank.
2019-06-20 15:10:58 +02:00
Gerhard
9212ee5082
Add check before calling wc_delete_order_item for taxes to make sure order is editable.
2019-06-20 15:01:01 +02:00
Gerhard
7f4c0d0334
Store template cache value without ABSPATH to avoid issues with multi container environments.
2019-06-20 14:43:19 +02:00
Peter Fabian
a6a26633a4
Removed extra check if the code is executed within admin.
2019-06-20 14:07:52 +02:00
MD0123-Hardip
a01d59e581
added db currency updater for both currency
2019-06-20 16:17:23 +05:30
Claudio Sanches
02aafa1948
Merge pull request #23911 from woocommerce/update/23887
...
Update auto username generation description
2019-06-19 20:22:02 -03:00
Claudio Sanches
88100b8f8e
Merge pull request #23926 from malviyaritesh/fix/23922-quote-in-pass
...
Stop unslashing password while registering user
2019-06-19 19:39:39 -03:00
Claudio Sanches
e759317ef4
Merge pull request #23891 from malviyaritesh/fix/23888
...
Send boolean as expected, not string
2019-06-19 19:36:34 -03:00
Claudio Sanches
569e8a5b8f
Merge pull request #23925 from webdados/patch-2
...
Display Status > Logs timestamp with the Y-m-d H:i:s format
2019-06-19 19:11:13 -03:00
Claudio Sanches
84c8a2c165
Merge pull request #23936 from malviyaritesh/fix/23923-categories-link
...
Add missing post_type=product query var in url
2019-06-19 18:59:20 -03:00
Claudio Sanches
6989532274
Allow display multiple error messages through registration validation
2019-06-19 18:09:28 -03:00
Claudio Sanches
7073c6b3a2
Allow "(", and ")" in wc_format_phone_number()
2019-06-19 17:39:08 -03:00
Claudio Sanches
d17b96646c
Fixed database update tool, fixing System Status, REST API and CLI
2019-06-19 17:19:13 -03:00
Mike Jolley
145cf3b770
Remove rest includes and controllers init
2019-06-19 11:56:51 +01:00
Mike Jolley
ce3a6cbbf8
Remove old include
2019-06-19 11:54:55 +01:00
Mike Jolley
78f9ea59ed
Moved auth and exception classes to main includes directory - these are shared between legacy and new API. The package may replace these in the future.
2019-06-19 11:52:50 +01:00
Mike Jolley
7451659b24
Delete REST API abstract classes
2019-06-19 11:49:28 +01:00
Mike Jolley
03e60ebb7c
Delete REST API classes
2019-06-19 11:48:12 +01:00
Mike Jolley
6ca9dac7d7
Remove REST API autoloader
2019-06-19 11:44:57 +01:00
Mike Jolley
9a07e92eba
Remove parent construct call since init() is used.
2019-06-19 11:31:04 +01:00
Mike Jolley
038bac16f5
Update paths to legacy API and implement init method.
2019-06-19 11:29:49 +01:00
Mike Jolley
00a8ef5d4d
Move legacy API files from /api/ to /legacy/api
2019-06-19 11:23:47 +01:00
Albert Juhé Lluveras
9e641e08dd
Merge pull request #23953 from woocommerce/fix/tracks-pixel-fixed
...
Set Tracks image position to fixed
2019-06-19 10:41:39 +02:00
Jonathan Moore
d8470aa45a
implementing review from @claudiosanches
2019-06-18 21:20:39 +01:00
Claudio Sanches
4061f870a2
Merge pull request #23720 from parmarhardip/FIX-23589
...
fix- 23589 I have fixed pricing issue.
2019-06-18 16:04:45 -03:00
Claudio Sanches
e18481e795
Merge pull request #23824 from woocommerce/fix/23799
...
Update Emogrifier library
2019-06-18 16:03:40 -03:00
Claudio Sanches
e849a5e044
Merge pull request #23877 from jdeeburke/fix/apply-coupon-fatal
...
Fix fatal error when applying a virtual coupon to an order placed by a guest
2019-06-18 16:00:39 -03:00
Claudio Sanches
a36dcf8aae
Merge pull request #23849 from woocommerce/fix/wc-tracker-reviews
...
Tracker: fix review count
2019-06-18 15:52:25 -03:00
Claudio Sanches
96787d62f9
Merge pull request #23828 from Jon007/patch-1
...
Avoid outputting a rating of zero when product has comments without a review rating.
2019-06-18 15:51:55 -03:00
Claudio Sanches
bf01eccfcd
Merge pull request #23840 from unfulvio/23839-do-not-throw-notice-rest-api-includes
...
[#23839 ] Do not throw autoloader notice if following notice instructions
2019-06-18 15:51:22 -03:00
Albert Juhé Lluveras
26c2d49586
Set Tracks image position to fixed
2019-06-18 13:05:30 +02:00
MD0123-Hardip
715528e58e
changes applied
2019-06-18 12:07:55 +05:30
rmalviya
4190e9fd4b
Add missing post_type=product in url
...
Show Products->Categories active when clicked on "Make Default" link
under any product category and fix #23923 .
2019-06-14 12:28:08 +05:30
rmalviya
0e896f82fa
Change misleading tooltip for product sale meta box
...
Clarify the sale start and end time by changing the tooltip for
product sale price dates and fix #23931 .
2019-06-14 11:12:54 +05:30
rmalviya
5df3621640
Do not unslash password when resetting
...
Similar to PR(#23926 ) don't unslash password fields when posted
while resetting password or changing account details.
2019-06-14 09:16:21 +05:30
rmalviya
01025f9628
Stop unslashing password while registering user
...
After 79ff1b10e
password is not unslashed while logging in but
this missed removing `wp_unslash` from password while registering.
This causes the mismatch of password if user registered with a
password containing quote (`"`).
Fixes #23922 .
2019-06-14 09:16:21 +05:30
Marco Almeida
3b7be608e4
Display Status > Log timestamp with the Y-m-d H:i:s format
...
Display WooCommerce > Statis > Log timestamp, when using WC_Log_Handler_DB, with the Y-m-d H:i:s format instead of the WordPress global date and time format options, because we need more detail on the shown timestamps and that might not be compatible with what we want for our global options.
2019-06-13 10:58:41 +01:00
Claudio Sanches
3ce6acec74
Updated outdated codex URLs
2019-06-12 19:31:01 -03:00
Claudio Sanches
5624af43a7
Updated docs about increasing memory allocated to php
2019-06-12 19:04:24 -03:00
Gerhard
84b6fa144f
Update description for automatic username generation to reflect how it actually works.
2019-06-12 12:13:41 +02:00
Gerhard
3894d156e6
Explicitly check 0 value attributes when looking up variations.
2019-06-12 11:27:27 +02:00
justlevine
efb8b9af57
Added missing quote
...
Quote missing between `placeholder` and `data-input-classes` attributes.
2019-06-11 20:47:22 +03:00
rmalviya
5bf8adf2dd
Send boolean as expected, not string
...
Originally checkout.js:336 expected string but changed to boolean
with 4ad370985
. Send boolean for `reload` in json and fix #23888 .
2019-06-08 20:12:44 +05:30
Claudio Sanches
47c370809e
Prevents taxes columns from being removed when the order is no longer editable
2019-06-07 10:07:32 -03:00
Jeff Stieler
05fd441145
Add payment method to order status change tracking.
2019-06-07 12:52:22 +02:00
Jeff Stieler
1bd9a7d9a7
Use a consistent tracks event naming scheme.
2019-06-07 12:31:42 +02:00
Jeff Stieler
e251557550
Track when users click “add order” from an order edit screen.
2019-06-07 12:21:04 +02:00
Ionut Calara
26dfe11493
Update find matching variation method inner query
...
Fix variation query to prevent the order by being ignored in some mysql
and mariadb versions. The order by has been moved outside and a left
join was added.
2019-06-07 13:05:01 +03:00
Jeff Stieler
6c90d9da57
Track order actions.
2019-06-07 10:55:33 +02:00
Claudio Sanches
c0a9b57d72
Shows city as an optional field for Singapore
2019-06-06 20:13:55 -03:00
Jared Burke
332c94c13a
Fix fatal error when applying a virtual coupon to an order placed by a guest
2019-06-06 15:37:08 -05:00
Dan Wyman
3edd30757b
Tracker: apply coding standards.
2019-06-06 13:23:11 -07:00
Jeff Stieler
f9d064e778
Track changes to order creation date.
2019-06-06 17:09:50 +02:00
Fulvio Notarstefano
aba51d4c76
[ #23839 ] Use false arg in class_exists()
2019-06-06 09:56:30 +08:00
Risto Niinemets
dbc9719d76
Use order raw address instead of formatted for filter
2019-06-04 08:13:40 +03:00
Jonathan Moore
9e8debd7ba
Avoid attempting to cache expired sessions
...
get_session() attempts to cache a session even if it is already expired.
The code used passes negative expiry seconds to wp_cache_add if the session expired in the past:
wp_cache_add( $this->get_cache_prefix() . $customer_id, $value, WC_SESSION_CACHE_GROUP, $this->_session_expiration - time() );
Depending on the caching layers used this will give errors in the logs such as:
ERR invalid expire time in setex in /var/www/html/wp-content/plugins/redis-cache/includes/predis/src/Client.php:370
as reported on: https://wordpress.org/support/topic/error-when-trying-to-get-a-get-a-cache-not-available/
2019-06-03 22:11:46 +01:00
Ajay Ghaghretiya
c9bcce3a31
#23850 Fixed the coupon usage limit issue when apply coupon from admin panel ( #23851 )
...
* fix the coupon usage limit issue
* fix the if condition for the usage limit
* fixed coding standard
* fix the if conditions for coupon usage limit per user
2019-06-03 10:47:32 -03:00
Risto Niinemets
de1dfbb1b4
Allow filtering formatted shipping address
2019-06-03 09:18:36 +03:00
Claudio Sanches
3a47453d68
Improve regex
2019-06-01 11:52:15 -03:00
Dan Wyman
7355fadfdd
Tracker: fix review count.
...
Fixes #23848
2019-05-30 12:45:47 -07:00
Fulvio Notarstefano
ab1ba58128
[ #23839 ] Do not throw an autoloader notice if following the notice recommendation
2019-05-29 12:47:26 +08:00
Claudio Sanches
b5da70c74a
Introduced woocommerce_search_products_post_statuses filter
2019-05-28 21:05:26 -03:00
Claudio Sanches
e04e9ae521
Make NL postcode validation more flexible
...
Allows postcode without spaces and in lowercase.
2019-05-28 20:51:07 -03:00
Claudio Sanches
2e90e9ab65
Merge pull request #23743 from Sisanu/issue-23717-enhancement-hook
...
Implement the info & extra actions new filter for Product gallery
2019-05-28 18:22:33 -03:00
Claudio Sanches
2fdf6de827
Merge pull request #23764 from jorgept/patch-1
...
Update class-wc-countries.php
2019-05-28 18:19:41 -03:00
Claudio Sanches
c28af404ad
Merge pull request #23814 from woocommerce/add/x-sendfile-file-filter
...
Add filters to file paths passed to the different xsendfile like backends
2019-05-28 17:41:49 -03:00
Jonathan Moore
5d6574a00a
rating optional = generate_product_data incorrect
...
If rating is not mandatory on comments, generate_product_data() produces incorrect output.
For example items with comments but no reviews are output with rating of zero which is getting flagged in google webmasters tools under the heading "Rating is missing required best and/or worst values".
The output google is objecting to is eg:
"aggregateRating":{"@type":"AggregateRating","ratingValue":"0","reviewCount":1}}
postmeta in this case is:
_wc_average_rating 0
_wc_rating_count 0.0
_wc_review_count 1
product lookup table is reporting
rating_count 0
average_rating 0.00
the meta is correct and reflected in the product object, it is the test that is wrong since
if $product->get_review_count()
may be true even if there are no ratings.
This is solved by substituting get_rating_count() which has the correct number of ratings.
2019-05-28 07:38:07 +01:00
Rodrigo Primo
000c95ea88
Merge pull request #23659 from woocommerce/add/wc-admin-install-nudge
...
Add wc-admin notice.
2019-05-27 12:29:43 -03:00
Rodrigo Primo
ff1020a787
Merge pull request #23787 from woocommerce/fix/tracks-cookie-set-action
...
Tracks: set cookie on admin_init insead of wp_loaded
2019-05-27 12:16:27 -03:00
Rodrigo Primo
67663836c0
Merge pull request #23739 from woocommerce/fix/23737
...
Remove administrative message from refund reason
2019-05-27 12:12:07 -03:00
Rodrigo Primo
ce6f6a6ddb
Merge pull request #23772 from woocommerce/fix/OBW-tracks-not-enabled
...
Tracks: Add check for OBW is-opting-in
2019-05-27 12:09:00 -03:00
Gerhard Potgieter
b2ed079520
Manual orders coupon usage limits by email ( #23775 )
...
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.
* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Gerhard
f5c5ced6b8
Update Emogirifier library
2019-05-27 11:39:33 +02:00
Peter Westwood
4448235a16
Coding Standards: Add missing space.
2019-05-24 18:15:24 -06:00
Peter Westwood
f70dcc6a01
Add filters to file paths passed to the different xsendfile like backends.
...
Different server configurations can require different paths to be sent and it isn't always possible for a plugin to know the correct path for a platform.
These filters will allow a hosting provider to install a platform level configuration via an `mu-plugin` to make sure things work in there configuration.
2019-05-24 17:10:17 -06:00
Claudio Sanches
3a79970289
Fixed a typo in customers endpoint
2019-05-24 15:34:25 -03:00
Claudio Sanches
61346720c7
Allow enforce password strength meter on checkout
2019-05-24 15:27:26 -03:00
Valerie
136613f539
OBW Shipping: Update labels description
...
- replace "Print shipping labels at home" heading with
"Did you know you can print shipping labels at home?"
- Use new description for WooCommerce Services:
"'Use WooCommerce Shipping (powered by WooCommerce Services & Jetpack)
to save time at the post office by printing your shipping labels
at home."
- do not capitalize post office
2019-05-23 22:17:17 -04:00
Valerie
b379739ea6
OBW Shipping: Switch label and zone sections
2019-05-23 22:17:13 -04:00
Valerie
6d77056e77
OBW: Fix stranded ul closing tag
2019-05-23 22:17:03 -04:00
Iulia Cazan
f49cec5108
Coding standard updates
2019-05-23 08:58:13 +03:00
Claudio Sanches
17da960abe
Merge pull request #23137 from woocommerce/fix/23051
...
Change coupon amount field type based on coupon type
2019-05-22 21:19:03 -03:00
Claudio Sanches
15aa298585
Merge pull request #23159 from woocommerce/fix/23157
...
If orderby is used on static homepage, force query to be a page query
2019-05-22 21:17:01 -03:00
Claudio Sanches
dc35b89df7
Merge pull request #23178 from davidofug/master
...
Uganda Billing/Shipping address
2019-05-22 21:07:09 -03:00
Claudio Sanches
793519137a
Merge pull request #23794 from woocommerce/update/23792
...
Introduce wc_load_cart to dynamically load the cart
2019-05-22 20:51:09 -03:00
Claudio Sanches
28d49031d3
Merge pull request #23695 from james-allan/calc-base-zip-city
...
Calculate base store taxes including the store's zip and city
2019-05-22 20:49:57 -03:00
Claudio Sanches
8ea6c7c80e
Merge pull request #23651 from woocommerce/update/register-rest-routes
...
Set register_rest_route override to TRUE in Blocks REST API
2019-05-22 20:49:15 -03:00
Claudio Sanches
359fd9d7d5
Merge pull request #23791 from woocommerce/fix/23630
...
Clear notices when calling cart-errors.php template
2019-05-22 20:40:21 -03:00
Claudio Sanches
91a8592ebb
Fixed conditional logic
2019-05-22 20:16:10 -03:00
Claudio Sanches
688d35e206
Merge pull request #23562 from benhuson/update/23558-related-product-order
...
Update/23558 Related product order
2019-05-22 19:59:25 -03:00
Claudio Sanches
3cc3565e61
Merge pull request #23774 from connorhu/patch-1
...
fixed availability schema protocol
2019-05-22 18:07:05 -03:00
Gerhard
f6d9faa062
Introducde wc_load_cart to dynamically load the cart, this allows for functionality outside of frontend to initialise the cart.
2019-05-22 12:24:31 +02:00
sergey.r
98586f10f4
Catch WC_REST_Exception while calling do_action( "woocommerce_rest_insert_{$this->post_type}_object"
2019-05-22 13:00:34 +03:00
Gerhard
3a49e7a53b
Clear notices after calling checkout/cart-errors.php to avoid duplicate notices on the cart page. cart-errors.php does not output notices but a general notice message yet error notices are still enqueued before calling the template.
2019-05-22 09:49:53 +02:00
Paul Sealock
f7e56be638
Tracks: set cookie on admin_init
2019-05-22 12:14:28 +12:00
Claudio Sanches
196d5e77cb
Merge pull request #23041 from woocommerce/update/21701
...
Add hooks for helper subscription changes
2019-05-21 18:27:15 -03:00
Paul Sealock
c74d5b30ca
Tracks: use woocommerce_apply_user_tracking and woocommerce_apply_tracking
2019-05-22 09:18:34 +12:00
Claudio Sanches
edd0e7de8c
Bump template versions
2019-05-21 17:53:03 -03:00
Claudio Sanches
22f9cdcb0d
Allow {woocommerce} placeholder in lowercase
2019-05-21 17:47:54 -03:00
Claudio Sanches
4a99a11009
Merge branch 'master' into update/22895
2019-05-21 17:46:16 -03:00
Rodrigo Primo
870ea9a935
Merge pull request #23704 from woocommerce/fix/23703
...
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-21 17:24:43 -03:00
Claudio Sanches
bd36434174
Use WP 5.0 determine_locale() function
2019-05-21 17:19:50 -03:00
Rodrigo Primo
fbdfb7b87f
Merge pull request #23468 from woocommerce/update/23366
...
Return WP_Error messages from wp_insert_user()
2019-05-21 17:10:32 -03:00
Rodrigo Primo
ae50379f7e
Merge pull request #23325 from woocommerce/fix/rest-api-purge-invalid-orders
...
[REST API] Stop orders being created if invalid data is sent
2019-05-21 16:36:04 -03:00
Rodrigo Primo
5a15713f95
Merge pull request #23207 from woocommerce/update/23205
...
Introduce `parse_published_field` in CSV importer
2019-05-21 16:24:03 -03:00
Rodrigo Primo
c21a69ff6d
Complement WC_Product_CSV_Importer::parse_published_field() phpdoc
...
Add a phrase to WC_Product_CSV_Importer::parse_published_field() phpdoc
to note that 'true' and 'false' are also supported to set product
published status.
2019-05-21 15:55:41 -03:00
Rodrigo Primo
3fed0d7cbc
Merge pull request #23112 from woocommerce/fix/persistent-cart-filter
...
Persistent cart improvements
2019-05-21 15:07:55 -03:00
Karoly Gossler
a135f02f41
fixed availability schema protocol
...
As you can see in the example, the scheme only can be on http:
https://schema.org/InStock
The Google Search console has also marked it invalid.
2019-05-21 09:10:56 +02:00
Iulia Cazan
051277d26e
Rename the hook
2019-05-21 09:20:46 +03:00
Iulia Cazan
1187563c93
Transform the filter into action, rewrite the piece of code to pass the coding standards, remove markup restriction.
2019-05-21 09:18:15 +03:00
Gerhard
70231461b2
Refactor logic for passing no_shipping, it should only be passed when no shipping items are available.
2019-05-21 08:11:36 +02:00
Paul Sealock
ca4e79bdd1
Tracks: Add check for OBW is-opting-in
2019-05-21 12:20:25 +12:00
Claudio Sanches
a2301dc0cb
Removed deprecated PHPCS flags
2019-05-20 17:06:41 -03:00
Claudio Sanches
5eaf71b483
Fixed coding standards
2019-05-20 17:04:24 -03:00
Claudio Sanches
cc6d7996fd
Restored WC_Shortcode_Products::order_by_rating_post_clauses
2019-05-20 16:57:14 -03:00
Gerhard
8332bed7bc
Do not pass no_shipping when not using send shipping address options in paypal, it still needs to use the billing details.
2019-05-20 14:59:48 +02:00
Peter Fabian
91839ce078
Moved the JS enqueue from get_instance_form_fields to admin_footer action hook.
...
This should prevent multiple enqueues.
2019-05-20 12:56:01 +02:00
Mindaugas Budreika
d67381148a
Forward query (GET) parameters when executing a batch REST API request.
2019-05-20 14:24:48 +04:00
jorgept
e214a85a8c
Update class-wc-countries.php
...
Add MZ array
postcode => false,
hidden => true
2019-05-19 22:23:36 +01:00
Ibrahim
0db84aec56
Fixes #23756
2019-05-18 21:04:13 +05:30
Timmy Crawford
01f1749684
Change version compare.
2019-05-17 13:53:38 -07:00
Timmy Crawford
43cd7dc04c
Add wc-admin notice.
2019-05-17 13:53:37 -07:00
Rodrigo Primo
f8642f2fbb
Remove code duplication from OBW payment gateway logic
...
In #23690 we implemented a few changes to the logic to decide which
payment gateways to display in the onboarding wizard. When working on
this code, we noticed that there was a bit of duplication in it that was
not necessary (see
https://github.com/woocommerce/woocommerce/pull/23690#discussion_r284004924 ).
We opted to remove this duplication in a different commit, since that PR
was included in a patch release.
2019-05-17 10:32:06 -03:00
Iulia Cazan
a1ac64aa30
Implement a new filter that allows for custom info or extra actions to be exposed for each of the attachments selected in the Product gallery
2019-05-17 12:03:40 +03:00
Claudio Sanches
d807119121
Introduced woocommerce_admin_order_buyer_name filter
2019-05-16 19:02:57 -03:00
Claudio Sanches
144f011065
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-05-16 18:27:08 -03:00
Claudio Sanches
f5bab51c6a
Improve refund reason when changing order status to refunded
...
Refund reasons are public, can be visualized on emails, and shall not
contain any sensitive data or administration information.
2019-05-16 17:57:28 -03:00
Gerhard Potgieter
afd7e72c03
Merge pull request #23690 from woocommerce/update/obw-stripe
...
Update OWB Payment Gateway structure
2019-05-16 18:26:29 +02:00
Gerhard
0eef8654f6
payapal enabled setting defaults to false
2019-05-16 16:08:46 +02:00
Gerhard
99b183e5bb
Refactor paypal and stripe combined logic, add fallback to specified settings when previously saved settings were detected by no option present for the enabled setting.
2019-05-16 15:35:29 +02:00
Gerhard
b0a831b64f
OWB: Check PayPal by default when Stripe not available.
2019-05-16 15:26:58 +02:00
Gerhard Potgieter
945330c219
Merge pull request #23634 from woocommerce/fix/23626
...
Update PayPal capture_payment method triggers
2019-05-16 15:17:58 +02:00
Gerhard Potgieter
173b706ccb
Merge pull request #23734 from woocommerce/fix/23676-2
...
Dashboard stock queries should only include published products
2019-05-16 15:16:18 +02:00
Rodrigo Primo
a247e08ad0
Fix query used to get the number of low stock products in the dashboard
...
This commits changes the query used to get the number of low stock
products in the WooCommerce Status widget in the admin dashboard. This
query should only count published products and ignore products with
other statuses to match the behavior used in the low stock report.
2019-05-16 09:45:44 -03:00
Gerhard Potgieter
10abe6d4be
Merge pull request #23731 from djboris88/fix/wc-order-wrong-param-type-phpdocs
...
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 14:43:30 +02:00
Rodrigo Primo
6e976c7f0c
Remove unnecessary conditions from out of stock query
...
In the query to get the number of out of stock products for the admin
dashboard widget, it is not necessary to use `1=1` and also not
necessary to use `posts.post_type IN ( 'product', 'product_variation' )`
as only products are added to wp_wc_product_meta_lookup.
2019-05-16 09:41:52 -03:00
Gerhard Potgieter
58a04d42e5
Merge pull request #23697 from sokolby/patch-1
...
Add Filter for wc_prices_include_tax() function return
2019-05-16 14:37:50 +02:00
Gerhard Potgieter
9f0e1a6e64
Merge pull request #23534 from woocommerce/fix/233880-alt
...
Revise update stock logic
2019-05-16 14:15:13 +02:00
Gerhard Potgieter
d8f145c2ca
Merge pull request #23714 from woocommerce/fix/23692
...
Add back backward compatibility for coupon expiry_date meta field
2019-05-16 14:10:03 +02:00
Gerhard Potgieter
2cfc7b64c1
Merge pull request #23713 from woocommerce/fix/webhooks-object-caching
...
Use WC_Cache_Helper::get_cache_prefix for webhook count cache
2019-05-16 14:07:27 +02:00
Gerhard Potgieter
f76cf57ce8
Merge pull request #23546 from woocommerce/fix/23533
...
Version template caching
2019-05-16 14:01:25 +02:00
Boris Djemrovski
c45e06a130
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 12:04:34 +02:00
Peter Fabian
207042f7df
Put back the manage stock check for lookup table.
2019-05-16 10:57:42 +02:00
parmarhardip
470b0a5424
I have updated the code with suggestion and tested it. Please review from your side.
2019-05-16 10:24:00 +05:30
Rodrigo Primo
33ee11dd62
Merge pull request #23638 from woocommerce/update/23632
...
woocommerce_product_post_type_link_parent_category_only filter
2019-05-15 15:59:12 -03:00
Peter Fabian
9f0fb0b404
Foxed the use to correct stock quantity parameter.
2019-05-15 16:18:24 +02:00
Peter Fabian
1d29b36c4c
Removed comments that are no longer relevant.
2019-05-15 15:46:53 +02:00
Gerhard Potgieter
30ce9ff6a3
Merge pull request #23689 from woocommerce/add/get_used_coupon_codes
...
Deprecate get_used_coupons in favor of get_coupon_codes
2019-05-15 15:34:40 +02:00
Peter Fabian
af7950910c
Removed the transaction and locking code.
...
NOWAIT is not supported on MySQL server 5.5,
SELECT ... FOR UPDATE can leave lingering locks on InnoDB ("When InnoDB performs a complete rollback of a transaction, all locks set by the transaction are released. However, if just a single SQL statement is rolled back as a result of an error, some of the locks set by the statement may be preserved. This happens because InnoDB stores row locks in a format such that it cannot know afterward which lock was set by which statement.", via https://dev.mysql.com/doc/refman/5.5/en/innodb-deadlock-detection.html )
2019-05-15 15:09:16 +02:00
Peter Fabian
68a325249f
Removed the extra parameter that didn't make sense.
...
Also get_data_for_lookup_table should not be checking db value of _manage_stock as that can be in the process of being changed.
2019-05-15 14:20:27 +02:00
parmarhardip
d5337fac70
fix- 23589 I have fixed pricing issue.
2019-05-15 17:49:46 +05:30
Gerhard
aadc7a1069
Add todo
2019-05-15 11:23:41 +02:00
Gerhard
8ed1a647bc
Restore backward compatibility meta_key for coupon date_expires. @todo: migrate expiry_date in next release to date_expires
2019-05-15 11:21:52 +02:00
Gerhard
3d57a4b474
Use WC_Cache_Helper::get_cache_prefix for prefixing webhook count cache, fixes issue with cache not clearing when incrementing the prefix.
2019-05-15 10:47:50 +02:00
sokolby
cb9f765eb2
Fix prefix filter name
2019-05-15 11:44:54 +03:00
James Allan
6069854d9f
Replace wc_get_base_location() with individual getters
2019-05-15 15:43:15 +10:00
Claudio Sanches
b68b35336f
Prevent negative prices for products
2019-05-14 13:22:06 -03:00
Claudio Sanches
9fd6e6d974
Added new $abs arg to wc_format_decimal() function
2019-05-14 13:15:42 -03:00
Claudio Sanches
836083c064
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-14 12:52:54 -03:00
Andrey Barashkov
58132056bd
Add Filter for wc_prices_include_tax() function return
...
It's great to have a filter, because there are some scenarios when it is necessary to create custom logic for displaying prices.
2019-05-14 13:14:50 +03:00
Tatu
968a0561bb
Add additional check for cart persistence
2019-05-14 12:47:06 +03:00
Gerhard Potgieter
b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
...
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard
486321161c
Update usage of get_used_coupon_codes to get_coupon_codes
2019-05-14 11:21:27 +02:00
Gerhard
efe3e4c5d6
Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes.
2019-05-14 11:19:48 +02:00
Tatu
44c6d0b36c
Compatibility for persistent cart disabled case
...
If woocommerce_persistent_cart_enabled filter was set to false the cart would be emptied while logged in. This fixes also that case. Now the guest session is removed from the woocommerce_sessions table after successful login whether the persistent cart is set enabled or disabled and the guest session cart is carried over to logged in user session.
2019-05-14 11:24:21 +03:00
Daniel Bitzer
0705730121
Add WC_Abstract_Order::get_coupons()
2019-05-14 15:46:48 +09:30
Gerhard
b694efcb63
Klarna should not be featured.
2019-05-14 07:36:15 +02:00
James Allan
45b461639e
Calculate base store taxes including the store's zip and city
2019-05-14 13:43:57 +10:00
Gerhard
e131b01133
Modify payment gateway placement, defaults and new logos.
2019-05-13 15:54:44 +02:00
Gerhard
31acfbcb4a
Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better.
2019-05-13 14:40:54 +02:00
Tatu
71e94e9c08
Add mention of $old_session_key parameter
2019-05-13 15:20:39 +03:00
Tatu
bfad881f32
Removes the $old_session_key default value
...
Fix for the issue #23686
2019-05-13 14:27:28 +03:00
Tatu
4266cc9eaa
Update class-wc-session-handler.php
2019-05-13 12:27:01 +03:00
Gerhard
36cab83d76
Update out of stock dashboard widget to use same query as in reporting, this only counts published products.
2019-05-13 11:02:50 +02:00
Tatu
4a725f3f3e
Delete guest session after user logs in
...
Logging in to the user account makes a copy of the guest session and possible cart content. This causes conflicts in situations where there are only single quantities of products left and real time product availability checks are in place. While this kind of single quantity items are at time in two carts for the same visitor the checking of product availability fails. Deleting the same visitors guest cart solves this issue.
2019-05-13 02:14:52 +03:00
Hassan Yousefi
a50464d781
WC_Structured_Data::generate_product_data() no more hooked in to woocommerce_shop_loop ,which has been removed in #22912
2019-05-11 20:45:54 +04:30
Claudio Sanches
c96ed877af
Merge pull request #23660 from gocodebox/master
...
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Gerhard Potgieter
249ee5ecda
Merge pull request #23478 from woocommerce/fix/23476
...
Force delete rather than trash variations on product type change
2019-05-10 11:41:14 +02:00
Gerhard Potgieter
a228975801
Merge pull request #23671 from woocommerce/fix/wc-tracker-order-totals
...
Corrects WC Tracker's order total calculation.
2019-05-10 11:23:55 +02:00
Gerhard Potgieter
64a76ea0fa
Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
...
WC Update CLI DB Version
2019-05-10 11:21:58 +02:00
Gerhard Potgieter
b9a75c474a
Merge pull request #23579 from n-dawson/fix-23578
...
Fixes #23578 - Check taxes enabled before adding totals row to order
2019-05-10 11:21:19 +02:00
Gerhard Potgieter
32769d0d76
Merge pull request #23625 from woocommerce/fix/23549
...
Use attribute's orderby option to sort terms in product's edit screen
2019-05-10 11:19:08 +02:00
Gerhard Potgieter
18e2332cfc
Merge pull request #23590 from woocommerce/fix/23587
...
Stock sorting issue when Yoast installed
2019-05-10 11:17:26 +02:00
Gerhard Potgieter
8c665d6572
Merge pull request #23615 from parmarhardip/23596
...
#23596 - I have solve this issue.
2019-05-10 11:16:06 +02:00
Gerhard Potgieter
902cc1f0b0
Merge branch 'master' into fix/23606
2019-05-10 11:12:54 +02:00
Gerhard Potgieter
46bcf42559
Merge pull request #23611 from woocommerce/fix/23583
...
Prevents undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-10 11:02:13 +02:00
Gerhard Potgieter
364093056d
Merge pull request #23580 from woocommerce/report-bug-link
...
Change the link of the "Report a bug" button
2019-05-10 10:59:24 +02:00
Gerhard Potgieter
0e80030f0b
Merge pull request #23601 from woocommerce/fix/23547
...
Fix to show WC plugin updates in System status report
2019-05-10 10:57:47 +02:00
Gerhard Potgieter
984357fb41
Merge pull request #23597 from woocommerce/fix/23509
...
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter
6fc498e0d9
Merge pull request #23528 from parmarhardip/23521
...
Fixes #23521 - Billing Email and Country now autofill for newly regis…
2019-05-10 10:48:13 +02:00
Gerhard Potgieter
d2c7d8c86e
Merge pull request #23535 from woocommerce/fix/23518
...
Fix: parameter values should be converted back as well when building form fields
2019-05-10 10:43:28 +02:00
Gerhard Potgieter
ab90cefad4
Merge pull request #23519 from woocommerce/fix/OBW-tracks-scripts
...
Tracks: Fix OBW scripts
2019-05-10 10:41:37 +02:00
Gerhard Potgieter
81bfb9cacb
Merge pull request #23529 from woocommerce/update/23512
...
Define $wpdb tables as early as possible, before init
2019-05-10 10:38:15 +02:00
Gerhard Potgieter
07ea25377a
Merge pull request #23517 from woocommerce/fix/23506
...
Fix dismiss button in two WC admin notices
2019-05-10 10:37:01 +02:00
Gerhard Potgieter
250d891c48
Merge pull request #23515 from woocommerce/fix/default-api-version-webhooks
...
Bump default WC API version used when creating webhook
2019-05-10 10:34:43 +02:00
Gerhard Potgieter
002b5ebade
Merge pull request #23499 from woocommerce/fix/23497
...
[3.6.x] Stop removing backslash from passwords
2019-05-10 10:30:13 +02:00
Gerhard Potgieter
af574f6484
Merge pull request #23456 from woocommerce/fix/23447
...
Disable export of scheduled action posts
2019-05-10 10:27:34 +02:00
Gerhard Potgieter
df7d82f744
Merge pull request #23429 from dimadin/rs/address-format
...
Add address format for Serbia
2019-05-10 10:23:06 +02:00
Gerhard Potgieter
5c630271c8
Merge pull request #23430 from dimadin/rs/no-states
...
Do not use state for Serbia
2019-05-10 10:18:11 +02:00
Thomas Patrick Levy
4e58b098e5
update filter
2019-05-09 15:49:03 -07:00
Claudio Sanches
04c598be09
Revert sanitization
2019-05-09 17:28:19 -03:00
Claudio Sanches
caf68b1405
Sets $new_user_args as array by default
2019-05-09 17:08:15 -03:00
Claudio Sanches
96c65d1a4d
Uses "." instead of empty spaces to join words and avoid illegal username
2019-05-09 17:04:48 -03:00
Claudio Sanches
fb8af18eb4
Sanitize only one time
2019-05-09 17:04:27 -03:00
Claudio Sanches
b8d86ccce3
Introduced new woocommerce_new_customer_username filter
2019-05-09 17:02:47 -03:00
Claudio Sanches
20cd0152e8
Improve woocommerce_generated_customer_username filter
2019-05-09 17:01:30 -03:00
Claudio Sanches
c2836c5e75
Try prevent errors caused by illegal logins
2019-05-09 16:56:47 -03:00
Dan Wyman
6123c6066d
Corrects WC Tracker's order total calculation.
...
Fixes #23669
2019-05-09 12:03:33 -07:00
Rodrigo Primo
84f0f4ebea
Bump WC version since 3.7.0 development has begun
2019-05-09 15:14:34 -03:00
Gerhard
84b75c31ad
Three equals
2019-05-09 12:57:25 +02:00
Gerhard
c633c46045
When no update is found then just call WC_Install::update_db_version(); to ensure db version is set to current WC version, same as per WC_Admin_Notices::update_notice
2019-05-09 11:24:49 +02:00
Thomas Patrick Levy
57bbcf94b7
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-08 17:35:28 -07:00
Mike Jolley
6c3e1bbd01
Set register_rest_route override to TRUE
2019-05-08 11:27:26 +01:00
Gerhard
48e0a25f2f
Add woocommerce_product_post_type_link_parent_category_only to only include the parent category in the slug instead of parent/child
2019-05-07 15:51:49 +02:00
Gerhard
af678dfc84
Switch paypal capture_payment method to use woocommerce_order_status_processing and woocommerce_order_status_completed instead to avoid issues with custom from status transitions.
...
Update get_post_meta usage with $order->get_meta instead.
2019-05-07 12:57:59 +02:00
Gerhard
6eb51a9047
WC_VERSION instead of WC()->version
2019-05-07 08:47:42 +02:00
Claudio Sanches
490219de7c
Use attributes orderby options to sort terms in product's edit screen
2019-05-06 20:39:36 -03:00
Claudio Sanches
27c3f5c7e5
Always return string
2019-05-06 19:49:02 -03:00
Claudio Sanches
77b96b5972
Get only the first item
2019-05-06 19:46:37 -03:00
Gerhard
4c80c6fd3b
Include version in the implode call.
2019-05-06 14:53:03 +02:00
Gerhard
48e6083adc
Restore param and return for backward compatibility.
2019-05-06 14:47:27 +02:00
Gerhard
b1e2a0119a
Fix system status connected to woocommerce.com status
2019-05-06 10:11:59 +02:00
parmarhardip
12985e107a
#23596 - I have solve this issue.
2019-05-06 11:43:56 +05:30
Claudio Sanches
36a99e2935
Prevent undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-03 22:21:10 -03:00
Peter Fabian
a601151ed0
Fixed use of available_updates variable.
2019-05-03 10:34:59 +02:00
Peter Fabian
98edbd2f78
Added confirmation before saving an empty list of countries to sell to in general WC settings.
2019-05-02 21:26:29 +02:00
Peter Fabian
3caee4451d
Fixed PHPCS.
2019-05-02 21:20:08 +02:00
Peter Fabian
35c63ee475
Added some comments to hopefully make the function a bit clearer.
2019-05-02 20:19:28 +02:00
Peter Fabian
375880e06b
Made the increase and decrease operations atomic, set is atomic as it's not fetch-and-update, just update.
2019-05-02 19:41:15 +02:00
Peter Fabian
44f1803c53
Tweaked update lookup table to add the possibility to ignore manage_stock value from the database.
...
E.g. if manage_stock property has been changed in the object/local copy of the product while updating it, but the product has not been saved to the db yet, the lookup table update would ignore stock quantity update.
2019-05-02 19:29:28 +02:00
Peter Fabian
b891bfe238
Removed unused variables.
2019-05-02 17:53:50 +02:00
Gerhard
48000e63a1
Move remove_ordering_args calls from the_posts filter to query_filters method, this avoids conflicts with other plugins also hooking in and modify the args.
2019-05-02 14:31:30 +02:00
Gerhard
6a6b58daf6
Wrap version appending inside sanitize_key
2019-05-02 14:13:16 +02:00
Gerhard
da00f93869
Make the version part of the cache key and not a value in the cache
2019-05-02 14:10:31 +02:00
Rodrigo Primo
5ed76fd067
Change the link of the "Report a bug" button
...
Changes the link of the "Report a bug" button from https://github.com/woocommerce/woocommerce/issues?state=open to https://github.com/woocommerce/woocommerce/issues/new?template=Bug_report.md . When users click on this button, they should go directly to the new issue page, instead of the page that list issues.
2019-05-01 22:58:55 -03:00
Nathan Dawson
6088f7c353
Fixes #23578 - Check taxes are enabled before adding totals row to orders
2019-05-01 22:05:46 +01:00
Ben Huson
d81fc1d26d
Allow ordering by ‘none’ when ordering a products array (avoids random ordering). #23558
...
This provides the same functionality as WP_Query. Shuffle/rand remains the default order for backward compatiblity.
2019-04-30 18:46:45 +01:00
Ben Huson
70064b5eb1
Allow disabling of shuffling related posts via `woocommerce_product_related_posts_shuffle` filter. #23558
...
This filter ensures backwards compatibility is maintained.
2019-04-30 18:36:02 +01:00
Beka Rice
0e1a926721
Fire wc_paying_customer for completed orders, too
2019-04-29 13:06:32 -04:00
Gerhard
cbfea2ec24
Also apply version caching to wc_get_template
2019-04-29 15:37:50 +02:00
Gerhard
8a0cf500d6
Version template caching to avoid issues with symlinked plugins in versioned folders.
2019-04-29 15:04:08 +02:00
Rodrigo Primo
45c2c78ea2
Fix: parameter values should be converted back as well when building form fields
...
PR #23196 added a workaround to `parse_str()` limitation when dealing with full-stops, pluses, and spaces in the parameter key. This workaround involved temporarily replacing those three characters with placeholders before calling `parse_str()` and then replacing back to the original form. This commit fixes a bug in this logic that was replacing back only parameters keys and not parameters values.
For example, if the query string is `?query.parameter=foo.bar`, the resulting <input> field contained `foo{dot}bar`, instead of the expected `foo.bar`.
2019-04-26 13:58:27 -03:00
Mike Jolley
0cd5c1da66
Allow stock to be force read without a change
2019-04-26 17:24:11 +01:00
Mike Jolley
ae7436d37c
Select for update, returning the new stock value
2019-04-26 17:23:45 +01:00
Mike Jolley
1a1b3e7654
Improved wc_update_product_stock
...
Allow product object to be passed through, remove cache clearing which is done during save(), and allow the caller to define whether or not an update routine is already in progress.
2019-04-26 17:20:50 +01:00
Mike Jolley
a7279bd261
Revert double saving change
2019-04-26 17:19:41 +01:00
Mike Jolley
afdd2fe7b1
define wpdb tables as early as possible, before init
2019-04-26 14:03:23 +01:00
parmarhardip
6b92769626
Fixes #23521 - Billing Email and Country now autofill for newly registered customers
2019-04-26 17:21:40 +05:30
Paul Sealock
ef12058326
Tracks: Fix OBW scripts
2019-04-26 09:54:13 +12:00
Rodrigo Primo
00128fec58
Fix dismiss button in two WC admin notices
...
The dismiss button in the WC admin notices `legacy_shipping` and `no_shipping_methods` was not fully clickable due to a custom CSS applied to them. This custom CSS was used to add a background image to those notices. More specifically, the problem was caused by the use of `position: relative` applied to `<p>` elements. I couldn't find an easy way to fix this problem keeping the custom background image, so I opted to remove it to make the design of all notices identical (besides the background image, the custom CSS also added a few other differences to those to notices like the font size of the notice title).
2019-04-25 14:19:35 -03:00
Rodrigo Primo
5c1936bfdd
PHPCS fixes
2019-04-25 14:12:45 -03:00
Rodrigo Primo
0785f2b72a
Bump default WC API version used when creating webhook
...
This commit bumps the default WC API version used when users are creating a new webhook. Before this change the default version would be v2, and after this change it is v3 which is the latest API version.
In the future we might want to create a method in WC_API class or somewhere else that returns the latest WC API version and use it in `includes/class-wc-webhook.php` instead of hard-coding the version number.
2019-04-25 11:41:31 -03:00
Peter Fabian
abf1b7450d
Save the product before calling wc_update_product_stock to ensure data consistency and set quantity in local copy after saving it to db in wc_update_product_stock.
...
wc_update_product_stock reads product from the db twice, so if it's out of sync, strange things are happening.
Also, changes dependant on stock status might get reverted if local copy of $product is not updated after wc_update_product_stock.
2019-04-25 14:57:08 +02:00
parmarhardip
8ffd78372f
- coding standard improve
2019-04-25 10:25:17 +05:30
Claudio Sanches
79ff1b10e7
Stop removing backslash from passwords
2019-04-24 19:37:07 -03:00
Mike Jolley
036a91d20c
Merge pull request #23484 from woocommerce/update/marketplace-queue-handling
...
Marketplace queue handling - avoid recurring event
2019-04-24 17:00:40 +01:00
Mike Jolley
7795ac53ff
Merge pull request #23486 from woocommerce/fix/23475
...
Improved batching for _wc_rating_count lookup table
2019-04-24 16:37:00 +01:00
Mike Jolley
9776e346b3
cancel_all
2019-04-24 16:28:28 +01:00
Mike Jolley
1efcecddc5
Merge pull request #23469 from dfeuster/master
...
corrected anchor href from old codex to new location
2019-04-24 16:11:32 +01:00
Mike Jolley
ac0229c68a
Merge pull request #23397 from oskosk/update/jetpack-tracks-client-library-filepath
...
Update Jetpack Tracks Client library reference to not have a hardcoded directory path.
2019-04-24 16:08:54 +01:00
Mike Jolley
9bf2081869
Merge pull request #23477 from woocommerce/fix/23466
...
Default category sorting order should be overwritten if defined by get_terms
2019-04-24 16:00:33 +01:00
Mike Jolley
37e362047c
Merge pull request #23483 from woocommerce/fix/23481
...
Correct postcode validation on account page
2019-04-24 15:57:05 +01:00
Mike Jolley
087f490b10
Merge pull request #23489 from woocommerce/fix/23414
...
update action scheduler to version 2.2.5
2019-04-24 15:48:58 +01:00
Mike Jolley
e7ea67da03
Merge pull request #23399 from woocommerce/renovate/woocommerce-block-library-2.x
...
Update dependency @woocommerce/block-library to v2.0.1
2019-04-24 15:42:16 +01:00
Mike Jolley
0962b447f6
Merge pull request #23482 from woocommerce/fix/23473
...
Fix attribute matching in `get_attribute_taxonomy_name`
2019-04-24 15:40:13 +01:00
Mike Jolley
4518bff6b1
Merge pull request #23444 from woocommerce/fix/23443
...
Order webhook check order type args if we should skip
2019-04-24 14:57:07 +01:00
Mike Jolley
98dfb8e8c2
Merge pull request #23446 from woocommerce/fix/23439
...
Product list table shipping class tax_query
2019-04-24 14:56:00 +01:00
Mike Jolley
c42750504d
Merge pull request #23377 from woocommerce/fix/23374
...
[3.6] Fix product class name theme conflict due to missing global
2019-04-24 14:54:34 +01:00
Mike Jolley
2810e6cdf3
Merge pull request #23451 from woocommerce/fix/23387
...
Array handling in `get_catalog_ordering_args` to prevent notices
2019-04-24 14:52:47 +01:00
Mike Jolley
b2e428d4cc
Merge pull request #23455 from woocommerce/update/23388
...
During initial product lookup table generation, set an option
2019-04-24 14:51:47 +01:00
Mike Jolley
fbdc06188a
Merge pull request #23449 from woocommerce/fix/23436
...
Wrap wc_terms_clauses query in brackets to group meta_key where clause
2019-04-24 14:50:41 +01:00
Mike Jolley
9d9f7bec59
Merge pull request #23383 from woocommerce/update/update-notices
...
[3.6] More useful update notices if cron is disabled
2019-04-24 14:49:44 +01:00
Mike Jolley
3d2be7a63f
Merge pull request #23465 from woocommerce/fix/23403
...
Updated the meta_key for average rating when generating lookup tables.
2019-04-24 14:47:47 +01:00
Mike Jolley
7e091b2a0d
Merge pull request #23457 from woocommerce/fix/23407-2
...
Fixed use of get_term_meta in REST API endpoints
2019-04-24 14:34:28 +01:00
parmarhardip
7b8d7d7390
- autoload false and check Travis CI build
2019-04-24 19:03:19 +05:30
Mike Jolley
ab5ff7576d
Merge pull request #23380 from woocommerce/fix/23378
...
Added missing wp_unslash to order data meta box save
2019-04-24 14:31:14 +01:00
Ron Rennick
fc86e574cd
update action scheduler to version 2.2.5
2019-04-24 10:08:06 -03:00
Mike Jolley
192fecc0d8
Remove filter only needs priority
...
Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
2019-04-24 13:54:12 +01:00
Mike Jolley
6176f565d7
Improved batching for _wc_rating_count lookup table
2019-04-24 13:37:15 +01:00
parmarhardip
4c90f566bb
- Prevent the Cart, checkout and my account page from being set to the same page.
2019-04-24 17:31:20 +05:30
Mike Jolley
618e98f4e0
Avoid queue on init
2019-04-24 13:00:23 +01:00
Mike Jolley
db67172b75
Queue single event only as needed
2019-04-24 13:00:16 +01:00
Mike Jolley
c523c379b4
Correct postcode validation on account page
2019-04-24 12:23:48 +01:00
Mike Jolley
76f0c015dd
Fix attribute matching in get_attribute_taxonomy_name
2019-04-24 12:05:44 +01:00
parmarhardip
2122a84d8b
- coding standard check
2019-04-24 16:34:28 +05:30
parmarhardip
f643c516d1
enhance #23381 Prevent the Cart, checkout and my account page from being set to the same page.
2019-04-24 15:59:14 +05:30
Mike Jolley
f24a607842
Force delete rather than trash variations on product type change
2019-04-24 11:16:41 +01:00
Mike Jolley
121f06b030
Added way of telling if default is in use or not
2019-04-24 10:39:00 +01:00
oskosk
120fdb2028
Use jetpack_require_lib_dir() instead of JETPACK__PLUGIN_DIR
2019-04-23 20:40:25 -03:00
Daniel Feuster
dfe8ac43bf
corrected anchor href from old codex to new location
2019-04-23 16:54:44 -05:00
Claudio Sanches
59f63f1b22
Return WP_Error messages from wp_insert_user()
2019-04-23 18:52:22 -03:00
Claudio Sanches
02863a2b00
Merge branch 'fix/23407' of https://github.com/strelkovk/woocommerce into fix/23407-2
2019-04-23 16:20:36 -03:00
Claudio Sanches
eeb6f5d15c
Revert changes on includes/api/class-wc-rest-product-categories-controller.php
2019-04-23 16:19:41 -03:00
Peter Fabian
24a5c70b5b
Updated the meta_key for average rating when generating lookup tables.
2019-04-23 19:29:38 +02:00
Mike Jolley
04e51191c4
Pass $class
2019-04-23 18:06:09 +01:00
Mike Jolley
246596dec0
Put the post_class back to avoid breaking bw compat. Append core classes on top
2019-04-23 18:04:20 +01:00
Claudio Sanches
0fdf47294a
Fixed use of get_term_meta in REST API endpoints
...
Part of #23408
2019-04-23 12:48:03 -03:00
Ron Rennick
130ebf95cd
phpcs sniff fixes for class-wc-admin.php
2019-04-23 12:07:02 -03:00
Ron Rennick
d2d342f30e
disable export of scheduled action posts
2019-04-23 12:03:30 -03:00
Mike Jolley
57929f2b09
During initial lookup generation set option
2019-04-23 15:23:47 +01:00
Mike Jolley
f20a48b1e4
Merge pull request #23417 from szepeviktor/patch-1
...
get_total_refunded should return a float
2019-04-23 14:18:30 +01:00
Mike Jolley
867f6ce7ad
Merge pull request #23418 from szepeviktor/patch-2
...
Refunds are WC_Order_Refund
2019-04-23 12:24:20 +01:00
Mike Jolley
6c36c71a65
Remove red styling
2019-04-23 12:10:07 +01:00
Mike Jolley
6589c04dab
Merge branch 'update/update-notices' of https://github.com/woocommerce/woocommerce into update/update-notices
2019-04-23 12:01:18 +01:00
Mike Jolley
3cb3d5df4e
Prevent tab causing extra white space
2019-04-23 12:01:13 +01:00
Mike Jolley
5c07e38641
Array handling
2019-04-23 11:53:07 +01:00
Mike Jolley
49f79c9593
Wrap wc_terms_clauses query with brackets
2019-04-23 11:14:50 +01:00
Gerhard
0f00eb9a79
Fix product list table shipping class tax_query
2019-04-23 11:19:07 +02:00
Gerhard
53cabdf5fe
Include check for order type args when checking if webhook is valid resource.
2019-04-23 10:43:49 +02:00
Viktor Szépe
b1476ba497
Fix coding style
...
in class-wc-order-refund-data-store-cpt.php
2019-04-22 23:05:34 +02:00
Dovid Levine
3ad9fb32be
Add data-input-classes to state field
2019-04-22 19:18:48 +03:00
Rodrigo Primo
ac70d1e9b2
Fix copy and paste error in code documentation
2019-04-22 11:43:09 -03:00
Milan Dinić
9c8327bdaa
Do not use state for Serbia.
2019-04-21 22:43:47 +02:00
Viktor Szépe
babb5ab18e
Refunds are WC_Order_Refund
...
props. @phpstan
2019-04-21 21:55:13 +02:00
Viktor Szépe
4e4dad0581
get_total_refunded should return a float
...
props. @phpstan
2019-04-21 21:36:31 +02:00
Milan Dinić
67cf3062c0
Add address format for Serbia.
2019-04-21 20:28:58 +02:00
strelkov
63d6ded7aa
Fix for get categories endpoint
...
to get proper display mode, image and order
issue
https://github.com/woocommerce/woocommerce/issues/23407
2019-04-20 11:37:23 +02:00
Beka Rice
84d03d3bf9
Tweak: update paying customer information on payment complete
2019-04-19 14:21:17 -04:00
Kelly Dwan
60752fd68b
Build blocks from `@woocommerce/block-library`
2019-04-19 13:20:14 -04:00
oskosk
d6c8c2f389
Rely on the JETPACK__PLUGIN_DIR to load the Jetpack Tracks client file
2019-04-19 12:24:29 -03:00
Luis
99d85a2c02
Changing HTML string to template call
...
template/content-widget-price-filter.php
2019-04-19 00:18:24 -03:00
Mike Jolley
7ef1fd5ea6
More useful update notices
2019-04-18 20:06:17 +01:00
Mike Jolley
662af85bea
cleanup and docs
2019-04-18 19:33:48 +01:00
Mike Jolley
7737fc5928
remove post_class and implement woocommerce_post_class
2019-04-18 19:27:00 +01:00
Mike Jolley
d411f082d7
Added missing wp_unslash
2019-04-18 18:52:51 +01:00
Mike Jolley
3dc0fcb0c7
Merge pull request #23370 from woocommerce/fix/23368
...
Check isset rather than empty so cart title can be removed
2019-04-18 18:39:06 +01:00
Mike Jolley
f703c959e4
Merge pull request #23372 from woocommerce/fix/is_request_to_rest_api
...
is_request_to_rest_api check wc endpoints only
2019-04-18 18:36:48 +01:00
Mike Jolley
fbaaa319dd
Use global product if null
2019-04-18 17:25:13 +01:00
Mike Jolley
0738b332fc
Merge pull request #23349 from woocommerce/add/structured-data-offercount
...
Adds offerCount to variable product's structured data.
2019-04-18 14:29:57 +01:00
Mike Jolley
9206d6f4dd
Merge pull request #23363 from woocommerce/fix/23361
...
Better iconv support handling in wc_ascii_uasort_comparison
2019-04-18 14:27:46 +01:00
Mike Jolley
f0c30406a3
is_request_to_rest_api check wc endpoints only
2019-04-18 14:23:12 +01:00
Mike Jolley
1274136b32
Check isset rather than empty so cart title can be removed
2019-04-18 13:10:42 +01:00
Mike Jolley
f306d3fc11
Merge pull request #23266 from woocommerce/fix/23234
...
Switch to subquery for sale product query
2019-04-18 12:36:22 +01:00
Mike Jolley
b1ece1452c
Merge pull request #23365 from woocommerce/make-greece-state-optional
...
Make state/county optional for Greece
2019-04-18 12:17:44 +01:00
Mike Jolley
e1e13dee91
merge conflict
2019-04-18 12:06:13 +01:00
Mike Jolley
2033a231a4
Update from master
2019-04-18 12:05:23 +01:00
Mike Jolley
8d5d7b2463
Update from master
2019-04-18 11:56:47 +01:00
Mike Jolley
44d129e452
Merge pull request #23334 from woocommerce/fix/23328
...
Revert selectWoo escaping change
2019-04-18 11:51:11 +01:00
Mike Jolley
3aff19afe7
version bump
2019-04-18 11:47:07 +01:00
Mike Jolley
f66e523c5f
Merge pull request #23250 from Spreeuw/patch-7
...
Add $this parameter to email class filters
2019-04-18 11:35:51 +01:00
Mike Jolley
ccc45852fc
Merge pull request #23272 from franticpsyx/optimize-get-available-variations
...
Prime post caches to reduce queries needed to populate variations data
2019-04-18 11:34:20 +01:00
Mike Jolley
cafd81e6e5
Merge pull request #23329 from woocommerce/fix/23327
...
Non int value handling in wc_let_to_num
2019-04-18 11:30:57 +01:00
Mike Jolley
ceefe98bd0
Merge pull request #23297 from dkjensen/master
...
Remove tags from product titles when building PayPal request URL
2019-04-18 11:23:55 +01:00
Gerhard
c601d20b57
Fix alignment
2019-04-18 12:22:22 +02:00
Mike Jolley
5c91dac198
Merge pull request #23236 from woocommerce/fix/23219
...
Added is-active class to Orders when looking at individual order
2019-04-18 11:22:11 +01:00
Mike Jolley
2f850633a5
Merge pull request #23251 from woocommerce/fix/23239
...
CSV Import: Search for 'number' anywhere in cell, not just the end
2019-04-18 11:21:14 +01:00
thomas shellberg
6f4217e429
make state/county option for Greece
2019-04-18 12:21:06 +02:00
Gerhard
6026d2b9bf
Typecast is sufficient enough
2019-04-18 12:20:59 +02:00
Mike Jolley
442ce26591
Merge pull request #23270 from jenkoian/fix-network-orders-widget
...
Bug - Fix for network orders widget when WooCommerce is network active.
2019-04-18 11:20:06 +01:00
Mike Jolley
180a0aaf8d
Merge pull request #23238 from woocommerce/fix/23224
...
Updated back to link for attribute terms.
2019-04-18 11:13:20 +01:00
Mike Jolley
f0c5209f2b
Merge pull request #23249 from woocommerce/fix/23247
...
Avoid post update in `wc_update_product_stock`
2019-04-18 11:10:36 +01:00
Mike Jolley
e7a6c51e61
Merge pull request #23201 from woocommerce/fix/23168
...
Add check for VAT exemption inside `display_prices_including_tax`
2019-04-18 11:03:52 +01:00
Mike Jolley
b686150655
Merge pull request #23196 from woocommerce/fix/23195
...
Replace full stops before running through `parse_str`
2019-04-18 11:01:59 +01:00
Mike Jolley
19a1a7d7db
Merge pull request #23132 from woocommerce/fix/23127
...
Attribute renaming: Fix migration queries
2019-04-18 10:58:07 +01:00
Mike Jolley
262eef64f5
Merge pull request #23339 from woocommerce/fix/23337
...
Correctly handle images in v3 api
2019-04-18 10:55:24 +01:00
Mike Jolley
e64e927aab
Merge pull request #23356 from leonaves/patch-1
...
Fix security check on email template preview page.
2019-04-18 10:51:01 +01:00
Gerhard
f87df5c95a
Swap flag around to ensure it tries TRANSLIT first, also silence notices should they pop up for some reason
2019-04-18 09:51:14 +02:00
Gerhard
bedde9377c
Better iconv support checking
2019-04-18 09:37:01 +02:00
Gerhard
10acd7a290
Use //IGNORE instead of //TRANSLIT due to it relying on server config which would ignore the flag and throw notices.
2019-04-18 09:26:39 +02:00
Leon Aves
60148d7f8f
Fix security check on email template preview page.
...
The nonce generated on the previous page was not being verified properly due to mismatched brackets (the second argument to wp_verify_nonce was not being passed).
2019-04-18 00:08:00 +01:00
Mike Jolley
b697be51d4
Remove call to header_register_callback and revert to 3.5 cookie handling
2019-04-17 23:50:42 +01:00
Claudio Sanches
669542ed7d
Adds offerCount to variable product's structured data
2019-04-17 14:04:52 -03:00
Mike Jolley
33b1c4205b
Fix cart tests - move round so taxes are correct
2019-04-17 16:49:46 +01:00
Timmy Crawford
763d3aec33
Merge pull request #23332 from woocommerce/fix/tracks-cookie-save
...
Set tracks cookie on wp hook instead on when calling record event.
2019-04-17 06:20:24 -07:00
Gerhard
9ad8ef56da
Be sure to also print the wp script since the OBW does not include those by default in the footer.
2019-04-17 14:56:51 +02:00
Gerhard
fee86cd8cd
Move JS to woocommerce_setup_footer and do not output wp scripts.
2019-04-17 14:54:59 +02:00
Gerhard
5c7b069d17
Use wp_loaded for cookie set
2019-04-17 14:23:19 +02:00
Gerhard
f65f7a6d59
Remove wc_setcookie usage in WC_Tracks_Client::get_anon_id
2019-04-17 14:20:21 +02:00
Mike Jolley
111684ef32
Correctly handle images in v3 api
2019-04-17 13:18:33 +01:00
Mike Jolley
47eee0143f
Restore order note on exception
2019-04-17 13:07:52 +01:00
Mike Jolley
6e5f1e2059
Switched conditon by accident
2019-04-17 12:57:02 +01:00
Mike Jolley
e354bb90aa
Pass objects to new/update actions
2019-04-17 12:50:46 +01:00
Mike Jolley
a0d4f6174c
Consistent CRUD classes with before/after save hooks
2019-04-17 12:47:35 +01:00
Mike Jolley
f18542aa71
remove slash from currency code string
2019-04-17 12:06:57 +01:00
Mike Jolley
4e50a8f6dd
Escape strings passed to selectwoo
2019-04-17 12:02:20 +01:00
Gerhard
00e8aeef60
Use __CLASS__ instead of self
2019-04-17 11:51:07 +02:00
Gerhard
c74df4ca11
Set tracks cookie on wp hook instead on when calling record event.
2019-04-17 11:39:50 +02:00
Gerhard
8ca0bd7b4d
Add logic to wc_let_to_num to handle non int values, added unit tests to cover these scenarios
2019-04-17 10:30:49 +02:00
Claudio Sanches
0f9ff3d70b
[REST API] Stops order creating if returns any error
...
Prevents orders of been created if a WC_Data_Exception or a WC_REST_Exception was throwed.
2019-04-17 00:36:20 -03:00
Mike Jolley
9863362de3
Merge pull request #23315 from woocommerce/update/changes-from-3.5.8
...
Merge changes from 3.5.8
2019-04-16 14:57:50 +01:00
Mike Jolley
d959758abe
Merge pull request #23311 from woocommerce/replace-deprecated-function
...
Replace call to deprecated function delete_woocommerce_term_meta()
2019-04-16 14:57:05 +01:00
Mike Jolley
7efe831e72
Merge pull request #23308 from webdados/patch-2
...
Stop using update_woocommerce_term_meta on class-wc-rest-product-categories-controller.php
2019-04-16 14:55:52 +01:00
Rodrigo Primo
20e9701583
Bump selectWoo.full.js version
2019-04-16 14:33:31 +01:00
Gerhard
86ec50f359
Update all *_woocommerce_term_meta calls to *_term_meta calls
2019-04-16 12:14:51 +02:00
Rodrigo Primo
a18c44d76e
Replace call to deprecated function delete_woocommerce_term_meta()
...
This commit replaces a call to deprecated function `delete_woocommerce_term_meta()` with its replacement `delete_term_meta()`. `delete_woocommerce_term_meta()` was deprecated by 32ae0192e5
and all calls removed, but PR #22553 that was created about the same time added a new call to this function.
2019-04-15 15:33:27 -03:00
Timmy Crawford
bf151aee3e
Merge pull request #23303 from woocommerce/fix/23232
...
Refactor #23300
2019-04-15 11:21:00 -07:00
Timmy Crawford
08c7bee019
Merge pull request #23295 from woocommerce/fix/23291
...
Check `get_plugin_data` exists in `WC_REST_System_Status_V2_Controller`
2019-04-15 11:18:41 -07:00
Timmy Crawford
acc1600594
Merge pull request #23302 from woocommerce/remove/tracks-total-revenue
...
[3.6] Blocker - remove total revenue from Tracks events.
2019-04-15 11:17:51 -07:00
Timmy Crawford
e12e4aaa25
Merge pull request #23304 from woocommerce/fix/link-all-variations
...
[3.6] Fix logic in link all variations
2019-04-15 11:16:22 -07:00
Timmy Crawford
f735883c80
Merge pull request #23306 from JPry/issue_23305
...
Update Action Scheduler library to 2.2.4
2019-04-15 11:10:42 -07:00
Timmy Crawford
438d22762e
Merge pull request #23246 from franticpsyx/issue-23245
...
Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products
2019-04-15 11:08:32 -07:00
Marco Almeida
1a251c82ad
Stop using update_woocommerce_term_meta
...
Stop using the update_woocommerce_term_meta helper function as it has been deprecated on 3.6.0
2019-04-15 17:54:19 +01: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
Jeremy Pry
745ebffbdd
Merge commit '98433d8c3095fa393389988d16e56fe1d302af63' into issue_23305
...
Updates the Action Scheduler library to version 2.2.4.
* commit '98433d8c3095fa393389988d16e56fe1d302af63':
Squashed 'includes/libraries/action-scheduler/' changes from 4d221dc6d..f5643fe30
2019-04-15 10:47:01 -04:00
Mike Jolley
558e96fdb9
parse_tax_status_field
2019-04-15 15:08:25 +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
Mike Jolley
6c6785c844
Merge pull request #23269 from marcochiesi/patch-1
...
Added validation for Italian postcodes
2019-04-15 14:10:01 +01:00
Mike Jolley
1504f8af3e
Merge pull request #23011 from Tofandel/patch-2
...
Improve the speed of the admin dashboard by only updating transients once per class
2019-04-15 14:03:31 +01:00
Mike Jolley
58161c0ccc
Merge pull request #23122 from fpcuriosity/patch-1
...
Add taxonomy-specific classes to active filters widget
2019-04-15 13:31:35 +01:00
Mike Jolley
c7412415e5
Merge pull request #23092 from woocommerce/fix/23089
...
Use version_compare for determining max version number
2019-04-15 13:29:29 +01:00
Mike Jolley
2152642146
Merge pull request #23152 from uok/patch-1
...
Format empty cart message as information notice
2019-04-15 13:27:17 +01:00
Mike Jolley
30129f00ff
Fix issue in tests by disabling strict mode
2019-04-15 12:10:22 +01:00
Mike Jolley
d0c6c54989
Moved link/create code to data store with new unit test
...
This code was not testable within ajax code, so moved to the data stores.
2019-04-15 11:59:57 +01:00
Gerhard
134f9c9c8e
Fix PHPCS
2019-04-15 12:13:02 +02:00
Ralf
66540f1b5d
Moved accessibility labels for checkout after woocommerce_checkout_fields filter
2019-04-15 12:09:33 +02:00
Jeff Stieler
13e40cdee7
Remove total revenue from Tracks events.
...
Query to calculate is far too expensive and doesn’t seem to ever get cached with large datasets.
2019-04-15 09:37:34 +02:00
David Jensen
9b58e68e85
Remove html tags from product name in request to PayPal
2019-04-12 12:36:30 -07:00
Mike Jolley
4e8342be38
Check get_plugin_data exists
2019-04-12 15:34:52 +01:00
Manos Psychogyiopoulos
d4f8435106
Prime post caches before looping through variations
...
Should help when the AJAX variations threshold is set higher.
2019-04-11 10:59:34 +03:00
Ian Jenkins
fa3637c4f1
Bug - Fix for network orders widget when WooCommerce is network active.
...
Network orders makes most sense when WooCommerce is installed as a
network wide plugin. This change fixes the widget when it is network
active.
2019-04-10 22:58:51 +01:00
Marco Chiesi
e2dd7504d0
Added validation for Italian postcodes
2019-04-10 23:44:50 +02:00
Ewout Fernhout
794ba844b2
store tax rate percent in tax items
2019-04-10 17:35:43 +02:00
Ewout Fernhout
1ea6d7d3f8
separate getter for rate percent & percent value
2019-04-10 17:27:48 +02:00
Gerhard
96906d9efa
PHPCS Fixes
2019-04-10 14:53:03 +02:00
Mike Jolley
fe385c9f74
fix query by adding alias
2019-04-10 13:48:03 +01:00
Gerhard
8716c7451c
PHPCS fixes
2019-04-10 14:29:40 +02:00
Mike Jolley
2e24cc7b0c
Switch to subquery for sale product query
2019-04-10 12:43:22 +01:00
Mike Jolley
dfcc5e16e5
update wording
2019-04-10 11:51:41 +01:00
Mike Jolley
945ff7958f
Merge pull request #23101 from woocommerce/update/23090
...
Add table ENGINE to system status report
2019-04-10 11:32:51 +01:00
Mike Jolley
deaaa5d1d8
Remove two old moved-feature notices
2019-04-10 11:23:35 +01:00
Mike Jolley
91084f3e28
Add todo for legacy shipping notice
2019-04-10 11:23:04 +01:00
Mike Jolley
244156c0be
check if sku or id column exists when updating products from csv
2019-04-10 11:11:40 +01:00
David Wampamba
1e09a7cfb6
Errors fixed
2019-04-10 13:03:30 +03:00
haszari
7ede25add7
use admin_url to generate manage suggestions url (support multisite etc)
2019-04-10 12:16:49 +12:00
haszari
cd9101bb58
fix target url of 'Manage Suggestions', settings are now in 'Advanced'
2019-04-10 12:02:09 +12: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
Timmy Crawford
8bccfcca1a
more phpcs fixes.
2019-04-09 11:34:34 -07:00
Timmy Crawford
81c679181c
PHPCS fixes.
2019-04-09 10:18:47 -07:00
Timmy Crawford
f2b55bf060
Move suggestions/tracks settings to new Advanced | WooCommerce.com page.
2019-04-09 09:38:26 -07:00
Mike Jolley
91e21644cf
Style descriptions after select2 boxes
2019-04-09 15:02:05 +01:00
Mike Jolley
cb27b40c67
Search for 'number' anywhere in cell, not just the end
2019-04-09 14:37:46 +01:00
Ewout Fernhout
ca00798dd1
add $this to invoice email filters
2019-04-09 15:24:17 +02:00
Ewout Fernhout
6e2f1736ce
add $this to refunded order email filters
2019-04-09 15:22:26 +02:00
Ewout Fernhout
fafc829c4d
Add $this parameter to email class hooks
...
see #23209
2019-04-09 15:19:21 +02:00
Mike Jolley
0cd429dad9
Avoid post update in wc_update_product_stock
2019-04-09 12:47:51 +01:00
David Wampamba
bc6cbfcadc
Spaces fixed
2019-04-09 13:59:49 +03:00
Manos Psychogyiopoulos
861d42f368
Fix IN type
2019-04-09 05:48:08 +03:00
Manos Psychogyiopoulos
b1d7b2c6d0
Refactor json_search_downloadable_products_and_variations
2019-04-09 05:41:49 +03:00
Manos Psychogyiopoulos
f6c560d684
Introduce IN and NOT IN clauses in `WC_Product_Data_Store_CPT::search_products`
...
closes #23245
2019-04-09 05:33:50 +03:00
haszari
36f1dbf7fb
ensure no-suggestions state "manage" link triggers tracks event
2019-04-09 13:53:25 +12:00
Timmy Crawford
b35945c5f5
PHPCS fix.
2019-04-08 17:21:50 -07:00
Timmy Crawford
e4552c571d
Only show suggestions setting when current user can install_plugins
2019-04-08 16:27:32 -07:00
Timmy Crawford
ae66f195a5
Add link to manage suggestions in default/empty view
2019-04-08 16:24:52 -07:00
Timmy Crawford
4a2c706cc0
Add setting to control display of marketplace suggestions.
2019-04-08 16:24:52 -07:00
Timmy Crawford
616af5c28d
Merge pull request #23216 from woocommerce/update/tracks-opt-out
...
[3.6] Update opt-out usage tracking text.
2019-04-08 14:27:08 -07:00
Timmy Crawford
7ac179f7b8
Merge pull request #23229 from woocommerce/add/manage-suggestions-metabox-link
...
[3.6] Add manage suggestions link into browse-all metabox footer
2019-04-08 13:59:35 -07:00
Timmy Crawford
b4352c8b32
Merge pull request #23203 from woocommerce/update/23199
...
[3.6] Prevent removal of the wc- prefix from non core order statuses
2019-04-08 12:13:11 -07:00
Timmy Crawford
886d1acca5
Updates to usage tracking text per feedback.
2019-04-08 12:00:11 -07:00
Timmy Crawford
57de03a7d0
Merge pull request #23231 from woocommerce/fix/tracks-issues
...
[3.6]Tracks: various fixes
2019-04-08 11:09:38 -07:00
Timmy Crawford
06bec2e845
Merge pull request #23210 from woocommerce/update/fb-recommendation-end-date
...
[3.6] OBW: Display FB recommendation until removed
2019-04-08 10:32:32 -07:00
Timmy Crawford
ef4f0f0c0f
Merge pull request #23197 from woocommerce/fix/23182
...
[3.6] Fix backwards compatibility issues for wc_get_template function w/ tests
2019-04-08 10:19:16 -07:00
Peter Fabian
eb99d0f152
Updated back to link for attribute terms.
2019-04-08 18:37:23 +02:00
Peter Fabian
36d2c96faa
Added is-active class to Orders when looking at individual order under My Account.
2019-04-08 16:49:44 +02:00
Peter Fabian
f757c6c60d
PHPCS fixed.
2019-04-08 16:48:57 +02:00
Paul Sealock
1d7cd1722a
Tracks: various fixes
2019-04-08 15:58:03 +12:00
haszari
d2ff99189c
enqueue translatable string for `Manage suggestions` link
2019-04-08 15:45:41 +12:00
Mark Senff
0185795319
Update html-product-attribute.php
2019-04-07 09:42:27 -04:00
Timmy Crawford
72b9555706
Update opt-out usage tracking text.
2019-04-05 12:59:32 -07:00
Valerie
0d1c1ec7b6
OBW: Display FB recommendation until removed
...
Instead of ending the FB recommendation on
a specific date we'll remove it when needed.
2019-04-04 13:34:40 -04:00
Mike Jolley
7e3eec3ed6
Added parse_published_field
2019-04-04 12:21:38 +01:00
Mike Jolley
1cd2959087
unset rather than prevent the template being included.
2019-04-03 16:08:12 +01:00
Mike Jolley
274a471167
Merge pull request #23194 from woocommerce/fix/23171
...
[3.6] Fix results from wp_term_counts when sorting by menu_order
2019-04-03 15:46:01 +01:00
Mike Jolley
9ea63486e6
Add get_post_status helper method and ensure prefix gets added for most statuses
2019-04-03 14:21:38 +01:00
Mike Jolley
b1a811ca46
Replace spaces
2019-04-03 11:58:08 +01:00
Mike Jolley
11db10807d
Add check for VAT excemption inside display_prices_including_tax
2019-04-03 11:36:43 +01:00
Mike Jolley
5ed25e1734
Notice if args are attempted to replace
2019-04-02 15:17:52 +01:00
Mike Jolley
51b3e4f213
Use action_args rather than $template variable which could have been overwritten
...
Co-Authored-By: dinhtungdu <dinhtungdu@gmail.com>
2019-04-02 14:07:48 +01:00
Mike Jolley
a66adf0829
Replace full stops before parse_str
2019-04-02 13:58:37 +01:00
Mike Jolley
2f0b8cced5
Flip logic so counts ignore sorting rules
2019-04-02 11:56:47 +01:00
David Wampamba
5de3d4d18b
Merge branch 'master' into master
2019-04-02 13:40:27 +03:00
Paul Sealock
2d244a8047
Tracks: Status page events
2019-04-02 16:51:48 +13:00
Mike Jolley
b1e71074b2
Merge pull request #23174 from szepeviktor/patch-2
...
Fix stray char in PHPDoc of WC_Coupon
2019-04-01 12:46:28 +01:00
David Wampamba
96c53643bb
Update class-wc-countries.php
...
Uganda locale
2019-03-30 16:49:44 +03:00
David Wampamba
6588a67fa4
Update class-wc-countries.php
...
Line 422: Uganda(UG) address format
2019-03-30 16:45:54 +03:00
Iskander (Alex) Sharipov
00f5b24e33
fix strpos arguments order
...
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-03-30 03:39:50 +03:00
Viktor Szépe
9e7fc0a35d
Fix stray char in PHPDoc of WC_Coupon
...
`|`
2019-03-30 00:48:17 +01:00
Viktor Szépe
bd6a348af5
Fix PHPDoc in WC_Product_Importer
...
old stuff
2019-03-30 00:35:32 +01:00
Timmy Crawford
ae1841a82c
Merge pull request #23162 from thenbrent/fix/23121
...
Update Action Scheduler to v2.2.3
2019-03-28 07:42:55 -07:00
Brent Shepherd
f450c8d92a
Remove Action Scheduler development files
2019-03-28 15:33:41 +10:00
Brent Shepherd
fbfd91f6b9
Merge commit '2492f1e0ed366694059091f434743f52a6e5202d' as 'includes/libraries/action-scheduler'
2019-03-28 15:31:13 +10:00
Brent Shepherd
3e3d15e6cc
Remove non-subtree'd /action-scheduler/
2019-03-28 15:30:35 +10:00
Timmy Crawford
800ad318e3
OBW: Ensure tracker opt-in is always shown.
2019-03-27 15:29:55 -07:00
Timmy Crawford
4cad501098
Merge pull request #23146 from woocommerce/fix/22695
...
Update fallback download URL in helper
2019-03-27 15:01:10 -07:00
Timmy Crawford
0b113621a6
Merge pull request #23145 from woocommerce/fix/23107
...
Introduce `wc_create_new_customer_username` function
2019-03-27 14:59:24 -07:00
Timmy Crawford
9601bc64d1
Merge pull request #23138 from woocommerce/fix/23103
...
REST API: Adds future status to list of allowed statuses
2019-03-27 13:19:32 -07:00
Timmy Crawford
91d412f150
Merge pull request #23149 from woocommerce/update/23144
...
Update refund reason to make it clear refunding is manual
2019-03-27 13:18:53 -07:00
Timmy Crawford
eb106853c5
Merge pull request #23156 from woocommerce/fix/23121
...
5.2 fix from ActionScheduler
2019-03-27 13:18:14 -07:00
Rodrigo Primo
cbf6149cb9
Merge pull request #23069 from woocommerce/fix/23061
...
Variation stock status field handling (displaying/hiding when needed)
2019-03-27 14:51:26 -03:00
Rodrigo Primo
5d8ca32789
Merge pull request #23131 from woocommerce/fix/23118
...
`WC_Ajax::add_variation` force variable product type
2019-03-27 14:20:35 -03:00
Mike Jolley
0a61912a31
If orderby is used on static homepage, force page
2019-03-27 16:38:18 +00:00
Mike Jolley
4d5cda49c2
Hotfix for AS
...
Pulls in the fix from https://github.com/Prospress/action-scheduler/pull/268
2019-03-27 14:45:36 +00:00
Timmy Crawford
5a33e13432
Merge pull request #23151 from woocommerce/fix/emogrifier-conflict
...
Update Emogrifier class and usage
2019-03-27 07:27:14 -07:00
Mike Jolley
ad49085571
Append random number to reduce recusion
2019-03-27 12:22:15 +00:00
Mike Jolley
ded4f8bf3e
Use string to avoid 5.2 warning
2019-03-27 11:35:45 +00:00
Timmy Crawford
8b24528b16
Merge pull request #23102 from woocommerce/update/prevent-fatal-errors-when-extending-rest-api
...
If someone tries to load WC_REST class to early, throw notice
2019-03-26 17:19:06 -07:00
Ben S
c1a6cdb873
Format empty cart message as information notice
2019-03-26 18:35:21 +01:00
Mike Jolley
ea19f732fd
min/max functions instead of orderby
2019-03-26 14:41:27 +00:00
Mike Jolley
b09a5f8003
Update Emogrifier
2019-03-26 14:24:21 +00:00
Mike Jolley
a2576943a2
compare string
2019-03-26 14:08:14 +00:00
Mike Jolley
c79e3ad8f1
Detect all rest endpoints, not just wc/
2019-03-26 14:06:22 +00:00
Mike Jolley
8d3978e26b
wc_translate_user_roles
2019-03-26 13:56:06 +00:00
Mike Jolley
bdc009cfbf
Update refund reason to make it clear refunding is manual
2019-03-26 12:46:27 +00:00
Mike Jolley
3a8c3b3813
Update download URL in helper
2019-03-26 11:36:41 +00:00
Mike Jolley
2b8f8e38d1
wc_create_new_customer_username function
2019-03-26 11:09:37 +00:00
Mike Jolley
8aeff9bb2f
Adds future status to list of allowed statuses
2019-03-25 15:19:48 +00:00
Mike Jolley
eb45b94edb
Switch data_type
2019-03-25 15:10:56 +00:00
Mike Jolley
58651e8a2a
When moving data for lookup tables, avoid orderby
2019-03-25 14:23:36 +00:00
Mike Jolley
9907a25ff6
Append notice if variations are invalid
2019-03-25 13:30:04 +00:00
Mike Jolley
cb3134a563
phpcs
2019-03-25 12:45:38 +00:00
Mike Jolley
8e4807ac92
Correct keys when migrating attribute data
2019-03-25 12:27:18 +00:00
Mike Jolley
174ca94b79
WC_Ajax::add_variation - force variable product type
2019-03-25 11:56:48 +00:00
Francesco Pinto
69d4d9b221
Fixed Coding Standard
2019-03-23 20:58:36 +01:00
Francesco Pinto
d1df273f9e
Fixed Coding Standards
2019-03-23 20:28:58 +01:00
Francesco Pinto
c2bd9bcdf5
Add taxonomy-specific classes to active filters
2019-03-23 18:03:01 +01:00
Kelly Dwan
8c109f7925
Shortcut out if we see the feature plugin, v1.4 or below
2019-03-22 10:48:06 -04:00
Mike Jolley
a4ef8cccd2
Update persistent cart only when cart items are modified
2019-03-22 13:05:09 +00:00
Mike Jolley
921cc754b9
Improved usefulness of set_quantity
...
Due to the way set_quantity works there are multiple paths that can be taken and multiple hooks to monitor for updates. woocommerce_before_cart_item_quantity_zero for example was only fired when qty hits zero, however, there are other hooks to monitor which do the same thing (remove from cart) e.g. woocommerce_cart_item_removed.
This uses the `remove_cart_item` method so that hook is always fired, and zero hook is no longer needed.
Added woocommerce_after_cart_item_quantity_update action to capture the other cases (when qty is updated).
2019-03-22 13:04:47 +00:00
Mike Jolley
59c51fbebe
Only clear persistent cart if persistent cart is enabled
2019-03-22 11:44:27 +00:00
Mike Jolley
8ad8a4efa5
Deprecation functions should not output errors during REST requests.
2019-03-21 16:26:33 +00:00
Mike Jolley
3ff2c2f053
If someone tries to load WC_REST class to early, throw notice and include rest api classes
2019-03-21 15:38:29 +00:00
Mike Jolley
c5defa6a1e
Add engine to system status
2019-03-21 14:39:33 +00:00
Mike Jolley
db3b486442
Order by name and fix return value
2019-03-20 15:27:53 +00:00
Mike Jolley
f113d26e44
Update routine
2019-03-20 15:27:43 +00:00
Mike Jolley
d22ecd8fea
API should default to force
2019-03-20 15:27:31 +00:00
Mike Jolley
6944e73963
Update option definition
2019-03-20 15:27:19 +00:00
Mike Jolley
494c6ffdbd
Handle save
2019-03-20 15:27:07 +00:00
Mike Jolley
b387444136
Allow us to define a setting in API but not save as option
2019-03-20 15:26:38 +00:00
Mike Jolley
18266a6eb8
Use new helper functions in api classes
2019-03-20 14:21:39 +00:00
Mike Jolley
e900fa3b1e
Helper functions to get/delete/create tax classes in new table
2019-03-20 14:21:23 +00:00
Mike Jolley
a92a67dfca
Define table name in wpdb
2019-03-20 14:19:26 +00:00
Mike Jolley
5d1020300e
wc_tax_rate_classes table
2019-03-20 14:19:11 +00:00
Gerhard
778245bc43
Revert test
2019-03-20 16:06:11 +02:00
Gerhard
4edd63fedf
usort not uasort
2019-03-20 14:06:13 +02:00
Gerhard
fb0e2db448
Keep track of version numbers in seperate variable before sorting it
2019-03-20 14:05:12 +02:00
Gerhard
6234b7bd13
uasort does not return a value but instead works by reference.
2019-03-20 14:00:26 +02:00
Gerhard
b97e780b0b
Use version_compare for finding the latest version and not max as it is not string friendly.
2019-03-20 13:56:57 +02:00
Gerhard
fbe1bc7c1f
Move saving setting functionality to wp_loaded hook to avoid issues with menus loading before the setting is saved.
2019-03-20 13:34:02 +02:00
Mike Jolley
97f30e7f5c
Variation stock status handling
2019-03-18 12:56:49 +00:00
Mike Jolley
c19a39962a
Correct any handling
2019-03-18 12:09:37 +00:00
Mike Jolley
986375862e
Merge pull request #23057 from freer4/patch-1
...
Allow extension of WC_Breadcrumb class
2019-03-18 11:38:01 +00:00
Mike Jolley
4130f737fc
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-03-18 10:59:58 +00:00
Mike Jolley
4d975a6e62
Merge branch 'pr/23054'
2019-03-18 10:59:55 +00:00
Mike Jolley
cbb92ef86c
combine check
2019-03-18 10:59:43 +00:00
Mike Jolley
37bc893aba
Merge pull request #23039 from woocommerce/update/plugin-rating-notice-text
...
Update the rating request text in the footer to be friendlier for screen reader users
2019-03-18 10:38:53 +00:00
Gerhard
a7571c71c1
Fix typo in lookup table notice markup
2019-03-18 10:11:05 +02:00
freer4
701d92233c
Allow extension of WC_Breadcrumb class
...
Changing the private class methods to protected allows extending the class to work with the built-in functionality.
The desired effect - removing the "Shop" crumb - was not possible with the few filters available interspersed in this class.
After much hair-pulling over the simple task of excluding one breadcrumb and the stubborn refusal to copy-pasta the entire class into my theme, I choose to extend the WC_Breadcrumb class to override the already-public add_crumb method. Without access to the other methods on the class, this was futile.
There are several asks around the web for removing or updating the breadcrumbs. The accepted answer to these appears to be to "just hide it with CSS" which is a poor workaround.
2019-03-17 02:43:00 -04:00
Silicon Forks
19a7bb82a0
Fix image regeneration check when image is not cropped
...
Resolves #21800 .
2019-03-16 12:39:40 -03:00
Kelly Dwan
3f5aaad117
Update @woocommerce/block-library to 2.0.0-rc1
2019-03-15 13:06:38 -04:00
Lee Willis
3573beadc1
Allow matching of "any" attributes in find_matching_product_variation. Fixes #23042
2019-03-15 16:25:26 +00:00
Mike Jolley
6b82636e33
phpcs
2019-03-15 16:16:53 +00:00
Kelly Dwan
b066922c40
Update the rating request text in the footer to be friendlier for screen reader users
2019-03-15 12:05:27 -04:00
Mike Jolley
5ee5227dac
Hooks for all actitation and deactivation events
2019-03-15 16:02:55 +00:00
Mike Jolley
d6a38dce55
woocommerce_helper_subscription_deactivate_success
2019-03-15 15:45:50 +00:00
Mike Jolley
3f5f437b9e
woocommerce_helper_subscription_activate_success
2019-03-15 15:42:17 +00:00
Claudio Sanches
a425e92672
Removed legacy "Orders index" tool
2019-03-15 11:34:32 +00:00
Mike Jolley
ccc5805632
Use secure and http cookies
2019-03-15 11:34:10 +00:00
Mike Jolley
bd34e89314
Merge branch 'pr/23035'
2019-03-15 11:25:10 +00:00
Mike Jolley
0ae50509ce
code standards
2019-03-15 11:25:04 +00:00
Timmy Crawford
e1c09b4609
Merge pull request #22973 from woocommerce/update/22545
...
Revised sale start/end date save logic
2019-03-14 17:53:40 -07:00
Adrien Foulon
700d89f8ff
Fix missing parenthesis
2019-03-14 23:55:02 +01:00
Claudio Sanches
d365497a66
Fixed coding standards
2019-03-14 19:48:47 -03:00
Adrien Foulon
d53d6f6a7d
phpcs
2019-03-14 23:18:47 +01:00
Adrien Foulon
7a470fb117
Separating nocache and cache logic for clarity
2019-03-14 23:16:55 +01:00
Adrien Foulon
0391b11b20
Review
2019-03-14 23:05:54 +01:00
Timmy Crawford
ade88ffc31
Merge pull request #23031 from woocommerce/update/update-routine-lookup-table
...
Lookup table updates over CLI
2019-03-14 12:45:09 -07:00
Daniel Kudwien
7702f773b9
Fixed WooCommerce writes current_theme_supports_woocommerce option on every page view.
2019-03-14 20:09:43 +01:00
Adrien Foulon
7d77241ed2
Move variable definitions in class
2019-03-14 16:44:26 +01:00
Mike Jolley
1e83864667
Improve updates of onsale/virtual
2019-03-14 12:57:48 +00:00
Renovate Bot
b358278c62
Pin dependency wp-cli/wp-cli to 1.5.1
2019-03-14 11:52:54 +00:00
Mike Jolley
062d147b59
When using CLI, run queries without queue
2019-03-14 11:46:41 +00:00
Mike Jolley
520c517410
Merge pull request #23019 from woocommerce/update/onsale-lookup
...
onsale lookup table
2019-03-14 11:10:35 +00:00
Gerhard Potgieter
fbb18db896
Merge pull request #22971 from woocommerce/fix/22958
...
Reword cancelled email
2019-03-14 10:07:12 +02:00
Gerhard Potgieter
8c09e28be4
Merge pull request #22994 from woocommerce/try/product-metabox-no-suggestions-polish
...
Show linkout to Marketplace when there are no product metabox suggestions to display
2019-03-14 09:35:15 +02:00
Gerhard Potgieter
be926cd6ff
Merge pull request #23027 from dhavalgshah/feature/23026
...
Add $this context to woocommerce_email_styles filter.
2019-03-14 09:31:02 +02:00
Gerhard Potgieter
d8f32ff209
Merge pull request #23001 from woocommerce/fix/22993
...
After logging in, update session customer ID
2019-03-14 09:26:00 +02:00
mindmantra
8cb0e42551
Add $this context to woocommerce_email_styles filter.
...
see: #23026
2019-03-14 12:13:55 +05:30
haszari
9f11374edf
wrap button text label for translation
2019-03-14 14:56:35 +13:00
haszari
cfa6f58b8f
wrap no-suggestions strings for translation
2019-03-14 14:56:34 +13:00
haszari
a751e6a054
content & icon for no-suggestions state in product edit metabox
2019-03-14 14:56:33 +13:00
Adrien Foulon
005d7491cf
Cleanup
2019-03-13 22:28:09 +01:00
Adrien Foulon
55339a2870
Cache setter and getter wrapper
2019-03-13 22:21:09 +01:00
Adrien Foulon
8d866d9df7
Fix error wpdb global
2019-03-13 21:19:21 +01:00
Adrien Foulon
322eed0b2c
Fix error
2019-03-13 19:06:47 +01:00
Mike Jolley
6995e6ec84
Merge pull request #22981 from woocommerce/update/22976
...
Updating geolocation download to avoid wp_upload_dir and direct filesystem access
2019-03-13 17:41:54 +00:00
Mike Jolley
8d0ec76cea
Update the table on save
2019-03-13 17:33:44 +00:00
Adrien Foulon
11e8f087e8
Fix get cached query call
2019-03-13 18:18:59 +01:00
Mike Jolley
6de8a03f1a
Merge branch 'master' into update_action_scheduler_2_2_1
2019-03-13 17:18:36 +00:00
Mike Jolley
53896e3149
onsale lookup
2019-03-13 17:14:20 +00:00
Mike Jolley
337b6cdc60
Link had wrong styling - it does not dismiss
2019-03-13 17:07:33 +00:00
Adrien Foulon
99358e7763
Remove whitespaces on empty lines
2019-03-13 18:00:13 +01:00
Adrien Foulon
eefbaff3ea
Remove whitespaces on empty lines
2019-03-13 17:59:34 +01:00
Adrien Foulon
cc65b2d856
Apply code review
2019-03-13 17:54:13 +01:00
Adrien Foulon
80435d779f
Apply code review
2019-03-13 17:52:28 +01:00
Ron Rennick
340bf79fda
add 2 new files missed in original commit
2019-03-13 12:25:05 -03:00
Mike Jolley
e2e124f365
Merge pull request #22083 from woocommerce/feature/variation-search
...
Added storing attribute values as post_excerpt for variations.
2019-03-13 15:09:19 +00:00
Rodrigo Primo
f9cdab66eb
Merge pull request #22889 from woocommerce/fix/22817
...
Hide 'other' payment method from invoice
2019-03-13 12:01:56 -03:00
Mike Jolley
09d92875fa
Merge pull request #23010 from woocommerce/update/lookup-tables
...
Update stock reports to use lookup tables
2019-03-13 15:01:07 +00:00
Mike Jolley
16ff51ded3
Use lookup table ID
2019-03-13 15:00:12 +00:00
Mike Jolley
4b077a22e8
Remove customer name
2019-03-13 14:40:37 +00:00
Mike Jolley
a44cba5923
Update subject
2019-03-13 14:38:04 +00:00
Mike Jolley
1dfb38c0a9
Merge pull request #23014 from woocommerce/update/add-caching-tracks-blog-details
...
Add transient caching to tracks blog data collection.
2019-03-13 14:28:10 +00:00
Mike Jolley
39e5de3324
Merge pull request #23007 from woocommerce/add/wc-blocks-v1/docblock-updates
...
REST API: Add Private REST API docblock and response headers.
2019-03-13 14:26:13 +00:00
Mike Jolley
955e91c5ef
Use internal docblock comment
2019-03-13 14:24:11 +00:00
Ron Rennick
51afb3589b
update version in action scheduler plugin header
2019-03-13 11:01:11 -03:00
Mike Jolley
4b2f7aedd4
Trigger sync after updating meta
2019-03-13 13:53:58 +00:00
Mike Jolley
0002463c61
child_has_stock_status use lookup
2019-03-13 13:48:38 +00:00
Ron Rennick
74789834fe
update action scheduler to version 2.2.1
2019-03-13 10:45:39 -03:00
Mike Jolley
d17dc119bc
SKU lookup
2019-03-13 13:30:49 +00:00
Mike Jolley
df0c432de2
update_product_stock should sync lookup table
2019-03-13 13:30:31 +00:00
Mike Jolley
f6d9e7796f
is_existing_sku use lookup
2019-03-13 13:25:55 +00:00
Gerhard
e86fbf62cc
Add transient caching to the blog_details values tracks collects.
2019-03-13 15:12:07 +02:00
Adrien Foulon
fa9b08c9a4
Make the maybe_update_transients hook static so it's not constructor dependant
...
Because extended classes don't call the parent constructor and that would break BC
2019-03-13 13:47:00 +01:00
Mike Jolley
e6c60dd6c2
Show notice when regeneration is taking place with link to AS
2019-03-13 12:25:20 +00:00
Rodrigo Primo
5d14d30b8c
Remove outdated comment
...
Commit
be05eea5da (diff-133db5662c51f5686d87611121a05a3bL88)
changed how ajax events are stored and now an associative array is not used anymore for both private and non private events. Instead two different arrays are now used one for each type of event.
2019-03-13 09:21:29 -03:00
Rodrigo Primo
ab89222cfa
Fix typo
...
Typo added in be05eea5da (diff-133db5662c51f5686d87611121a05a3bR45)
2019-03-13 09:10:53 -03:00
Adrien Foulon
bc34c6e3eb
Fix php5.2 support
2019-03-13 12:11:49 +01:00
Mike Jolley
2c14a8ddfb
Merge pull request #23006 from woocommerce/fix/phpcs-error
...
Fix error introduced by commit be05eea5da
2019-03-13 10:59:17 +00:00
Adrien Foulon
a520cb5f44
Rename function
2019-03-13 11:55:18 +01:00
Adrien Foulon
b2ad443db5
phpcs
2019-03-13 11:51:48 +01:00
Adrien Foulon
95cbe5c969
phpcs
2019-03-13 11:51:24 +01:00
Mike Jolley
b4cfef95a2
Stop calling notice file
2019-03-13 10:40:38 +00:00
Mike Jolley
54fac746b3
Remove unused notice file
2019-03-13 10:40:11 +00:00
Mike Jolley
6f4eeef2fe
Move deprecated notices to bottom of class and add deprecated tag
2019-03-13 10:37:30 +00:00
Adrien Foulon
13b5a07383
Update class-wc-admin-report.php
2019-03-13 11:35:42 +01:00
Adrien Foulon
ee403d6000
Improve the speed of the admin dashboard by only updating transients once per class
...
While debugging the admin dashboard I found out that some transients where updated up to 5 times during the page load, reading is fast but writting is costy, so the query where adding a total of 200ms to the page load (because they are also huge transients)
I've rewritten the transient storage procedure so that per class a transient is only written once at the end of the request
I also found that a continue was changed for a break line 139 for php7.3 and the new warning it incurs, the problem is it was changed the wrong way, it should have been a "continue 2" to continue the foreach and not a break.
That makes me wonder if some others like this may have slipped in the code.
2019-03-13 11:33:03 +01:00
Mike Jolley
ef352c2b48
Outofstock lookup
2019-03-13 10:10:24 +00:00
Mike Jolley
b4aa0c3915
use found rows
2019-03-13 10:06:49 +00:00
Mike Jolley
f5bd3be2c2
most stocked lookup table
2019-03-13 09:59:14 +00:00
Timmy Crawford
f7b58862f0
Fix phpcs issues.
2019-03-12 17:10:48 -07:00
Timmy Crawford
6c22bfb96a
REST API: Add Private REST API docblock and response headers.
2019-03-12 16:26:10 -07:00
Rodrigo Primo
a41e29e05f
Fix error introduced by commit be05eea5da
...
Commit be05eea5da (diff-133db5662c51f5686d87611121a05a3bR1420)
fixed all the PHPCS violations in includes/class-wc-ajax.php, but it unintentionally changed that the logic of WC_Ajax::json_search_products(). This commit reverts the changes to the old logic while keeping the PHPCS fixes.
Before the modification mentioned above, `$_GET['term']` would be used only if `$term` was empty. After this modification, `$_GET['term']` is used whenever it is set and `$term` (the parameter passed to the method) stopped being used. This commit restores the original logic in that what is passed in the first parameter as `$term` is used by default, and `$_GET['term']` is only used if `$term` is empty.
2019-03-12 20:23:28 -03:00
Mike Jolley
ac21a4bc33
phpcs
2019-03-12 22:26:53 +00:00
Mike Jolley
3b98d2de8d
Switch low stock report to lookup table
...
Baseline page load time down from 60s to 0.7s
2019-03-12 22:26:46 +00:00
Mike Jolley
a6a035ec92
Fix low stock query to ref correct lookup table column
2019-03-12 22:16:42 +00:00
Mike Jolley
c52eac2871
check updated props for variables
2019-03-12 19:22:30 +00:00
Rodrigo Primo
47135c6a68
Merge pull request #22997 from woocommerce/fix/22992
...
Add stock to search results manually
2019-03-12 15:12:43 -03:00
Mike Jolley
203dba5a1f
After logging in, migrate session data
2019-03-12 16:36:15 +00:00
Mike Jolley
5b1814016b
Add stock with different function
2019-03-12 14:48:05 +00:00
Rodrigo Primo
c4d6f3dac3
Replace deprecated WPCS rule
...
This commit replaces all the instances where the WPCS rule `WordPress.VIP.SlowDBQuery` was used with `WordPress.DB.SlowDBQuery`. `WordPress.VIP.SlowDBQuery` was deprecated in WPCS 2.0 and `WordPress.DB.SlowDBQuery` was added as a replacement (see 5f27d8e3a4/CHANGELOG.md (L130)
).
2019-03-12 11:24:09 -03:00
Mike Jolley
f8dded8b49
merge refactor/22762 into master
2019-03-12 13:49:10 +00:00
Mike Jolley
20d7603dd6
Merge branch 'fix/21034'
2019-03-12 13:47:08 +00:00
Mike Jolley
4ab3cc2204
Merge branch 'update/21017'
2019-03-12 13:45:48 +00:00
Mike Jolley
561afbabbd
Merge pull request #22949 from woocommerce/update/22929
...
Update order discount display
2019-03-12 13:35:42 +00:00
Mike Jolley
925ef8a8f5
Merge pull request #22979 from woocommerce/fix/22952
...
Set reply-to address for all emails
2019-03-12 13:34:41 +00:00
Mike Jolley
c39f447ff4
Merge branch 'fix/22937'
2019-03-12 13:27:13 +00:00
Mike Jolley
a5e956e7bf
Merge pull request #22980 from woocommerce/fix/22968
...
Pass user ID when adding coupons via admin
2019-03-12 13:22:40 +00:00
Mike Jolley
638812cdd3
Merge pull request #22904 from woocommerce/update/20577
...
Updates - Docs and ActionScheduler implementation
2019-03-12 13:21:48 +00:00
Peter Fabian
fb0f112c6d
Update the db only once if both title and attributes got updated.
2019-03-12 12:55:15 +01:00
Gerhard
10557868dd
Missing space after !=
2019-03-12 12:04:26 +02:00
Mike Jolley
d8f665bb89
Merge pull request #22936 from woocommerce/fix/21814
...
Setup Wizard: Add keyboard events for custom input toggles
2019-03-12 09:28:37 +00:00
Mike Jolley
72870d808c
Merge pull request #22890 from woocommerce/fix/21785
...
Avoid changing tracking preferences when disconnecting helper
2019-03-11 17:04:29 +00:00
Mike Jolley
1d7059ec90
Add other check in order totals too
2019-03-11 16:59:38 +00:00
Mike Jolley
0211757e47
Merge pull request #22988 from woocommerce/fix/payment-custom-section-saving
...
Refactor WC_Settings_Payment_Gateways::save
2019-03-11 16:08:24 +00:00
Mike Jolley
dbfd06222a
tweak logic to only save ordering when section is empty
2019-03-11 16:06:53 +00:00
Mike Jolley
749493b4f4
Merge pull request #22867 from woocommerce/fix/22838
...
Refactor delete zone/delete zone method data store to remove settings
2019-03-11 15:55:53 +00:00
Mike Jolley
587f792868
Dupe line
2019-03-11 15:55:25 +00:00
Mike Jolley
0877e7d8f7
Merge pull request #22954 from woocommerce/add/blocks-rest-api
...
Merge blocks branch: add 8 product blocks and related API endpoints
2019-03-11 15:18:20 +00:00
Mike Jolley
fbda3a91d8
Merge feature/add-tracks into master
2019-03-11 15:15:50 +00:00
Mike Jolley
cd92c68476
fix offset check
2019-03-11 15:00:42 +00:00
Mike Jolley
b95bf94092
Merge pull request #22984 from woocommerce/fix/skip-order-count-query-when-filtered
...
Don’t query for an order count unnecessarily
2019-03-11 13:28:16 +00:00
Mike Jolley
de509ef041
Merge pull request #22982 from woocommerce/remove/blocks-notice
...
Remove Blocks Plugin Notif
2019-03-11 13:27:49 +00:00
Mike Jolley
e55bb84e8b
Merge pull request #22718 from woocommerce/experiment/product-sorting-index
...
Performance: product sorting lookup table
2019-03-11 13:27:10 +00:00
Mike Jolley
76bbc89c59
Merge pull request #22916 from woocommerce/update/22836
...
Add try catch block to pay_action
2019-03-11 13:25:22 +00:00
Peter Fabian
be292f0209
Removed superfluous filter.
2019-03-11 13:34:31 +01:00
Gerhard
f40692003b
Rework payment gateway settings save functionality so it falls back to saving the current section.
2019-03-11 13:27:17 +02:00
Mike Jolley
9bd38c496e
Delete method
2019-03-11 10:46:57 +00:00
Mike Jolley
b71a7ac4ee
Stray 1
2019-03-11 10:29:14 +00:00
Paul Sealock
6e2c67aef6
dont escape
2019-03-11 11:59:05 +13:00
Paul Sealock
60d478b642
wc_clean
2019-03-11 11:49:56 +13:00
Peter Fabian
d3dfee7353
Updated docs.
2019-03-09 12:09:50 +01:00
Peter Fabian
ec0767b3ce
Added attribute summary prop getters and setters.
2019-03-09 12:09:09 +01:00
Peter Fabian
5256daec07
PHPCS
2019-03-09 12:06:36 +01:00
Caleb Burks
afaf3482c4
Don’t query for an order count unnecessarily
2019-03-08 16:18:31 -06:00
Timmy Crawford
0ebefa53fd
Remove Blocks Plugin Notif
2019-03-08 11:09:15 -08:00
Mike Jolley
87bce1f4a2
Reduce inital delay for geo data
2019-03-08 18:20:31 +00:00
Mike Jolley
15f0d2566d
Use filesystem and hardcoded upload dir
2019-03-08 18:20:17 +00:00
Mike Jolley
143068332d
Pass user ID when adding coupons via admin
2019-03-08 16:14:49 +00:00
Mike Jolley
ff7a941235
Set reply-to address for all emails
2019-03-08 15:55:56 +00:00
Mike Jolley
ddb134fe45
Redirection improvements
2019-03-08 15:11:23 +00:00
Mike Jolley
bea53ebf4f
Handle date offsets on save
2019-03-08 13:36:55 +00:00
Mike Jolley
d9ab3b106e
Clean up date lookup
2019-03-08 13:36:22 +00:00
Mike Jolley
c56d3ede9f
Remove day offsets
2019-03-08 13:35:30 +00:00
Mike Jolley
0e1986df7a
Fix include
2019-03-08 13:11:30 +00:00
Mike Jolley
6f35239a26
Move activate/deactivate hooks to main WC class
2019-03-08 12:50:06 +00:00
Mike Jolley
fcf2a1d027
Move helper includes into helper class
2019-03-08 12:48:40 +00:00
Mike Jolley
574de2e90c
Move helper headers into wc_enable_wc_plugin_headers so they always exist.
2019-03-08 12:44:33 +00:00
Mike Jolley
30d3f1f49e
Filter get_available_payment_gateways for valid results
2019-03-08 11:37:47 +00:00
Mike Jolley
30c58b66cc
woocommerce_payment_gateways - ensure class is valid
2019-03-08 11:32:36 +00:00
Mike Jolley
3b8256414f
Merge pull request #22818 from woocommerce/fix/21800-edge-cases
...
Performance: Image regeneration edge cases
2019-03-08 11:01:30 +00:00
Mike Jolley
15ca2144d3
Merge pull request #22773 from woocommerce/performance/delete-empty-meta
...
Performance: delete empty meta
2019-03-08 10:22:31 +00:00
Mike Jolley
e7c8db0796
Merge pull request #22887 from woocommerce/update/22882-additional-system-status-values
...
Additional System Status Options
2019-03-08 10:15:45 +00:00
Mike Jolley
1e243b43dd
Merge pull request #22962 from woocommerce/update/format-phone-function
...
Phone number sanitize function
2019-03-08 10:08:02 +00:00
Mike Jolley
a3c2dcd8f2
Update from master
2019-03-08 09:50:56 +00:00
Paul Sealock
14d9678513
admin
2019-03-08 10:48:26 +13:00
Paul Sealock
ea4407de99
dione
2019-03-08 10:42:23 +13:00
Paul Sealock
09dec90831
getting there
2019-03-08 10:20:50 +13:00
Paul Sealock
9ee0912104
even more
2019-03-08 10:11:43 +13:00
Paul Sealock
712f06014d
moar
2019-03-08 10:08:34 +13:00
Paul Sealock
e9d02699c4
phpcs
2019-03-08 10:05:59 +13:00
Rodrigo Primo
9574762e8b
Merge pull request #22915 from woocommerce/fix/22894
...
Add woocommerce_get_product_subcategories_cache_key filter
2019-03-07 16:49:17 -03:00
Claudio Sanches
c892ed51a8
Better description
2019-03-07 14:15:10 -03:00
Claudio Sanches
e5e64d1618
Apply wc_sanitize_phone_number in WC_Gateway_Paypal_Request
2019-03-07 14:08:40 -03:00
Claudio Sanches
82aeb2a7f4
Introduced new wc_sanitize_phone_number function
2019-03-07 14:07:32 -03:00
Claudio Sanches
8c3ef28d07
Fixed coding standards
2019-03-07 14:07:14 -03:00
Mike Jolley
5492369fe9
Merge pull request #22857 from woocommerce/feature/marketplace-suggestions
...
Feature/marketplace suggestions
2019-03-07 16:39:14 +00:00
Mike Jolley
3e23010ad6
Merge pull request #22693 from woocommerce/fix/21110
...
Send calling code to PayPal
2019-03-07 16:36:19 +00:00
Mike Jolley
33c576a2fd
Merge pull request #22570 from woocommerce/performance/slow-term-queries
...
Improve slow term ordering queries
2019-03-07 16:33:01 +00:00
Mike Jolley
03863c3316
Merge pull request #22950 from woocommerce/fix/22947
...
Use day, not time, in status widget for caching
2019-03-07 16:31:02 +00:00
Mike Jolley
c0c520442c
Queue events in order
2019-03-07 16:24:52 +00:00
Mike Jolley
f0037ea643
split updates
2019-03-07 16:13:47 +00:00
Mike Jolley
663f724bdd
Cleanup methods
2019-03-07 15:08:22 +00:00
Mike Jolley
3173167e7e
Update indexes
2019-03-07 14:47:46 +00:00
Mike Jolley
dc635b9561
Update search_products to use lookup table
2019-03-07 14:46:01 +00:00
Mike Jolley
0782d39a55
Stock status
2019-03-07 14:32:20 +00:00
Mike Jolley
1ab455ec09
virtual and downloadable
2019-03-07 14:07:51 +00:00
Mike Jolley
94b19dc3ca
SKU and price sorting using lookup table in admin
2019-03-07 13:47:15 +00:00
Mike Jolley
91aa1b92e5
Tool to regen lookup tables
2019-03-07 13:40:12 +00:00
Mike Jolley
dfc539c051
SKU column
2019-03-07 13:34:28 +00:00
Mike Jolley
122eeda7ff
Avoid step rounding on query
2019-03-07 13:01:45 +00:00
Mike Jolley
f6c6c18242
Update from master
2019-03-07 12:50:38 +00:00
Mike Jolley
e7bb5a8f41
Merge branch 'master' into experiment/product-sorting-index
2019-03-07 12:49:25 +00:00
Mike Jolley
434c9b5815
Improve transient
2019-03-07 11:47:19 +00:00
Mike Jolley
236d9827ee
fix transient
2019-03-07 11:33:23 +00:00
Mike Jolley
bb7aa99d4b
Add transients to post tests
2019-03-07 11:21:42 +00:00
Mike Jolley
598ac86e95
Tests
2019-03-07 11:08:29 +00:00
Mike Jolley
89a4eba859
update from 22951
2019-03-07 10:58:14 +00:00
Mike Jolley
c78098c248
Version
2019-03-07 10:15:49 +00:00
Jeff Stieler
68573f6ed5
Increase Tracks performance (perhaps..) ( #22829 )
...
* Don’t block on Tracks requests and lower timeout to 1s.
* Where possible, render Tracks pixels in the page footer instead of making a blocking HTTP request from the server.
* Add direct API call fallback for Tracks event pixels.
2019-03-06 15:55:49 -07:00
Kelly Dwan
b360643582
Add average rating to the products API response
2019-03-06 17:32:31 -05:00
Kelly Dwan
fdefe5feac
Update with latest changes from block-library
2019-03-06 17:32:29 -05:00
Kelly Dwan
ea1b7d9730
Pull in changes from woo blocks PR
2019-03-06 17:28:51 -05:00
Kelly Dwan
5491d6ea55
Add note about source of file
2019-03-06 17:28:50 -05:00
Kelly Dwan
619527bb89
Fix phpcs issue
2019-03-06 17:28:49 -05:00
Kelly Dwan
148b605dbe
Update copying process, copy over minified files
2019-03-06 17:28:49 -05:00
Kelly Dwan
75b5e78561
Import file to register blocks
2019-03-06 17:28:48 -05:00
Kelly Dwan
2b5ab03a2d
Add the built files
2019-03-06 17:28:46 -05:00
Claudio Sanches
f38e877ee4
Updated sanitize callback and fixed coding standards
2019-03-06 17:26:19 -05:00
Timmy Crawford
85713c4c1a
Updates per feedback.
2019-03-06 17:26:18 -05:00
Timmy Crawford
da4867e755
Update text domain.
2019-03-06 17:26:17 -05:00
Timmy Crawford
2b59c5db64
REST API: Add Blocks Products Controller
2019-03-06 17:26:17 -05:00
Timmy Crawford
e17d835e66
REST API: Add wc-blocks/v1/products/categories
2019-03-06 17:26:16 -05:00
Timmy Crawford
f4e17ddcee
REST API: Add wc-blocks/v1/products/attributes controller.
2019-03-06 17:26:15 -05:00
Timmy Crawford
f2fa01d585
PHPCS fixes.
2019-03-06 17:26:15 -05:00
Timmy Crawford
c1313d433c
Updates per feedback.
2019-03-06 17:26:14 -05:00
Timmy Crawford
4311670956
REST API: wc-blocks/v1/products/attributes/%d/terms
2019-03-06 17:26:13 -05:00
Mike Jolley
56fbcfd8af
Include inactive plugins in system status
2019-03-06 18:29:44 +00:00
Mike Jolley
7aa82a1829
Use day, not time, in status widget for caching
2019-03-06 17:25:35 +00:00
Mike Jolley
6f983fb4eb
Merge pull request #22802 from woocommerce/fix/22643
...
Use taxable address when adding/removing coupons
2019-03-06 16:49:34 +00:00
Mike Jolley
95c5d145bb
Merge pull request #22540 from woocommerce/update/price-slider-improvements
...
Make the price filter widget tax aware redux
2019-03-06 16:47:21 +00:00
Mike Jolley
556bfd127f
Merge pull request #22909 from woocommerce/refactor/comment-rating-functions
...
Refactor comment/rating update functions
2019-03-06 16:46:33 +00:00
Mike Jolley
38816eb2ce
Update wording and presentation of discount amount
2019-03-06 16:39:28 +00:00
Mike Jolley
0f3be9fce4
phpcs
2019-03-06 16:17:33 +00:00
Mike Jolley
48a2660f8e
Queue based count population
2019-03-06 14:04:38 +00:00
Mike Jolley
a697c97472
Add rating_count to lookup table
2019-03-06 14:03:44 +00:00
Mike Jolley
b07f3e21db
Merge branch 'master' into experiment/product-sorting-index
2019-03-06 12:54:40 +00:00
Mike Jolley
b6e53d9109
PHP_INT_MAX
2019-03-06 12:46:58 +00:00
Mike Jolley
e1ff1bfae9
Update from master
2019-03-06 12:37:24 +00:00
Mike Jolley
55b27a2afc
Adjust calling code prefix logic in paypal
2019-03-06 12:33:46 +00:00
Mike Jolley
65c0169726
Merge branch 'master' into fix/21110
2019-03-06 12:25:12 +00:00
Mike Jolley
4330b2eb38
Update calling code handling
2019-03-06 12:25:06 +00:00
Mike Jolley
2bb39a4c79
Update from master
2019-03-06 12:08:07 +00:00
Mike Jolley
99455cfe34
update text
2019-03-06 12:00:54 +00:00
Mike Jolley
ea27a3e889
Merge branch 'master' into fix/22937
2019-03-06 11:46:37 +00:00
Mike Jolley
557530e43a
Use wc_format_coupon_code when handling posted values
2019-03-06 11:44:54 +00:00
Mike Jolley
e8aecdb824
Use wc_format_coupon_code when handling posted values
...
wc_clean and other functions strip characters - using wc_format_coupon_code keeps it consistent with post_title formatting.
2019-03-06 11:44:27 +00:00
Mike Jolley
96efb7a93b
Use wc_sanitize_coupon_code
2019-03-06 11:42:07 +00:00
Mike Jolley
315b79c5ac
phpcs
2019-03-06 11:41:58 +00:00
Mike Jolley
39bb476db2
Introduce wc_sanitize_coupon_code
2019-03-06 11:41:52 +00:00
Mike Jolley
cb9edfc9f9
Merge pull request #22751 from woocommerce/fix/21544
...
Fix cart widget in Safari when using browser back button
2019-03-06 11:40:23 +00:00
Joshua Flowers
795b571147
Add scripts to wc setup footer
2019-03-06 11:55:19 +13:00
haszari
1ed027bb09
snooze suggestions in product list (for 24 hours) after a suggestion is dismissed
2019-03-06 10:50:22 +13:00
Mike Jolley
16a0a3e27e
Update from master
2019-03-05 19:03:01 +00:00
Mike Jolley
cc6ca5bdbd
Add deprecated
2019-03-05 19:00:37 +00:00
Mike Jolley
8cb385e3db
Cleanup/test
2019-03-05 18:23:51 +00:00
Mike Jolley
aba2f4713c
Clear caches in api
2019-03-05 18:16:05 +00:00
Mike Jolley
0e943a38d7
Fix wc_get_attribute
2019-03-05 17:02:58 +00:00
Mike Jolley
a42bdf94d0
avoid query in wc_attribute_orderby
2019-03-05 16:53:58 +00:00
Mike Jolley
d03f5d4373
Index by ID and cache
2019-03-05 16:49:45 +00:00
Mike Jolley
ed6c02b8ec
wc_get_attribute caching
2019-03-05 16:21:10 +00:00
Mike Jolley
9452616a7f
wc_get_attribute_taxonomy_labels with cache
2019-03-05 16:19:00 +00:00
Mike Jolley
abc3b6ca47
Use cache helper for invalidation
2019-03-05 16:16:46 +00:00
Mike Jolley
b2a136bfb8
wc_get_attribute_taxonomy_ids function, with cache
2019-03-05 16:10:31 +00:00
Mike Jolley
46bdad07e9
Array init code was wrong
2019-03-05 14:51:58 +00:00
Mike Jolley
a5e72cfc02
Re-order elements and add tabindex
2019-03-05 14:22:59 +00:00
Mike Jolley
2c2891c17a
Merge pull request #22925 from woocommerce/fix/22896
...
Remove structured data from archives and include some recommended fields on single product pages
2019-03-05 14:02:07 +00:00
Mike Jolley
add1765234
Inline docs
2019-03-05 13:49:02 +00:00
Mike Jolley
6d5f5be164
sync_rating_count before average in deprecated method
2019-03-05 13:47:56 +00:00
Mike Jolley
f707eeda3e
Update from master
2019-03-05 13:31:14 +00:00
Mike Jolley
a49d4a04a1
Update throws tags
2019-03-05 13:05:55 +00:00
Mike Jolley
ac6763d0d0
Merge pull request #22820 from woocommerce/fix/22496
...
Make 'refund amount' read-only
2019-03-05 12:56:59 +00:00
Mike Jolley
2d394a2b26
Merge pull request #22888 from woocommerce/fix/22870
...
Add precision to tax in discount class
2019-03-05 12:54:11 +00:00
Gerhard
e36ffaa6f0
Use correct meta key _stock for updating lookup table stock.
2019-03-05 14:38:22 +02:00
Gerhard Potgieter
5a6cc36fce
Merge branch 'master' into experiment/product-sorting-index
2019-03-05 14:04:11 +02:00
Gerhard
0b6e8351d6
PHPCS fixes
2019-03-05 13:59:42 +02:00
Mike Jolley
545cbbb79c
Check for required fields or bail
2019-03-05 11:44:26 +00:00
Mike Jolley
bf11dbf76f
If there is no url on last breadcrumb trail, use current url
...
Fixes #22923
2019-03-05 11:38:53 +00:00
Jeff Stieler
7caba832f6
Refactor Tracks classes to remove singletons and static methods. ( #22930 )
2019-03-04 17:30:01 -07:00
haszari
6caaf80fa6
add a tooltip (Dismiss this suggestion) to clarify dismiss button
2019-03-05 12:20:13 +13:00
Jeff Stieler
c22c3aafa2
Track settings changes. ( #22810 )
...
* Track settings changes.
2019-03-04 15:37:59 -07:00
Paul Sealock
d968b95b53
Add opt in/out to settings page
2019-03-05 11:06:45 +13:00
Mike Jolley
5b07ded976
Update from master
2019-03-04 18:00:14 +00:00
Jeff Stieler
1072d1a275
Tracks: Use wp_doing_ajax() instead of checking constant.
2019-03-04 10:04:48 -07:00
Jeff Stieler
262afba502
Add direct API call fallback for Tracks event pixels.
...
Handles cases where wp_redirect() is called.
2019-03-04 09:59:49 -07:00
Mike Jolley
17a4c6e28a
Set all default content values
2019-03-04 16:56:40 +00:00
Mike Jolley
6f3181ccfb
Settings in admin emails
2019-03-04 16:39:49 +00:00
Mike Jolley
9fd785baa2
Pass additonal content to content functions
2019-03-04 16:38:18 +00:00
Mike Jolley
3463f37f49
Add additonal content setting to each email
2019-03-04 16:33:05 +00:00
Jeff Stieler
22c20b0d32
Where possible, render Tracks pixels in the page footer instead of making a blocking HTTP request from the server.
2019-03-04 08:59:21 -07:00
Jeff Stieler
2e2b3b9bba
Don’t block on Tracks requests and lower timeout to 1s.
2019-03-04 08:59:21 -07:00
Mike Jolley
5d41d753b3
Added additional_content to invoice email
2019-03-04 15:40:20 +00:00
Mike Jolley
64bc5c2e99
Define commonly used placeholders in main class
2019-03-04 15:30:56 +00:00
Mike Jolley
2f6bcb2a6d
I cannot spell
2019-03-04 14:57:49 +00:00
Mike Jolley
003a5bd188
Better placeholder replacement for footer
2019-03-04 14:53:19 +00:00
Mike Jolley
8147b82b88
Feedback
2019-03-04 14:17:11 +00:00
Mike Jolley
f18f4082b2
Merge pull request #22906 from woocommerce/add/downloadable_product_permissions_index
...
get_downloads_for_customer performance improvement via index
2019-03-04 14:15:11 +00:00
Mike Jolley
76fabc9b7e
Merge pull request #22771 from martinsnajdr/flatrate-shipping-cost-filters
...
Shipping method get_option function filters
2019-03-04 13:49:22 +00:00
Mike Jolley
857c5cbc5e
Merge pull request #22855 from woocommerce/fix/22772
...
shop_messages shortcode requires wc_print_notices
2019-03-04 13:44:25 +00:00
Mike Jolley
5937625b5e
Include priceValidUntil
2019-03-04 13:17:27 +00:00
Peter Fabian
224ea5d8af
Merge pull request #22776 from woocommerce/fix/orders-statuses-param-description
...
[REST API] Better description for order's status collection param
2019-03-04 14:14:04 +01:00
Mike Jolley
246c78db73
Add a review to product schema
2019-03-04 13:05:29 +00:00
Mike Jolley
d104bb7d3f
Add SKU with ID fallback
2019-03-04 12:47:40 +00:00
Mike Jolley
52533d9da6
Add URL field
2019-03-04 12:47:31 +00:00
Mike Jolley
6caa0fab61
Tidy data
2019-03-04 12:47:24 +00:00
Mike Jolley
60d8a10bcf
Remove woocommerce_structured_data_product_limit
...
With the removal of generation on archives, the filters `woocommerce_structured_data_product_limit` and `woocommerce_structured_data_product_limited` have no context nor purpose. This commit removes them so full schema is generated when used.
2019-03-04 11:44:52 +00:00
Tim Howe
41de832580
#22912
2019-03-04 11:11:04 +00:00
Joshua Flowers
10826c7bf0
Change wc_ prefix to woocommerce_
2019-03-04 14:16:05 +08:00
Joshua T Flowers
17b786e500
Tracks: Move tracking script to make available on page load ( #22914 )
...
* Filter wc queued js to add tracking script outside of jQuery
* Add tracking script directly to footer
* Move empty tracking function to admin footer hook
2019-03-04 14:16:05 +08:00
Joshua Flowers
9e6836e3a0
Use get_current_step() inside step tracking method
2019-03-04 14:14:45 +08:00
Joshua Flowers
919785bce8
Whitelist specific footer scripts
2019-03-04 14:14:45 +08:00
Joshua Flowers
123940b2ac
Only add marketing tracking on next_step step of OBW
2019-03-04 14:14:45 +08:00
Joshua Flowers
3ab791843d
Track marketing signup on form submission
2019-03-04 14:14:45 +08:00
Joshua Flowers
9128e8c4f5
Add scripts to wc setup footer
2019-03-04 14:14:45 +08:00
Paul Sealock
37d3fff3d6
Merge pull request #22807 from woocommerce/add/tracks-gross-revenue
...
Add gross revenue to Tracks base data.
2019-03-04 09:35:37 +13:00
Claudio Sanches
e131ba5358
Updated per feedback
2019-03-01 20:01:03 -03:00
Mike Jolley
b12f549533
Add try catch block to pay_action
2019-03-01 11:25:31 +00:00
Mike Jolley
7c9932da6d
woocommerce_get_product_subcategories_cache_key filter
2019-03-01 10:55:11 +00:00
Mike Jolley
5af9d968e5
Update from master
2019-03-01 10:29:17 +00:00
Mike Jolley
32417e1017
Unused result vars
2019-03-01 10:28:30 +00:00
Mike Jolley
b08842d45c
Update cache key to handle arrays
2019-03-01 10:22:27 +00:00
Mike Jolley
51dbbac32d
Update from master
2019-03-01 10:19:40 +00:00
Mike Jolley
e845d6ced9
Merge pull request #22885 from yaroslawww/patch-1
...
Update class-wc-regenerate-images.php
2019-03-01 10:17:55 +00:00
Mike Jolley
efb8704f05
If both dimensions are smaller, do not scale
2019-03-01 10:15:01 +00:00
Mike Jolley
c655c2e38a
Merge pull request #22846 from teloconf/master
...
[ADD] Do Action before cart is emptied
2019-03-01 10:04:25 +00:00
Joshua T Flowers
e53724832d
Tracks: Add tracking event when OBW is started ( #22877 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track when the OBW has started
* Rename Jetpack activation tracking method
* Remove duplicate tracking optin check
* Track when option to track is udpated in OBW
* Check if tracking is actively being opted into in is_tracking_enabled()
* Move tracking start check into WC_Admin_Setup_Wizard_Tracking
* Clean up tracking opt-in check logic
2019-03-01 11:12:30 +08:00
Joshua T Flowers
234f3a1bb9
Tracks: Add tracking event for skipped step in OBW ( #22879 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Add ability to get steps from setup wizard
* Track last completed step in options
* Track skipped step name if bypassing the save process
* Track skipped step prior to current instead of step after last completed step
2019-03-01 10:58:11 +08:00
haszari
023579cc17
localise default CTA text + code-style improvements:
...
- else style, fix stale/presumptuous variable names
- localise default CTA text
- use `Learn More` for default, more in line with our latest content
- switch CTA default to button - link style is less common
2019-03-01 14:22:02 +13:00
Gabriel
e442f46db3
Update class-wc-cart.php
2019-02-28 21:56:43 +01:00
Rodrigo Primo
dc40e8e062
Merge pull request #22908 from woocommerce/fix/obsolete-code
...
remove some obsolete code
2019-02-28 14:01:03 -03:00
Mike Jolley
caf3ff61e7
Merge pull request #22218 from woocommerce/add/fb-in-obw
...
Add Facebook to Recommended Step in OBW
2019-02-28 16:45:41 +00:00
Mike Jolley
f9567583a7
Merge pull request #22901 from mihaigrigori/master
...
Change exception string to facilitate translating
2019-02-28 16:13:28 +00:00
Mike Jolley
81767385d6
Tidy up deprecated methods
2019-02-28 14:54:23 +00:00
Mike Jolley
55c49b661e
Missing cache flush when updating sales
2019-02-28 14:51:55 +00:00
yaroslawww
5f9225a1cb
Update class-wc-regenerate-images.php
...
Fix coding styles and naming error
2019-02-28 16:48:18 +02:00
Mike Jolley
a2606a3f1f
Avoid updates on read - this is for legacy where meta was missing and shouldn't be ran for all products
2019-02-28 14:47:06 +00:00
Mike Jolley
4f7941b174
fix method name
2019-02-28 14:46:56 +00:00
Mike Jolley
1c7c6246e9
Comment rating functions should not update the object themselves
2019-02-28 14:46:11 +00:00
Mike Jolley
b7f59b4596
wc_ln_count_ no longer exists
2019-02-28 14:41:07 +00:00
Mike Jolley
04b333484a
These transient no longer exist
2019-02-28 14:38:40 +00:00
Mike Jolley
611bf3b1dd
Price filter + stock widget requires lookup table
2019-02-28 14:24:05 +00:00
Mike Jolley
d407581618
Update types of decimal fields
2019-02-28 14:01:13 +00:00
Gerhard
36f0041673
PHPCS fixes
2019-02-28 15:37:37 +02:00
Gerhard
b8a5a9ec55
Add update routine to add user_order_remaining_expires index and hook it up to the installer for 3.6.0
2019-02-28 15:36:55 +02:00
Gerhard
207a5ef4b3
Add user_order_remaining_expires index to woocommerce_downloadable_product_permissions create table statement.
2019-02-28 15:30:17 +02:00
Mike Jolley
9948c63185
Revise index
2019-02-28 13:12:12 +00:00
Mike Jolley
25117aa77b
Merge pull request #22892 from woocommerce/fix/22886
...
PayPal: Add meta data, before changing order status
2019-02-28 12:10:03 +00:00
Mike Jolley
b903086251
Fix callbacks and remove logging
2019-02-28 11:52:56 +00:00
Mike Jolley
71afa5e590
Update notice wording
2019-02-28 11:16:09 +00:00
Mike Jolley
d59b1c39d7
Remove force link - it can be done in AS
2019-02-28 11:15:58 +00:00
Mike Jolley
dbcfd7dcdc
Update functions may re-run - handle in CLI
2019-02-28 11:11:25 +00:00
Mike Jolley
d990b5192f
Switch to action scheduler
2019-02-28 11:11:08 +00:00
Mike Jolley
f81791dab9
Update notice text + docs links
2019-02-28 10:45:38 +00:00
Joshua T Flowers
64b565465f
Tracks: Add tracking for Jetpack activation in OBW ( #22875 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track when Jetpack is activated
2019-02-28 14:33:00 +08:00
Joshua T Flowers
53f1f5c095
Tracks: Add selected recommended plugins in OBW ( #22874 )
...
* Add tracking to store setup OBW
* Check if current step matches event before firing
* Move step check to switch statement
* Track selected plugins recommended for install
2019-02-28 14:27:05 +08:00
Joshua T Flowers
f48ec6deec
Tracks: Add tracking for shipping units and labels ( #22873 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track shipping units and labels
2019-02-28 14:22:13 +08:00
Mihai Grigori
8cf31c3c3d
Change exception string to facilitate translating
2019-02-28 07:07:26 +02:00
Joshua T Flowers
a91adfa087
Tracks: Add selected payment gateways in OBW ( #22872 )
...
* Check if current step matches event before firing
* Move step check to switch statement
* Track payment gateways in OBW
* Combine arrays into comma separate strings
2019-02-28 11:58:08 +08:00
Joshua T Flowers
9f1b111692
Tracks: Add store setup event in OBW ( #22860 )
...
* Add tracking to store setup OBW
* Check if current step matches event before firing
* Move step check to switch statement
* Extract save events into separate method
2019-02-28 11:28:07 +08:00
Mike Jolley
9749f5a2a9
Add progress bar to CLI command
2019-02-27 16:46:53 +00:00
Martin Šnajdr
4f9d47ea25
PR requested changes: shipping instance option filter moved to get_instance_option function, filters renamed.
2019-02-27 17:31:51 +01:00
Mike Jolley
dc49afc251
Update group by clause
2019-02-27 15:45:05 +00:00
Mike Jolley
2e4bcebfb8
Ignore specific rules
2019-02-27 15:33:51 +00:00
Mike Jolley
a89caf0b89
Add wrapper for is_plugin_active
2019-02-27 15:25:27 +00:00
Mike Jolley
49065c0d1a
Add meta data, before changing order status
2019-02-27 14:50:37 +00:00
Mike Jolley
0b3a57c96f
Avoid changing tracking preferences when disconnecting helper
2019-02-27 14:04:50 +00:00
Mike Jolley
fd3173f63a
Hide 'other' payment method from invoice
2019-02-27 13:56:15 +00:00
Mike Jolley
0469bbe8b0
Merge pull request #22884 from woocommerce/fix/22861
...
Remember tracking setting when going through the OWB again
2019-02-27 13:46:31 +00:00
Mike Jolley
807878692b
Add precision to tax
2019-02-27 13:43:01 +00:00
Gerhard
5cfa6fc3db
PHPCS fixes
2019-02-27 15:24:50 +02:00
Gerhard
497d082b03
Refine Dropin and MU Plugin report functionality a bit. Added option to show if connected to WooCommerce.com.
2019-02-27 15:19:12 +02:00
Mike Jolley
1908daf2b4
Merge pull request #22774 from sasagar/fixing-order-of-jp-address
...
Fixing order of JP address.
2019-02-27 12:59:02 +00:00
Mike Jolley
cc8e516f7a
Merge pull request #22786 from woocommerce/improve/user-registration
...
Improve user's display_name generation during checkout
2019-02-27 12:55:56 +00:00
Mike Jolley
c3033247ba
Merge pull request #22783 from woocommerce/fix/22765
...
Only set user first and last names when those fields are empty
2019-02-27 12:37:42 +00:00
Mike Jolley
504e457c31
Merge pull request #22852 from woocommerce/fix/22842
...
Prevent a few structured data warnings on product catalog
2019-02-27 12:32:28 +00:00
Gerhard
70f4935236
Fix logic to avoid setting to no again
2019-02-27 14:30:00 +02:00
Gerhard
bf57a037c6
First go at adding dropins and mu plugins to system status report
2019-02-27 14:27:53 +02:00
Mike Jolley
7369ffdf42
Merge pull request #22853 from Dartui/fix-select2-tooltip
...
Remove whitespace characters from Select2 option title
2019-02-27 12:25:10 +00:00
Mike Jolley
2d5e834cf2
Merge branch 'pr/22822'
2019-02-27 11:56:08 +00:00
Mike Jolley
c854e74471
Spacing
2019-02-27 11:56:00 +00:00
yaroslawww
bb8bf5f749
Update class-wc-regenerate-images.php
...
Sometimes imagedata has not $imagedata['sizes']['full'] params. In my case, due to the fact that I am loading the SVG picture.
Therefore, an error is visible *Undefined index: height in class-wc-regenerate-images.php on line 222*
Therefore, a check for the emptiness of these parameters is added.
2019-02-27 13:53:32 +02:00
Gerhard
72ea7b05e7
Move tracking check to the if statement to avoid writing to the DB when it already has a value stored.
2019-02-27 13:38:36 +02:00
Mike Jolley
f90daea1d5
Merge pull request #22799 from woocommerce/remove/cron-plugin-theme-installer
...
Remove old plugin/theme background installer hooks
2019-02-27 11:38:32 +00:00
Gerhard
a1c3048318
Keep tracking enabled if already enabled when saving the wizard.
2019-02-27 12:55:49 +02:00
Konstantin Kovshenin
9447afbc47
Update Marketplace suggestions endpoint URL
2019-02-27 12:26:14 +03:00
haszari
d5287b3f07
switch in WCCOM new (versioned) suggestions host/URL
2019-02-27 16:12:38 +13:00
Paul Sealock
e2697629b9
Merge pull request #22794 from woocommerce/add/tracks-orders_edit_status_change
...
Tracks: Orders edit status change
2019-02-27 12:43:02 +13:00
Claudio Sanches
f95f0f519e
Fixed coding standards
2019-02-26 19:59:04 -03:00
haszari
0dcc87110b
Merge branch feature/marketplace-suggestions into add/product-edit-suggestions
...
# Conflicts:
#assets/css/admin-rtl.css
#assets/css/admin.css
#assets/css/marketplace-suggestions-rtl.css
#assets/css/marketplace-suggestions.css
#assets/css/marketplace-suggestions.scss
#assets/js/admin/marketplace-suggestions.js
#includes/admin/class-wc-admin-assets.php
#includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
2019-02-27 10:56:13 +13:00
haszari
8dbda1b9c9
revert suggestion-related changes in helper:
...
- no longer required, now using active plugins for suggestions
- get_local_woo_plugins needs to not be cached
- left plugin `slug` in get_local_woo_plugins values, may be useful
2019-02-27 10:19:56 +13:00
haszari
69e3856188
show/hide suggestions based on which extensions are active:
...
- was previously based on folder names of installed plugins
2019-02-27 10:13:48 +13:00
Mike Jolley
d5ab20d1a5
get ID before running actions
2019-02-26 20:29:17 +00:00
Mike Jolley
937e0f22f0
Refactor delete zone/delete zone method data store to remove settings
2019-02-26 16:53:52 +00:00
Gerhard Potgieter
8722317956
Merge pull request #22775 from woocommerce/update/22525
...
Set no-transform cache header to opt out of weblight
2019-02-26 18:22:57 +02:00
Gerhard Potgieter
cc857be201
Merge pull request #22811 from woocommerce/add/orders-list-suggestions
...
Show marketplace suggestions in orders list empty state
2019-02-26 18:22:02 +02:00
Gerhard Potgieter
dbe93b96c4
Merge pull request #22865 from woocommerce/fix/22863
...
Add alt text to gallery thumbnail
2019-02-26 18:20:35 +02:00
Gerhard Potgieter
3455b2c1cb
Merge pull request #22830 from woocommerce/add/marketplace-updater-wc-queue
...
Update Marketplace suggestions data using WC_Queue
2019-02-26 17:55:33 +02:00
Mike Jolley
017f0e5e0d
Merge pull request #22834 from nishitlangaliya/issue-22757
...
feat: wc_product_stock_status_options filter added for stock status options
2019-02-26 14:06:02 +00:00
Mike Jolley
20eb503128
Add alt text to gallery thumbnail
2019-02-26 14:03:25 +00:00
Naveen giri
913b8e84bf
Fix wpcs error and avoid unnecessary checks
2019-02-26 18:31:34 +05:30
Gerhard
3dde01570a
Remove wp_clear_scheduled_hook for the plugin and theme background installer that does not run via cron anymore.
2019-02-26 12:44:27 +02:00
Gerhard
1e21ebe367
Remove the callbacks only
2019-02-26 12:25:12 +02:00
Mike Jolley
176965d139
Merge pull request #22825 from thatwasnotme/fix/data-stores-docs-param-type
...
Correct invalid param type from id to int
2019-02-26 10:24:58 +00:00
Gerhard
ccbb8313b6
Revert "Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron."
...
This reverts commit 0f771bf4fe
.
2019-02-26 12:24:56 +02:00
Mike Jolley
68c1ec6763
Merge pull request #22826 from woocommerce/fix/22708
...
Calculate shipping before totals during checkout update
2019-02-26 10:24:02 +00:00
Peter Fabian
4e177d264d
Corrected comment.
2019-02-26 11:15:16 +01:00
Peter Fabian
06118db3d5
Added lazy-update of post_excerpt for variations to avoid the need for db update routine.
2019-02-26 11:11:45 +01:00
Paul Sealock
260481522e
better return comment
2019-02-26 16:34:43 +13:00
Jeff Stieler
fe841ecc0b
Add gross revenue to Tracks base data.
2019-02-26 16:31:26 +13:00
Mike Jolley
6c35df1551
Return string
2019-02-25 22:01:22 +00:00
Mike Jolley
8792b53ecb
shop_messages shortcode requires wc_print_notices
2019-02-25 22:01:07 +00:00
haszari
c45a39676c
use safe get for API request, linter fixes, doc comments
2019-02-26 10:07:42 +13:00
Krzysztof Grabania
946b1e2469
Remove whitespace characters from Select2 option title
2019-02-25 20:12:54 +01:00
Paul Sealock
bf2561270a
remove check
2019-02-26 07:59:12 +13:00
Paul Sealock
0763edaeea
Change prefix to wcadmin
2019-02-26 07:57:44 +13:00
Claudio Sanches
80aee99fee
Prevent a few structured data warnings
...
This prevents warnings about 'image', 'description' and 'sku'.
'brand' included as empty fields just to register.
Note that warnings still comes for empty fields like 'sku' or 'brand'.
This is the message that should throw from Google Console:
> The brand field is recommended. Please provide a value if available.
Since is recommended, this PR should solve the max warnings as possible.
Fixes #22842
2019-02-25 15:49:14 -03:00
nishitlangaliya
ee621eec8a
fix: filter prefix changed and unit test added for fn:wc_get_product_stock_status_options
2019-02-25 19:03:57 +05:30
Gabriel
8a9990f98d
[ADD] Do Action before cart is emptied
2019-02-25 06:01:38 +01:00
haszari
97524aab16
Merge branch 'feature/marketplace-suggestions' into add/product-edit-suggestions
...
# Conflicts:
# includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php
+ fix linter errors / warnings
2019-02-25 16:12:24 +13:00
haszari
1aff17f0b9
Merge branch 'feature/marketplace-suggestions' into add/orders-list-suggestions
2019-02-25 16:05:04 +13:00
haszari
556bd1b372
remove hard-coded test suggestion data
2019-02-25 13:34:59 +13:00
Jeff Stieler
41e79ace80
Add Tracks events for product import start and finish.
2019-02-25 11:36:39 +13:00
haszari
764926f30c
rename product edit suggestions contexts for consistency
2019-02-25 10:21:22 +13:00
Valerie
8a796138ef
OBW: Add Facebook to recommended step
...
The end date for the Facebook recommendation
is October 8, 2019.
When the option is checked, this will install the extension
'Facebook for WooCommerce' on the user's site.
2019-02-23 17:40:37 -05:00
haszari
041068a705
use full path when including container template, rename folder 'views'
2019-02-24 09:37:33 +13:00
nishitlangaliya
53b5be7e83
feat: wc_product_stock_status_options filter added for stock status options for variable product
2019-02-23 11:10:22 +05:30
Valerie
ca316d8933
OBW: Remove customized blurb on recommended step
2019-02-22 21:14:22 -05:00
Konstantin Kovshenin
1dad53d5e0
Update Marketplace suggestions data using WC_Queue
...
Schedules an update task to run as soon as possible to fetch the
suggestions data, and cache it for a week. Failures are cached for
a day.
2019-02-22 22:34:18 +03:00
Konstantin Kovshenin
a0af355a45
Change marketplace suggestions label to "Get more options"
2019-02-22 21:16:13 +03:00
Claudio Sanches
14fa222347
Merge pull request #22676 from woocommerce/add/woo-identity
...
Tracks: add Woo identity
2019-02-22 15:10:22 -03:00
Claudio Sanches
8ae61b75e3
Clean up
2019-02-22 15:08:23 -03:00
Claudio Sanches
9250ff0df5
Better check for Jetpack
2019-02-22 15:01:13 -03:00
Claudio Sanches
bad7860e7e
Check if file exists before loading
2019-02-22 15:00:33 -03:00
Mike Jolley
e21912294a
calc shipping before totals
2019-02-22 16:43:42 +00:00
Tarik Causevic
5f87fa49e1
Correct invalid param type from id to int
2019-02-22 17:39:58 +01:00
Naveen giri
f741d507ba
Bugfix/#22821: Add Fix for Warning and Notices on save attribute button click
2019-02-22 19:27:16 +05:30
Mike Jolley
27ac2e1577
phpcs
2019-02-22 13:33:41 +00:00
Mike Jolley
d07d1cf0b0
If taxes are enabled, make the refund box readonly
2019-02-22 13:30:49 +00:00
Mike Jolley
0c2bc16bc1
Improved ratio and size matching code to prevent false positives
2019-02-22 12:10:54 +00:00
Mike Jolley
d31fbb5bf3
Helper to get full size dimensions
2019-02-22 12:10:28 +00:00
Mike Jolley
4a383fa832
When resizing, avoid extra checks via our filter
2019-02-22 12:10:16 +00:00
Mike Jolley
21f98555dc
Image downsize without filters
2019-02-22 12:09:59 +00:00
Konstantin Kovshenin
86d8065f3b
Remove debug code
2019-02-22 12:11:54 +03:00
Konstantin Kovshenin
25a72cc5f3
Add missing HTML template that renders the product data panel content
2019-02-22 12:03:58 +03:00
Konstantin Kovshenin
559409bccb
Remove hard-coded JSON test data
2019-02-22 11:55:56 +03:00
Konstantin Kovshenin
901d41bdfa
Marketplace suggestions in Edit Product screen
...
Adds a new tab to Woo's product data metabox and renders the
appropriate containers for JS to inject some Marketplace
suggestions.
2019-02-22 11:52:17 +03:00
haszari
4af4ce5783
allow suggestions on orders list + move logic into suggestions class
2019-02-22 10:55:37 +03:00
haszari
07a1ac7868
(temporary) add hard-coded fake orders-list suggestion data
2019-02-22 10:55:19 +03:00
haszari
3fcdc65283
style orders list suggestions + remove debug code
2019-02-22 20:55:03 +13:00
haszari
4e42021578
render suggestions containers (& unstyled suggestions) in orders list
2019-02-22 16:13:37 +13:00
haszari
24bbb9267e
allow suggestions on orders list + move logic into suggestions class
2019-02-22 16:11:34 +13:00
haszari
124e1a7b4a
(temporary) add hard-coded fake orders-list suggestion data
2019-02-22 16:06:18 +13:00
Jeff Stieler
04a1b7d79d
Track when product categories are created. ( #22790 )
...
* Track when product categories are created.
* Product category tracking: rename page property and include parent category ID.
* Fix PHPCS issues with product category tracking event.
2019-02-21 18:38:50 -07:00
Jeff Stieler
88fdbae5da
Track when a product is published. ( #22788 )
2019-02-21 18:34:06 -07:00
haszari
37578aa5d4
Merge branch master into feature/marketplace-suggestions
...
# Conflicts:
#assets/css/admin.scss
2019-02-22 14:17:20 +13:00
haszari
163af89ab3
MIA suggestions data should be cached as a real array, not text
2019-02-22 12:34:43 +13:00
haszari
62d4b5e395
Improve clarity and logic for disabling suggestions:
...
- Use a filter rather than option
- Use return-early style in function for clarity
- Ensure user has 'install_plugins' capability
2019-02-22 12:31:02 +13:00
Jeff Stieler
e41b0985f3
Track Subscriptions connection actions ( #22805 )
...
* Track when the Helper connection process is started.
* Track when the Helper connection process is cancelled.
* Track when the Helper connection process has completed successfully.
* Track when the Helper has been disconnected.
* Track when the Helper refreshes subscriptions.
2019-02-21 16:28:15 -07:00
Paul Sealock
24c324ae4a
remove phpcs ignore
2019-02-22 12:24:31 +13:00
Paul Sealock
158cf33ded
add sanitize_text_field
2019-02-22 12:23:37 +13:00
haszari
48946b3cc6
Cache local woo plugins info rather than slugs-only subset:
...
- cache woo_plugins object for more general use
- streamline get_local_woo_plugin_slugs using pluck
2019-02-22 12:17:38 +13:00
haszari
20c039d946
removed redundant `get_plugin_slug`
2019-02-22 12:04:22 +13:00
haszari
9a07c70cfc
only enqueue marketplace suggestions styles if they are enabled
2019-02-22 12:02:17 +13:00
Paul Sealock
3f8b3bc1fd
_woocommerce_tracks_anon_id to customere data store
2019-02-22 11:49:14 +13:00
Paul Sealock
851a2557f6
Tracks: Add a PHP client
2019-02-22 11:48:17 +13:00
Jeff Stieler
5c414507f9
Add Tracks events for product import start and finish. ( #22787 )
...
* Add Tracks events for product import start and finish.
* Move tracks event firing code into classes grouped by category/kind.
* Fix PHPCS warnings/errors with product and importer event tracking.
* Include products count in base Tracks data. (#22791 )
* Add extensions page view tracking. (#22803 )
* Add extensions page view tracking.
* Add tracking for extension searches. (#22804 )
2019-02-21 15:45:43 -07:00
Claudio Sanches
9ca8f97de3
Merge pull request #22792 from woocommerce/fix/product_edit-name
...
Fixt product_edit to match the event in the spreadsheet
2019-02-21 19:37:15 -03:00
haszari
a7dd094b3a
frontload suggestion data as script data, remove ajax request
2019-02-22 11:23:09 +13:00
Paul Sealock
49f601cc75
Tracks: Add a PHP client
2019-02-22 10:11:39 +13:00
Mike Jolley
e982e4027a
unused variables
2019-02-21 17:37:16 +00:00
Mike Jolley
78ebe9496f
Move caching
2019-02-21 17:35:41 +00:00
Mike Jolley
a4ac312854
Correct docblock
2019-02-21 17:15:37 +00:00
Mike Jolley
d7c2aaaadb
Avoid get post
2019-02-21 17:15:24 +00:00
Mike Jolley
54c1ef8615
Avoid trying to resize small images
2019-02-21 16:58:40 +00:00
Mike Jolley
287d65ab65
Add caching to get image size
2019-02-21 16:58:28 +00:00
Mike Jolley
e830bd739a
Use taxable address when adding/removing coupons
2019-02-21 16:23:20 +00:00
Gerhard
0f771bf4fe
Remove old hooks for woocommerce_theme_background_installer and woocommerce_plugin_background_installer. There are no scheduled events for these anymore and the Wizard has it's own theme/plugin installer that uses the shutdown hook instead of cron.
2019-02-21 12:50:12 +02:00
haszari
f2deef861e
prefix AJAX actions to reduce chance of collision
2019-02-21 15:56:26 +13:00
haszari
950b873583
only display suggestions for Englishish locales
2019-02-21 15:20:16 +13:00
haszari
ea5d3870ba
support global opt-out of suggestions via user option 'woocommerce_allow_marketplace_suggestions'
2019-02-21 15:04:38 +13:00
haszari
a9b7bfc513
move products list suggestions container render into module behind hook + move template near module, don't use wc_get_template to render
2019-02-21 14:38:04 +13:00
Paul Sealock
e4cf8a632b
Fixt product_edit to match the event in the spreadsheet
2019-02-21 14:05:35 +13:00
haszari
4c8436122f
move suggestions class into admin/ and require from admin::includes
2019-02-21 12:44:21 +13:00
haszari
71250c30a2
tidy up main marketplace suggestions module, make it a real class +
...
+ require it for admin only
+ fix issue with retrieving dismissed suggestions user meta value
2019-02-21 12:37:10 +13:00
haszari
5c1e20c7d1
store dismissed suggestions in user meta, don't manually json-encode
2019-02-21 11:50:03 +13:00
haszari
e53f92ae0d
move woo-plugin slugs into a helper routine + cache installed woo plugins in a transient
2019-02-21 11:27:53 +13:00
haszari
9986c4482c
remove some extra whitespace
2019-02-21 10:21:23 +13:00
haszari
dd27bf278b
cache empty suggestions if API fails, to reduce congestion/thrashing +
...
+ don't use wp_remote_safe_get – overkill
+ use wp_send_json_success to streamline/simplify API data ajax handler
2019-02-21 10:20:58 +13:00
Claudio Sanches
79847ccb93
Fixed coding standards
2019-02-20 16:30:46 -03:00
Claudio Sanches
5302434057
Fill user first and last name during checkout
2019-02-20 16:29:34 -03:00
Claudio Sanches
8b8498a37a
Included extra argument into wc_create_new_customer
...
Allows passing extra arguments to wp_insert_user() function
2019-02-20 16:18:43 -03:00
Claudio Sanches
efaa723a5b
Only set user first and last names when those fields are empty
2019-02-20 13:55:51 -03:00
Mike Jolley
9529d6eee7
Use total, not amount, when calculating fees
2019-02-20 16:22:20 +00:00
Martin Snajdr
1c678372d4
Shipping cost filters removed & added two additional parameters get_option function filters
2019-02-20 15:59:40 +01:00
Mike Jolley
b65f93c756
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-20 12:45:34 +00:00
Mike Jolley
6b41041883
Merge pull request #22777 from woocommerce/fix/22730
...
check low_stock for empty string vs isset
2019-02-20 12:44:17 +00:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Mike Jolley
ffa230de90
Escape html entities before passing to WP/photoswipe
2019-02-20 11:49:55 +00:00
Martin Snajdr
89016f1e70
WP coding standards fix.
2019-02-20 11:57:03 +01:00
Martin Snajdr
dfd4f4ea6d
Filters added to shipping method function get_option
2019-02-20 11:54:59 +01:00
haszari
6b8366eef9
pull real suggestions data from S3, remove hard-coded test data
2019-02-20 20:24:05 +13:00
haszari
4c1caf9171
display icon images in suggestions + styling tweaks for header/footer
2019-02-20 11:46:06 +13:00
Paul Sealock
1b62228faf
Tracks: Add a PHP client
2019-02-20 11:15:33 +13:00
Ron Rennick
e9a98ce4ae
fixes from review
2019-02-19 15:37:45 -04:00
Ron Rennick
4c7f61e123
phpcs except for ignore use of $_POST
2019-02-19 13:41:14 -04:00
Claudio Sanches
8c18367e57
[REST API] Better description for order's status collection param
2019-02-19 14:17:16 -03:00
Mike Jolley
b5219aac31
Add extra cache headers
2019-02-19 16:35:26 +00:00
SASAGAWA, Kiyoshi
3b6bbd2f3d
Fixing order of JP address.
...
JP address must be ordered as 'Postal Code' -> 'State (Prefecture)' -> 'City' -> 'address'.
Changing the priority.
2019-02-20 01:20:02 +09:00
Mike Jolley
d45734b6f3
Tweak indexes tests to test shipping indexes correctly
2019-02-19 15:35:28 +00:00
Mike Jolley
5749369ba5
Update coupons and orders to use update_or_delete_post_meta
2019-02-19 15:35:05 +00:00
Ron Rennick
a2abe8783e
check low_stock for empty string vs isset
2019-02-19 11:08:14 -04:00
Martin Snajdr
a6499d83ab
Flat rate shipping cost / class cost filters added.
...
Allows to tweak flatrate shipping cost / class cost before it gets
calculated and applied to shipping. Very useful for multicurrency
plugins, because you can add field for fixed shipping cost in another
currency and use this value instead of the default value from cost
field.
2019-02-19 15:49:35 +01:00
Mike Jolley
ea22b1cf47
Wrong var name
2019-02-19 13:24:29 +00:00
Mike Jolley
c6871bb107
Use update_or_delete_post_meta - exclude _tax_class which may be empty
2019-02-19 13:23:24 +00:00
Mike Jolley
8c82333034
update_or_delete_post_meta method which does what it says
2019-02-19 13:23:09 +00:00
Mike Jolley
5397e4ec1a
Merge pull request #22329 from woocommerce/enhancement-manual-stock-changes/21754
...
Product stock adjustments with manual order line item changes
2019-02-19 10:00:49 +00:00
Mike Jolley
07eadfeb72
Merge pull request #22760 from woocommerce/performance/webhook-loading
...
Performance: webhook loading
2019-02-19 09:58:06 +00:00
Mike Jolley
15bcef85e9
Merge pull request #21090 from woocommerce/fix/20937-v0.1
...
Added test if request is a REST API request so that cart is not loaded.
2019-02-19 09:54:48 +00:00
Mike Jolley
bdf77f5648
Merge pull request #22423 from woocommerce/performance/find-matching-variations
...
Performance - Finding matching variations
2019-02-19 09:53:34 +00:00
Mike Jolley
1e74b2567f
Merge pull request #22357 from woocommerce/pr/22125
...
State and country field handling improvements
2019-02-19 09:52:34 +00:00
Mike Jolley
2529cd60cd
Merge pull request #22731 from woocommerce/update/21952
...
Prevent webhooks for drafts and correct create vs updated for manual orders
2019-02-19 09:50:51 +00:00
Mike Jolley
de642211d0
Merge pull request #22735 from woocommerce/fix/maybe_set_date_paid
...
If date paid is not set but payment complete status has passed, set it
2019-02-19 09:49:33 +00:00
Mike Jolley
9076fde5b0
Merge pull request #22740 from woocommerce/fix/22403
...
Check for decoded taxonomy name when unsetting terms
2019-02-19 09:47:20 +00:00
Mike Jolley
dab6fcd43d
Merge pull request #22737 from woocommerce/fix/22733
...
Fix save logic by moving setter into loop grabbing the value
2019-02-19 09:46:34 +00:00
Mike Jolley
55bd0e7937
Merge pull request #22736 from woocommerce/fix/22703
...
Importer - Variations cannot be drafts - set to private.
2019-02-19 09:45:17 +00:00
Mike Jolley
004a0d7c03
Merge pull request #22692 from woocommerce/fix/22686
...
Update CA address format
2019-02-19 09:44:50 +00:00
Mike Jolley
7306bf6382
Merge pull request #22763 from woocommerce/fix/paypal-bn-code
...
Move PayPal BN partner ID
2019-02-19 09:42:05 +00:00
haszari
cc51dd4376
style products empty header/footer + support link style:
...
- added link-text to trigger link style for suggestion CTA, button is now opt-in
- made suggestion rendering more generic, should display something sensible if there are missing attribs
- all CTA links/buttons open in new tab via target attr
2019-02-19 12:22:06 +13:00
haszari
9cd81c371e
add header & footer to products empty suggestions box
2019-02-19 11:54:58 +13:00
Peter Fabian
d405c28bb7
Added back check for empty REQUEST_URI to authentication function, as it's still needed, the value is used further down.
2019-02-18 22:53:58 +01:00
Peter Fabian
989fad5a7e
Perhaps it does not make much sense to filter empty URI if it's REST request or not.
2019-02-18 22:52:39 +01:00
haszari
c7b630b1f8
update products list empty state (incl. suggestions) to latest designs
2019-02-19 10:46:44 +13:00
Claudio Sanches
8388325985
PHPCS ignore only what is necessary
2019-02-18 18:45:07 -03:00
Claudio Sanches
096e92554b
Only disable WordPress.DB.SlowDBQuery.slow_db_query_tax_query
2019-02-18 18:42:11 -03:00
Claudio Sanches
88984da13a
Merge branch 'master' into performance/find-matching-variations
2019-02-18 18:41:17 -03:00
Claudio Sanches
4d5c6b9042
Use short cuts for wpdb properties
2019-02-18 18:38:29 -03:00
Claudio Sanches
ff614f4f99
Catch WC_Data_Exception to avoid black screen
...
Also incldued a check to avoid duplicated messages about invalid billing
address emails.
2019-02-18 17:25:25 -03:00
Claudio Sanches
02ee0f21bb
Fixed coding standards
2019-02-18 16:48:01 -03:00
Peter Fabian
42855592e4
Updated call to reflect function change.
2019-02-18 18:59:37 +01:00
Peter Fabian
ba12cf723c
Renamed filter and reused the function in auth code.
2019-02-18 18:54:56 +01:00
Mike Jolley
b9e871060c
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-18 17:20:54 +00:00
Mike Jolley
8abe75f36d
Merge branch 'fix/21463'
2019-02-18 17:20:48 +00:00
Mike Jolley
acd933a7dd
Merge pull request #22729 from woocommerce/fix/22489
...
Check for _reduced_stock meta when restocking refunded items
2019-02-18 17:01:15 +00:00
Mike Jolley
dc883012b8
Missed null check in wc_load_webhooks
2019-02-18 16:58:16 +00:00
Mike Jolley
5bb5ae6265
Update from master
2019-02-18 16:54:24 +00:00
Mike Jolley
ad12ddd2c2
wc_maybe_adjust_line_item_product_stock should return false if nothing happens
2019-02-18 16:45:55 +00:00
Mike Jolley
624431d875
Merge pull request #22741 from woocommerce/fix/22701
...
Put back status parameter after extra processing.
2019-02-18 16:41:20 +00:00
Mike Jolley
3ededc2a07
Move BN partner ID
2019-02-18 16:29:29 +00:00
Peter Fabian
6f9ec2c7de
Removed db upgrade routines.
2019-02-18 17:22:50 +01:00
Peter Fabian
baccb21bad
PHPCS fix.
2019-02-18 17:22:29 +01:00
Peter Fabian
618355bcab
Merge branch 'master' into feature/variation-search
...
# Conflicts:
# includes/class-wc-install.php
# includes/wc-update-functions.php
2019-02-18 17:18:44 +01:00
Mike Jolley
4fd2a9f77e
Update from master
2019-02-18 15:04:58 +00:00
Mike Jolley
71d3121872
Performance: Support pagination to avoid double queries to search webhooks
2019-02-18 14:58:32 +00:00
Mike Jolley
4b3c1660f1
Dedicated count method
2019-02-18 13:41:14 +00:00
Mike Jolley
14149e4d54
phpcs
2019-02-18 13:41:06 +00:00
Mike Jolley
d787c34206
get_webhooks_ids escaping
2019-02-18 13:34:13 +00:00
Mike Jolley
3a4ef0a1d8
Avoid getting all webhook ids
2019-02-18 13:19:12 +00:00
Mike Jolley
d0438264ff
Add limit to wc_load_webhooks
2019-02-18 13:15:32 +00:00
Mike Jolley
0c53145f2b
Removed limit option from get_webhooks_ids - since transient stores all ids anyway, this logic makes more sense elsewhere
2019-02-18 13:13:59 +00:00
Mike Jolley
30db8a8d9c
version comment
2019-02-18 13:07:57 +00:00
Mike Jolley
1d46294ee8
Update versions
2019-02-18 13:07:04 +00:00
Mike Jolley
a662934355
phpcs
2019-02-18 12:53:59 +00:00
Mike Jolley
d2682170fd
Set woocommerce_load_webhooks_limit to no limit
2019-02-18 12:49:07 +00:00
Mike Jolley
fa97d1a791
Update reduced stock amount under some circumstances
2019-02-18 12:27:08 +00:00
Mike Jolley
fdd8a354e0
Merge pull request #22536 from woocommerce/update/21524
...
Delay `woocommerce_loaded` hook until all plugins are loaded.
2019-02-18 11:57:20 +00:00
Mike Jolley
afe219d854
Select an option vs state
2019-02-18 11:49:46 +00:00
Mike Jolley
4672a47d67
Update from master
2019-02-18 11:41:05 +00:00
haszari
012da5da24
support dismissing empty-state suggestions + polish dismiss styling:\n- hover style for x\n- disable border/underline active state inherited from <a>\n- layout styling for empty-state suggestions, button on right\n- make test data more like mockup (no category recommendation in list)
2019-02-18 15:55:26 +13:00
haszari
4ea4e6591a
ensure suggestion dismiss API / nonce is provided to js (missed in last commit)
2019-02-18 11:46:22 +13:00
Chris Kreidl
63492aa98b
added IDs to other input fields for consistency
2019-02-16 22:59:33 -05:00
Mike Jolley
3abe162bd6
Error handling in wc_ajax_headers
2019-02-15 17:23:34 +00:00
Mike Jolley
be05eea5da
phpcs all the things
2019-02-15 17:09:45 +00:00
Mike Jolley
3d8c58e110
status_widget_stock_rows lookups
2019-02-15 13:37:51 +00:00
Mike Jolley
35d2161fa9
Stock lookup
2019-02-15 13:05:46 +00:00
Mike Jolley
3309276e82
Renamed table to wc_product_meta_lookup
2019-02-15 12:37:45 +00:00
Mike Jolley
08e8c76eab
Update tests
2019-02-15 12:16:59 +00:00
Mike Jolley
048f33935c
fix method name
2019-02-15 11:50:26 +00:00
haszari
bf9f14c0b6
ajax api for dismissing specific marketplace suggestions (first cut)
2019-02-15 14:52:24 +13:00
haszari
5737a1a388
pull suggestion data from (proposed) S3 endpoint:
...
- leave hard-coded data in place until endpoint is available
2019-02-15 12:04:12 +13:00
Peter Fabian
6e24b85c6b
Put back status parameter after extra processing.
...
This allows correct further processing of $request, e.g. for next/previous links, etc.
2019-02-14 17:03:53 +01:00
Mike Jolley
46d5a4c596
Revert debug code
2019-02-14 15:58:53 +00:00
Mike Jolley
2a0ba812a3
Check for decoded taxonomy name when unsetting
2019-02-14 15:58:12 +00:00
Mike Jolley
c62c1e1d05
Fix save logic by moving setter into loop grabbing the value
...
Broken by https://github.com/woocommerce/woocommerce/pull/22650 phpcs changes
2019-02-14 15:22:36 +00:00
Mike Jolley
8c2e305823
phpcs
2019-02-14 15:05:56 +00:00
Mike Jolley
621229b894
Variations cannot be drafts - set to private.
2019-02-14 15:05:10 +00:00
Mike Jolley
39d9e4bd6f
If date paid is not set but payment complete status has passed, set it anyway Ref: #22688
2019-02-14 14:45:26 +00:00
haszari
4ad413ea83
move hard-coded suggestion data to woo API (WCCOM api coming soon)
2019-02-14 15:47:32 +13:00
haszari
1fdc013525
products blank state - OBW style suggestions (missed in previous commit)
2019-02-14 15:44:28 +13:00
Mike Jolley
588b5903f7
Ignore old pre-crud actions
2019-02-13 17:55:47 +00:00
Mike Jolley
13612ef3f1
Update CRUD update hook based on status transition
2019-02-13 17:55:30 +00:00
Mike Jolley
ae17d6f3bd
Avoid handling wc-auto-draft
...
WC was erroneously adding wc- prefix to the core WP auto-draft status.
#22380 registered it formally but we don't need it.
I've reverted #22380 and handled the prefix correctly.
2019-02-13 17:52:28 +00:00
Mike Jolley
311449e943
Create is_valid_resource method to check for invalid statuses
2019-02-13 16:46:49 +00:00
Mike Jolley
cf0e9f925c
Refactor should_deliver logic into managable chunks
2019-02-13 16:20:09 +00:00
Mike Jolley
d0abd6f09b
Check for _reduced_stock meta when restocking refunded items
2019-02-13 15:05:20 +00:00
Mike Jolley
377d79e175
Merge branch 'fix/21830'
2019-02-13 14:45:00 +00:00
Mike Jolley
fb5f9c1ecb
Merge pull request #22690 from Tofandel/patch-1
...
The "for" attribute of a label for a radio input is invalid
2019-02-13 14:40:52 +00:00
Mike Jolley
895948021c
Merge pull request #22717 from yratof/yratof-patch-1
...
Added filter for product title classes within product loop
2019-02-13 14:34:18 +00:00
Mike Jolley
fe853e5d02
Merge pull request #22672 from Chouby/update_stock_filter
...
Allow to filter the direct sql query to update the product stock
2019-02-13 14:32:43 +00:00
Mike Jolley
2abf39c6ae
Merge pull request #22704 from woocommerce/fix/22696
...
Custom payment sections not loading fields due to logic error.
2019-02-13 14:22:39 +00:00
Mike Jolley
569a41e58b
Merge pull request #22711 from woocommerce/fix/22656
...
Calculation issues on single product sales by product graph/report
2019-02-13 14:17:29 +00:00
Mike Jolley
595715b882
Merge pull request #22705 from woocommerce/fix/22699
...
Archive breadcrubs should use plural name not singular
2019-02-13 14:08:59 +00:00
Andrew Lazarus
11c16f35ab
Updated product loop title filter with esc_attr()
2019-02-13 15:07:07 +01:00
Mike Jolley
1451f6101d
Merge pull request #22721 from woocommerce/fix/webhooks-payload
...
Load REST API endpoints before generate webhook payload
2019-02-13 13:59:55 +00:00
haszari
42852d7b67
in-product discovery - enqueue styles as separate module
2019-02-13 12:18:39 +13:00
haszari
8b22f4b040
register underscore dependency for marketplace script
2019-02-13 11:30:43 +13:00
haszari
5671a6f7ca
in-product discovery - don't promote extensions that are already installed:
...
- + move suggestions client code to a module, enqueued only on relevant pages
2019-02-13 10:39:27 +13:00
Claudio Sanches
00651bbc76
Fix special chars on webhook secret
...
By default some values are encoded before saved into the database, so it's required to decode those chars before generate the webhook signature.
Fixes #22500
2019-02-12 16:21:29 -02:00
Claudio Sanches
2f13a048d9
Load REST API endpoints before generate webhook payload
2019-02-12 16:08:03 -02:00
Mike Jolley
b8921f9fba
Merge pull request #22420 from woocommerce/refactor/tax-rounding-methods
...
Refactor tax rounding methods for consistency
2019-02-12 16:13:58 +00:00
Mike Jolley
cd7959b59c
Merge pull request #22653 from woocommerce/update/22568
...
Added `woocommerce_paypal_force_one_line_item` filter
2019-02-12 16:12:29 +00:00
Mike Jolley
1fe8af6af6
Merge pull request #22663 from woocommerce/fix/22559
...
Switch span to paragraph in user profile view
2019-02-12 16:11:47 +00:00
Mike Jolley
d0a218db86
Merge pull request #22681 from woocommerce/fix/22678
...
Added check for POST variable existence.
2019-02-12 16:10:04 +00:00
Mike Jolley
4dd5cef7b9
Unused key variable
2019-02-12 14:19:37 +00:00
Mike Jolley
7f3816dfe7
Correct props to watch
2019-02-12 14:16:48 +00:00
Mike Jolley
7b6558e1df
Correct table names and updater
2019-02-12 14:04:22 +00:00
Mike Jolley
ac51d1f1df
Update routines
2019-02-12 13:27:30 +00:00
Mike Jolley
64df8a2934
update lookup tables handlers and actions
2019-02-12 13:23:47 +00:00
Mike Jolley
eae9f73bd2
update_lookup_table helper
2019-02-12 13:22:51 +00:00
Mike Jolley
10988fa08a
Missing transient update
2019-02-12 13:22:25 +00:00
Andrew Lazarus
aee5cf2bff
Added filter for product title classes within product loop
2019-02-12 13:37:02 +01:00
Mike Jolley
c2411b59c0
Tidy up deprecated methods
2019-02-12 12:15:33 +00:00
Mike Jolley
a0e05f972e
These transient no longer exist
2019-02-12 11:57:56 +00:00
Mike Jolley
6d78218f97
wc_ln_count_ no longer exists
2019-02-12 11:55:35 +00:00
Mike Jolley
2ebfe73524
Avoid updates on read - this is for legacy where meta was missing and shouldn't be ran for all products
2019-02-12 11:46:55 +00:00
Mike Jolley
d557a4c58e
Comment rating functions should not update the object themselves
2019-02-12 11:44:55 +00:00
haszari
792e32056c
in-product discovery - render container for product-list suggestions
2019-02-12 16:10:21 +13:00
Ron Rennick
b92cfc51a5
update product table to correctly calculate net product sales
2019-02-11 16:34:28 -04:00
Mike Jolley
95369b98a6
Price filter with new table
2019-02-11 15:45:30 +00:00
Mike Jolley
47a5c39ea1
deprecate wc_get_min_max_price_meta_query
2019-02-11 15:45:09 +00:00
Mike Jolley
1727485322
Indexes for sorting
2019-02-11 15:05:12 +00:00
Mike Jolley
fed9631a1e
Rating and sales sorting on new table
2019-02-11 15:04:05 +00:00
Mike Jolley
47b37c7104
Queries
2019-02-11 14:42:54 +00:00
Mike Jolley
5429770992
Sample update function and price sorting
2019-02-11 14:42:11 +00:00
Mike Jolley
f970458a33
Table schema
2019-02-11 14:41:24 +00:00
Gerhard
cd36919265
PHPCS fixes
2019-02-11 10:22:30 +02:00
Gerhard
2d746a99bb
Use name instead of singular_name for archive pages breadcrumbs. singular_name should only be used on single pages.
2019-02-11 10:21:17 +02:00
Gerhard
f6b1208a32
Custom payment sections not loading fields due to logic error.
2019-02-11 09:42:31 +02:00
Mike Jolley
6b58960660
deprecated functions
2019-02-08 13:16:05 +00:00
Mike Jolley
4233cd778c
@deprecated 3.6.0
2019-02-08 13:11:58 +00:00
Mike Jolley
0d901a2eca
Merge pull request #22608 from woocommerce/performance/remove-external-ip-lookup
...
Performance: Remove external lookup of ips on localhost
2019-02-08 13:09:31 +00:00
Mike Jolley
1efe7747a8
merge conflict
2019-02-08 13:08:55 +00:00
Mike Jolley
1743c13225
Merge pull request #22631 from woocommerce/fix/21677
...
WC Endpoint 404s
2019-02-08 13:05:49 +00:00
Mike Jolley
8404b644da
Merge pull request #22645 from woocommerce/update/21963
...
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Mike Jolley
cab45fafb3
Merge pull request #22650 from woocommerce/update/20995
...
Registration success notices
2019-02-08 13:04:36 +00:00
Mike Jolley
f0675781c8
Include calling code in pp request
2019-02-08 11:10:26 +00:00
Mike Jolley
8a1a1d3e73
get_calling_code_for_country
2019-02-08 11:09:42 +00:00
Mike Jolley
73f283bf4a
Update CA address format
2019-02-08 10:35:01 +00:00
Adrien Foulon
8dc9a46c17
The "for" attribute of a label for a radio input is invalid
...
The main label of a radio supposedly targeting the first value of the radios contains only the value instead of theId_theValue which is the id of the radio
2019-02-08 02:02:44 +01:00
Mike Jolley
dca47d5d14
Use mb functions for limiting string length
2019-02-07 19:09:41 +00:00
Mike Jolley
dbd324abc3
phpcs
2019-02-07 14:55:56 +00:00
Mike Jolley
b2c33b8e34
Merge branch 'master' into performance/slow-term-queries
2019-02-07 13:49:48 +00:00
Mike Jolley
0d41625ffe
Remove deprecated tag
2019-02-07 13:49:19 +00:00
Mike Jolley
113534a882
Set fallback false
2019-02-07 13:40:50 +00:00
Gerhard Potgieter
9ef6ea0be7
Merge pull request #22611 from woocommerce/performance/wp-profile-conflict
...
apply_filters_deprecated to avoid conflict with wp profile
2019-02-07 15:39:59 +02:00
Mike Jolley
889cf64ac4
Merge branch 'performance/wc-get-product-class'
2019-02-07 13:34:18 +00:00
Peter Fabian
c1d82478a6
Added check for POST variable existance.
2019-02-07 13:39:47 +01:00
nishitlangaliya
f69ac18ccd
fix: default value passed to sorting dropdown
2019-02-07 13:26:43 +05:30
Mike Jolley
4b485eba13
Fixed unit tests
2019-02-06 21:00:07 +00:00
Mike Jolley
e604a3ae24
correct id without $post
2019-02-06 19:57:06 +00:00
Claudiu Lodromanean
2d2d7a7053
Merge pull request #22613 from woocommerce/performance/set-props
...
Performance: `set_props`
2019-02-06 10:02:54 -08:00
Gerhard Potgieter
b7971bd0dc
Merge pull request #22632 from woocommerce/fix/22552-screen-reader-ratings
...
Accessibility: Add a screen reader label for product rating star icons
2019-02-06 15:40:26 +02:00
Gerhard Potgieter
4e311b944f
Merge pull request #22666 from woocommerce/update/21101
...
Prevent multiple cookie sets per request
2019-02-06 15:40:04 +02:00
Mike Jolley
00b48febac
Merge branch 'update/versioned-transients-alt'
2019-02-06 13:18:50 +00:00
Mike Jolley
89ac0dfdf0
Merge pull request #22668 from woocommerce/fix/22443-tests
...
Fixes #22443 tests
2019-02-06 12:46:50 +00:00
Mike Jolley
ec7db6de06
Simplify check
2019-02-06 12:46:36 +00:00
Mike Jolley
cb4bf5d1e5
Fix unit tests
2019-02-06 12:44:24 +00:00
Mike Jolley
7f0ac47291
Fix callback args
2019-02-06 12:15:29 +00:00
Frédéric Demarle
03a60fddfc
Ignore WordPress.DB.PreparedSQL.NotPrepared
2019-02-06 10:24:41 +01:00
Frédéric Demarle
6e4854b3aa
Add filter woocommerce_update_product_stock_query
2019-02-05 20:29:45 +01:00
Mike Jolley
b2542d7e8c
Missing rest api class in wizard
2019-02-05 17:41:17 +00:00
Mike Jolley
4635ccc04f
Check we have a valid attachment
2019-02-05 14:11:16 +00:00
Mike Jolley
ac29feac7c
header_register_callback to set cookies before headers are sent (if supported)
2019-02-05 13:03:16 +00:00
Mike Jolley
d004150d71
Only set and unset cookies if the values change
2019-02-05 13:02:52 +00:00
Mike Jolley
c88a92144b
Only update session cookie if the value changes
2019-02-05 13:02:20 +00:00
Mike Jolley
b091a0975d
Switch span to paragraph
2019-02-05 11:28:46 +00:00
Mike Jolley
86d192b0b4
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-05 11:02:37 +00:00
Mike Jolley
592e0abe22
Merge branch 'pr/22596'
2019-02-05 11:02:29 +00:00
Mike Jolley
d082c7dfa5
Swap to wp_strip_all_tags
2019-02-05 11:02:21 +00:00
Mike Jolley
250e9ff423
Merge pull request #22609 from woocommerce/fix/22545
...
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-05 11:00:35 +00:00
Mike Jolley
6a3d79f677
Merge pull request #22638 from sultann/master
...
fix wrong variable checking
2019-02-05 10:53:53 +00:00
Mike Jolley
d644f84e42
Merge pull request #22624 from tivnet/patch-6
...
WC_Log_Handler_File::remove - fix for MS Windows
2019-02-05 10:49:25 +00:00
Mike Jolley
becd76d74f
Merge pull request #22649 from woocommerce/fix/obw-storefront-not-offered-with-wp-5-default-theme
...
OBW: Offer Storefront when WP 5.0 default theme is active
2019-02-05 10:43:46 +00:00
Mike Jolley
5f5272ba2e
Merge pull request #22541 from woocommerce/pr/20830
...
Init cart widget when added to sidebar via the customizer
2019-02-05 10:39:29 +00:00
Mike Jolley
c7d2b1ac9b
Merge pull request #22646 from woocommerce/fix/22118
...
Fix Hold-stock behavior between simple products and variable products
2019-02-05 10:37:45 +00:00
Ron Rennick
7b5810d3da
limit page 2 not showing products to shop showing subcategories
2019-02-04 13:52:06 -04:00
Ron Rennick
249bf99df5
phpcs sniff fixes for class-wc-product-data-store-cpt.php
2019-02-04 12:55:21 -04:00
Ron Rennick
e64914bb3c
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-04 12:54:33 -04:00
Mike Jolley
ebdeab4c22
Added woocommerce_paypal_force_one_line_item filter
2019-02-04 16:31:17 +00:00
Mike Jolley
c47a6b9172
Tools and status require rest API init
2019-02-04 16:04:25 +00:00
Mike Jolley
53b9e219e7
Add notice when registration is complete
2019-02-04 15:49:10 +00:00
Mike Jolley
eed91070b1
Allow notice to persist after customer ID change
2019-02-04 15:48:59 +00:00
Mike Jolley
5b3b285a9d
phpcs
2019-02-04 15:31:35 +00:00
Paul Dechov
4164305b3c
OBW: Offer Storefront when WP 5.0 default theme is active
...
Because the OBW hadn't been updated to consider Twenty Nineteen a default theme, Storefront was omitted from the 'Recommended' step on the basis of Twenty Nineteen's WooCommerce support.
2019-02-04 09:58:39 -05:00
Mike Jolley
600510ea6f
Using wrong post type name in comparison
2019-02-04 13:56:35 +00:00
Mike Jolley
0f731d9c3f
Merge pull request #22642 from nishitlangaliya/issue-22601
...
fix:No alert for mis-matched password reset
2019-02-04 13:41:32 +00:00
Mike Jolley
1928f34699
Add notice hash to store notice cookie
...
Closes #21963
2019-02-04 13:18:09 +00:00
Mike Jolley
893b33973c
Merge branch 'fix/22147'
2019-02-04 13:05:40 +00:00
Mike Jolley
a5d62b83a8
Merge branch 'enhancement/woocommerce_display_product_attributes'
2019-02-04 11:25:13 +00:00
Mike Jolley
34dbf96847
Merge pull request #22410 from woocommerce/remove/simplify-commerce
...
Remove simplify commerce gateway from core
2019-02-04 11:23:23 +00:00
Mike Jolley
fe2e70d7dc
Merge pull request #22392 from woocommerce/fix/checkout-shipping-address-20975
...
For logged in customers, pull default address fields from customer object, not session object
2019-02-04 11:23:03 +00:00
Mike Jolley
24bc59a025
Merge pull request #22443 from woocommerce/fix/21705
...
Placeholder resizing improvements
2019-02-04 11:13:49 +00:00
Mike Jolley
7a1536eb5b
Merge pull request #22615 from woocommerce/performance/rest-api-includes
...
Performance: rest api includes
2019-02-04 11:12:12 +00:00
Mike Jolley
a4acf5643a
Merge pull request #22533 from woocommerce/fix/21265
...
Exclude `paged` from price slider
2019-02-04 10:18:51 +00:00
nishitlangaliya
e375ffd6e7
fix:No alert for mis-matched password reset
2019-02-04 12:02:59 +05:30
MD Sultan Nasir Uddin
527c7bc03a
fix wrong variable checking
2019-02-02 15:54:33 +06:00
Mike Jolley
7093c652e7
Add localisation to new label
2019-02-01 17:13:41 +00:00
Mike Jolley
a0f47fb429
404 on endpoints
2019-02-01 16:56:00 +00:00
Mike Jolley
5825a66a30
Cleanup method
2019-02-01 16:55:51 +00:00
Kelly Dwan
a2d5d3dff7
Accessibility: Add a label for product rating star icons
2019-02-01 11:47:14 -05:00
Mike Jolley
ebabb0a767
Merge branch 'master' of https://github.com/woocommerce/woocommerce
2019-02-01 16:10:24 +00:00
Mike Jolley
b694dffd1c
Merge branch 'add/22552'
2019-02-01 16:10:21 +00:00
Mike Jolley
e3f2cad544
Remove escape
2019-02-01 16:10:14 +00:00
Mike Jolley
aeb64b62bf
Merge pull request #22584 from jobthomas/jobthomas-ssr-urls
...
System Status URL naming and sorting now following WP core
2019-02-01 14:50:50 +00:00
Mike Jolley
d09b539f4b
Merge pull request #22621 from woocommerce/fix/22442
...
Implement main_query parameter in get_meta_query
2019-02-01 14:41:26 +00:00
Mike Jolley
8b7414cfb5
Apply fix to rating filter
2019-02-01 14:13:37 +00:00
Mike Jolley
a0d8a17900
fix name fallback
2019-02-01 13:59:09 +00:00
Ron Rennick
e1213f8432
remove the WP main query check
2019-02-01 09:49:31 -04:00
Mike Jolley
b64fad99f5
ordering fallback
2019-02-01 13:13:41 +00:00
Mike Jolley
3697f5104a
fix uncat display
2019-02-01 13:08:04 +00:00
Gregory Karpinsky
a7bee0325d
WC_Log_Handler_File::remove - fix for MS Windows
...
WC_LOG_DIR is defined with Unix slashes at the end. The `realpath` has Windows slashes and therefore `stripos` never works.
Consider also fixing slashes here:
`$this->define( 'WC_LOG_DIR', $upload_dir['basedir'] . '/wc-logs/' );`
2019-01-31 21:23:22 -05:00
Mike Jolley
40694118fc
Merge branch 'pr/21050'
2019-01-31 15:47:52 +00:00
Mike Jolley
a68ed39e63
use cart hash method on checkout
2019-01-31 15:46:41 +00:00
Mike Jolley
25ebc45fbc
Make consistent with checkout and rename filter
2019-01-31 15:46:26 +00:00
Ron Rennick
9855a18036
phpcs sniff fixes for class-wc-query.php
2019-01-31 11:18:19 -04:00
Ron Rennick
f5f020e6f4
add logic for $main_query parameter in get_meta_query
2019-01-31 11:15:14 -04:00
Galen Wright-Watson
64c76ee8b9
Adds filter for product categories displayed by `product_categories` shortcode.
2019-01-31 15:01:33 +00:00
Mike Jolley
effa51829c
Merge pull request #22573 from outis/fix-expired-link
...
Fix: #22572-can't access settings ("The link you followed has expired")
2019-01-31 14:50:36 +00:00
Mike Jolley
1e3e5a4528
Merge pull request #22580 from woocommerce/fix/22515
...
recalculate coupons after adding coupon to order
2019-01-31 14:38:59 +00:00
Mike Jolley
5e9253980b
Merge pull request #22566 from jenkoian/change-for-network-media-library-compatibility
...
Remove possibe superfluous wp_attachment_is_image() filter.
2019-01-31 14:20:35 +00:00
Mike Jolley
8ed1dacdc9
Merge pull request #22581 from woocommerce/fix/22561
...
include refunded orders in top sellers, earners in sales by product report
2019-01-31 13:51:51 +00:00
Mike Jolley
8c860c65bd
Merge pull request #22554 from woocommerce/fix/seo
...
Better `@id` generation for product structured data
2019-01-31 13:47:08 +00:00
Mike Jolley
ea0e8155eb
Merge pull request #22553 from woocommerce/fix/22449
...
use `name` for POST/PUT category image name for consistency
2019-01-31 13:46:33 +00:00
Mike Jolley
1dea9d6f48
Merge branch 'enhancement/21758'
2019-01-31 13:44:35 +00:00
Mike Jolley
74cd1ced37
Merge branch 'fix/20710'
2019-01-31 13:37:02 +00:00
Mike Jolley
a77578a989
Merge pull request #22347 from woocommerce/fix/20911
...
Tweak tax handling when exempt of VAT and woocommerce_adjust_non_base…
2019-01-31 13:33:36 +00:00
Mike Jolley
effb7b0a64
Merge pull request #22342 from woocommerce/update/22315
...
Update Emogrifier
2019-01-31 13:32:36 +00:00
Mike Jolley
a9bc5cf5ae
Merge pull request #22421 from woocommerce/update/22034
...
Clarify how discount is applied
2019-01-31 13:30:25 +00:00
Mike Jolley
7df55922ae
Merge pull request #22587 from woocommerce/performance/prime-variation-cache
...
Prime caches when reading variations
2019-01-31 13:29:28 +00:00
Mike Jolley
cb59b2c1d2
Merge pull request #22594 from woocommerce/fix/22583
...
Keep track of reload checkout when doing ajax order review
2019-01-31 13:28:29 +00:00
Mike Jolley
f7f2b99211
Merge pull request #22551 from princeahmed/master
...
Fix test get request
2019-01-31 13:11:03 +00:00
Shubham Mathur
1f21fd86c5
Fix for images with no metadata ( #22562 )
...
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
* Fix for images with no metadata
Fix for error when images have no metadata or their metadata is removed.
2019-01-31 13:01:59 +00:00
Mike Jolley
133d108bd8
Merge pull request #22269 from Prospress/fix/22247
...
convert user creation GMT datestamp to local datetime in API
2019-01-31 12:56:40 +00:00
Mike Jolley
808c90b5df
Merge pull request #22605 from woocommerce/add/22579
...
Filter for modifying the user queries on customer reports
2019-01-31 12:49:28 +00:00
Mike Jolley
c5b28e49be
Merge pull request #22602 from 10by/patch-1
...
Updating Peruvian currency
2019-01-31 12:42:50 +00:00
Gregory Karpinsky
17a59c5004
Typo in class-wc-log-levels.php
2019-01-30 23:31:39 -05:00
Mike Jolley
dd981be615
We need auth early
2019-01-30 18:12:33 +00:00
Mike Jolley
cd4039e078
Only do includes on rest requests
2019-01-30 17:38:41 +00:00
Mike Jolley
5b57cb5356
Layered nav should use base link
2019-01-30 16:29:01 +00:00
Mike Jolley
77eba86818
Get rid of reflection method to speed up set_props
2019-01-30 16:21:06 +00:00
Mike Jolley
9a8d11e9f6
phpcs
2019-01-30 16:20:49 +00:00
Mike Jolley
7eda1bb412
Only use WP Error when needed
2019-01-30 16:20:41 +00:00
Mike Jolley
a16c677baf
Missing _price
2019-01-30 16:20:23 +00:00
Mike Jolley
8e51ab2fcd
Set props using one get_post_meta call
2019-01-30 16:20:17 +00:00
Mike Jolley
e129d18c00
get_current_page_url should not persist
2019-01-30 16:18:56 +00:00
Mike Jolley
23b0fdbc1f
Fix id usage
2019-01-30 16:11:44 +00:00
Mike Jolley
8fc7e2be99
prefix tax cache key
2019-01-30 16:11:37 +00:00
Mike Jolley
57ccde6643
get_product_type cache
2019-01-30 16:11:29 +00:00
Mike Jolley
cb1c579262
Cache tax class slugs
2019-01-30 16:11:19 +00:00
Mike Jolley
874f4830a6
cache_value cleanup
2019-01-30 16:11:11 +00:00
Mike Jolley
4622af890a
wc_attribute_taxonomy_slug cache
2019-01-30 16:11:04 +00:00
Mike Jolley
a5bc236c66
get_current_page_url cache set
2019-01-30 16:10:56 +00:00
Mike Jolley
fa58f3bb9f
Lax the kses here - link and name is already escaped.
2019-01-30 16:10:48 +00:00
Mike Jolley
536d71a5f6
cache get_current_page_url
2019-01-30 16:09:16 +00:00
Mike Jolley
d167cb0a95
Add caching for template names to avoid multiple lookups
2019-01-30 16:09:08 +00:00
Mike Jolley
6fa7995f3a
Only check file exists if filtered
2019-01-30 16:09:01 +00:00
Mike Jolley
35819ccb6e
Small refactor for clarity
2019-01-30 16:08:53 +00:00
Mike Jolley
4eb0080605
apply_filters_deprecated to avoid conflict with wp profile
2019-01-30 16:06:51 +00:00
Mike Jolley
0dd7cd2b8b
Improved post_class generation to avoid loading more product objects
2019-01-30 16:02:22 +00:00
Mike Jolley
bd076d42da
Refactor wc_get_product_class to avoid $post object
2019-01-30 16:02:00 +00:00
Mike Jolley
59e0867afe
Add missing post_password prop
2019-01-30 16:01:54 +00:00
Mike Jolley
1ba0194685
Remove external lookup of ips on localhost
2019-01-30 15:59:02 +00:00
Gerhard
a2e4ca70b6
PHPCS fixes
2019-01-30 11:33:51 +02:00
Gerhard
429f515704
Introduce woocommerce_admin_report_customers_user_query_args and woocommerce_admin_report_customer_list_user_query_args filters to altering the queries running when retrieving users for reports.
2019-01-30 11:19:34 +02:00
Toby Robles
7fa1bd78c9
Updating Peruvian currency
...
Since 2015, the government ordered that the "Nuevo Sol (S /.)" be renamed simply "Sol (S/)", also suppressing the use of the point (S/.) in the monetary sign (S/)
2019-01-29 20:01:04 -05:00
Job
185041da87
Removed title case
...
As requested here by https://github.com/woocommerce/woocommerce/pull/22584#pullrequestreview-197707971
2019-01-29 20:40:59 +01:00
Boost
d9c971ee20
Update class-wc-structured-data.php. Line 214, changed wpautop to wp_filter_nohtml_kses
2019-01-29 13:27:05 +00:00
Gerhard
69baf175c1
After some testing using area-hidden seems to deliver the best results for not producing the hissing sound on reviews.
2019-01-29 13:48:47 +02:00
Gerhard
94f64f3851
PHPCS fixes
2019-01-29 13:36:16 +02:00
Gerhard
e74f0acc19
Add a screen reader label to the star rating div to avoid screen readers trying to read the text of the star font.
2019-01-29 13:34:04 +02:00
Gerhard
25e562400e
Put reload checkout in variable before unsetting it and then calling it again after it was unset.
2019-01-29 13:05:02 +02:00
Ron Rennick
a663f56306
two more sniffs in wc-template-functions.php
2019-01-28 14:36:39 -04:00
Rodrigo Primo
c798ea9ea8
Fix phpcs errors
2019-01-28 15:20:22 -02:00
Ron Rennick
8e18d05634
phpcs sniff fixes for class-wc-breadcrumb.php
2019-01-28 11:30:11 -04:00
Ron Rennick
475c35ed7a
phpcs sniff fixes for wc-template-functions.php
2019-01-28 11:25:45 -04:00
Ron Rennick
db2bc48849
don't force shop loop display mode to products when query page >1
2019-01-28 11:23:25 -04:00
Mike Jolley
7c0273fa12
Prime caches when reading variations
2019-01-28 15:00:48 +00:00
Peter Fabian
dda4cab70c
Updated todo to use the common format.
2019-01-28 13:13:12 +01:00
Job
2174937f4f
Translatable
2019-01-28 12:28:48 +01:00
Job
b0aa198d4c
Updated system status report
...
Two changes:
* Followed the WP core order of mentioning wordpress URL and site URL
* Followed the WP core naming of these two URLs - confusingly the home URL in core is described be "Site Address ()"
![http://cld.wthms.co/xo5xtL ](http://cld.wthms.co/xo5xtL+ )
Link to image here: http://cld.wthms.co/xo5xtL .
2019-01-28 12:24:57 +01:00
Ron Rennick
a93418b826
phpcs sniff fixes for class-wc-report-sales-by-product.php
2019-01-27 19:27:30 -04:00
Ron Rennick
f42c42066b
include refunded orders in top sellers, earners in sales by product report
2019-01-27 19:24:08 -04:00
Ron Rennick
3f24ad8d4c
phpcs sniff fixes for abstract-wc-order.php
2019-01-27 11:38:08 -04:00
Ron Rennick
d32f189f27
recalculate coupons after adding to order
2019-01-26 23:57:32 -04:00
Galen Wright-Watson
65bb805cbb
Fix: #22572-can't access settings ("The link you followed has expired"). Cause: if anything adds to `$_POST`, this triggers WooCommerce to try to save settings; if there's no nonce, authorization fails, resulting in the message. Soln: check for specific element ('save') in `$_POST` to determine whether to save elements, rather than testing that `$_POST` is non-empty.
2019-01-25 18:08:00 -08:00
Mike Jolley
b38ff764b4
Correct syntax err
2019-01-25 20:48:39 +00:00
Mike Jolley
32ae0192e5
Use WP term meta functions
2019-01-25 20:47:54 +00:00
Mike Jolley
8823559880
get rid of old term meta table
2019-01-25 20:44:25 +00:00
Mike Jolley
d8fe798825
Revise meta ordering system to take care of default sorting
2019-01-25 20:39:55 +00:00
Mike Jolley
8127610afe
Remove menu_order - not needed
2019-01-25 20:01:20 +00:00
Mike Jolley
7f4444ef7c
direct meta sort
2019-01-25 19:57:06 +00:00
Mike Jolley
05ab331ea8
No need for default sorting
2019-01-25 19:56:12 +00:00
Mike Jolley
a38add7ac8
No need for default sorting
2019-01-25 19:55:25 +00:00