Rodrigo Primo
ae1717cd4f
Fix PHPCS violations automatically using PHPCBF
2019-12-13 17:51:14 -03:00
Rodrigo Primo
f06ad5d78a
Replace removed WordPress.Security.NonceVerification.NoNonceVerification
...
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:
```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```
(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31)
)
This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Claudio Sanches
d807119121
Introduced woocommerce_admin_order_buyer_name filter
2019-05-16 19:02:57 -03:00
Mike Jolley
4e50a8f6dd
Escape strings passed to selectwoo
2019-04-17 12:02:20 +01: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
Mike Jolley
868e7841e6
Merge pull request #21860 from rellect/wc_case
...
Rename wc() to WC() for consistency
2019-01-08 14:29:59 +00:00
Mike Jolley
8ad3491b99
Add option to control if remove personal data bulk action is allowed
2019-01-07 11:22:29 +00:00
Mike Jolley
9245687f6a
Merge remote-tracking branch 'origin/master' into enhancement/erasure-setting-22055
2019-01-07 11:07:12 +00:00
Rodrigo Primo
ff74ecec86
Fix orders list in the admin
...
WP 5.0.2, which was released yesterday, sets `$query_vars['post_status']` to an empty string instead of leaving it unset (https://core.trac.wordpress.org/ticket/45719 and https://core.trac.wordpress.org/changeset/44185 ). This change broke the WC orders list in the admin when listing orders of all post statuses as we were checking if `$query_vars['post_status']` was not set to add all order statuses to this variable (125eaaf241/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L799)
).
To workaround this problem, this commit changes the check to verify if `$query_vars['post_status']` is empty instead of verifying if it is not set.
2018-12-20 09:56:02 -02:00
Rodrigo Primo
948a1dc300
Fix PHPCS violations automatically using PHPCBF
2018-12-20 09:48:14 -02:00
Ron Rennick
267b5ed569
only include order erasure bulk action if erasure is enabled in settings
2018-11-29 16:20:56 -04:00
Ron Rennick
59c1b2f669
phpcs sniff fixes class-wc-admin-list-table-orders.php
2018-11-29 16:16:51 -04:00
Refael Iliaguyev
127f1cb276
Use WC() instead wc() for consistency
2018-11-08 12:59:07 +02:00
Rodrigo Primo
7db65aea2c
Revert "Use post_author field instead of post meta in orders admin page"
...
This reverts commit 6ecc3bc442
.
2018-10-29 11:46:02 -03:00
Rodrigo Primo
487ac201c0
Revert "Bump WC version to 3.4.0"
...
This reverts commit 7f43c39f2f
.
2018-10-29 11:44:32 -03:00
Rodrigo Primo
1d9ab63134
Revert "Punt to WC version 3.5.0"
...
This reverts commit ccf10f6ab2
.
2018-10-29 11:37:24 -03:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
Mike Jolley
5e6405b650
Merge branch 'master' into update/13359
2018-06-15 15:12:12 +01:00
Mike Jolley
cca7972d8f
Initialize payment gateways before running bulk actions
2018-06-12 13:14:09 +01:00
Rodrigo Primo
dd8bf8b522
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-11 10:44:14 -03:00
Mike Jolley
52854b7690
Add qty to order via modal, include stock qty in formatted name display for reference
2018-06-08 16:18:32 +01:00
Mike Jolley
6b8cd9661f
exclude new meta data from admin screens
2018-06-08 12:18:15 +01:00
Ewout Fernhout
5f57e3b524
add filter for bulk action IDs
2018-06-05 12:07:35 +02:00
Ewout Fernhout
2ab47706a7
apply bulk actions oldest to newest
2018-06-01 12:40:22 +02:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
Rodrigo Primo
ccf10f6ab2
Punt to WC version 3.5.0
2018-04-17 11:12:46 -03:00
Rodrigo Primo
a7d2c5dd6e
Merge branch 'master' into update/use-post-author-for-customer-id
2018-04-03 15:13:07 -03:00
Mike Jolley
7a568e2f68
Personal data removal experiment
2018-03-16 13:53:18 +00:00
Rodrigo Primo
2ec74d2e15
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-orders.php
2018-03-06 15:08:30 -03:00
Mike Jolley
c66d676680
Simplify date check
2018-02-20 11:21:00 +00:00
Caleb Burks
3d7f674c54
Show full date for future orders
2018-02-19 21:25:03 -05:00
claudiulodro
af5cb5df93
Resolve merge conflicts
2018-02-19 10:45:06 -08:00
Mike Jolley
e9bc9d3b1f
Indentation
2018-02-19 12:41:55 +00:00
Remi Corson
ad240278bd
Do not display H2 note if no note
...
This will make the note title not appear if no note is defined. However, some CSS styling is needed as padding was originally added via .wc-order-preview-address wichi was containing the note section.
2018-02-16 15:24:31 +01:00
Remi Corson
94802c7a8b
Fix #18995
...
Fixes #18995 by moving the note section outside the addresses container and unlink it from the shipping method conditional statement.
2018-02-16 12:12:15 +01:00
Mike Jolley
65278efd44
Allow modal to be wider and fix button wrapping
2018-02-15 12:46:47 +00:00
Mike Jolley
00c43e76c1
Tweak customer text
2018-02-05 14:47:12 +00:00
Manos Psychogyiopoulos
e77ec2444e
Add woocommerce_admin_html_order_preview_item_class filter
...
For parity with woocommerce_admin_html_order_item_class filter in html-order-item.php view.
2018-01-18 16:57:51 +02:00
Rodrigo Primo
7f43c39f2f
Bump WC version to 3.4.0
2018-01-09 15:42:13 -02:00
Rodrigo Primo
bf5c6f17a7
phpcs fixes
2018-01-09 15:42:08 -02:00
Rodrigo Primo
9de8478b42
Merge branch 'master' into update/use-post-author-for-customer-id
2018-01-09 15:21:12 -02:00
Beka Rice
f0a33bfa79
[WC 3.3] Fix fatal if gateway is deactivated
2017-12-13 13:59:07 -05:00
Rodrigo Primo
41af89f392
Merge branch 'master' into update/use-post-author-for-customer-id
2017-12-13 10:22:55 -02:00
Rodrigo Primo
e5160b28a9
Manually fix some PHPCS violations
2017-12-13 09:41:34 -02:00
Rodrigo Primo
5915e6e892
Fix WPCS violations automatically using phpcbf
2017-12-11 14:24:54 -02:00
Rodrigo Primo
fc43bde6f8
Replace PHP >= 5.4 syntax with PHP 5.2 alternative
...
Commit 8f37ea33ed
added the following line that works only on PHP >= 5.4 as function array dereferencing is not present in PHP version 5.3 or earlier. This commit fixes it by replacing that line with a alternative that is compatible with PHP >= 5.2.
6ecc3bc442/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L189)
2017-12-11 11:20:42 -02:00
Rodrigo Primo
6ecc3bc442
Use post_author field instead of post meta in orders admin page
...
This commit changes the query used to get a list of orders in the orders admin page to use post_author field instead of the _customer_user post meta when filtering orders by customer.
Testing this change on a local WooCommerce install with about 2.5 million entries in the wp_posts table and about 100 million entries in the wp_postmeta table I got the following results:
- The original query using _customer_user took 28 seconds to run
- The new query using post_author took 0.0008 seconds to run
2017-12-11 10:24:19 -02:00
Mike Jolley
5e51af9d2c
Fix white space in order actions
2017-12-07 15:50:27 +00:00
Mike Jolley
d8921de735
min
2017-12-04 13:45:52 +00:00