Commit Graph

52716 Commits

Author SHA1 Message Date
Vlad Olaru cf72af9d38
refact: Return early when filtering 2023-07-12 20:26:20 +03:00
Vlad Olaru 35b397940d
Change the has_wcpay logic to better align with our server intent 2023-07-12 20:25:48 +03:00
Vlad Olaru d7f0208f5a
Reduce incentive cutoff condition to just WCPay plugin active 2023-07-12 20:22:38 +03:00
Vlad Olaru e5381787b2
docs: More precise docs 2023-07-12 20:21:27 +03:00
Vlad Olaru 758139ee00
refact: Add type hints 2023-07-12 20:20:13 +03:00
Vlad Olaru 36abbfd233
refact: Use short array syntax 2023-07-12 20:14:24 +03:00
Niels Lange 5bb07fd579
Add snippet for adding content above the login/register form (#39177) 2023-07-12 16:18:25 +02:00
Niels Lange 4b7e828cf9
Add directory for snippet docs and include README.md (#39176) 2023-07-12 16:14:00 +02:00
Darren Ethier a5f46e9b96
Use sentence case for heading.
Co-authored-by: Niels Lange <info@nielslange.de>
2023-07-12 08:32:47 -04:00
Darren Ethier ba053f791e
Update to follow WooCommerce CS
Co-authored-by: Niels Lange <info@nielslange.de>
2023-07-12 08:32:13 -04:00
Sam Seay e91a72b8a1
WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096)
* Extract docs manifest generation into a CLI tool
2023-07-12 19:29:15 +12:00
Phill 64942cb195
Enhancement class-wc-admin-api-keys-table-list.php
Replaced Ellipses for asterisk when hiding part of the API Key
2023-07-12 14:20:43 +07:00
Vedanshu Jain 435619b5c1 Add filter `woocommerce_redirect_order_location` for consistency with posts and HPOS. 2023-07-12 11:39:19 +05:30
rodelgc dddd0e65ac
E2E: Update locators and force-check in `order-email-receiving` and `order-emails` specs (#39159)
* Add changelog

* Update locator and force check
2023-07-11 13:02:00 -07:00
Matt Sherman 17f83af095
Product Editor: Add help menu item to description modal editor (#39178)
* More menu skeleton

* Help menu item

* Tracks event for help menu item

* Remove invalid/unused ref from MoreMenu

* Changelog
2023-07-11 13:19:53 -04:00
Vedanshu Jain 780f2a1d99 Coding standard fixups. 2023-07-11 20:17:03 +05:30
Thilina Pituwala 19b3d40595
Prevent unwanted helper api calls when loading subscription notes (#37378)
* Load subscription notes only via WC Admin home page and extensions page to avoid calling helper API endpoints unnecessarily.

* Adding change log.

* Moving connection check after the early return statements.

* Use admin_head hook instead of admin_init to load subscriptions notes.

Since `get_current_screen` function can not be called within `admin-init` hook it is not possible to determine if the subscriptions are being loaded via WC related page or not.

* Update doc block.
2023-07-11 09:02:32 -05:00
Vedanshu Jain 5c5b2ce289 Fix syntax from GH UX commit + use consistent description. 2023-07-11 18:49:35 +05:30
Vedanshu Jain 95d2220c7f
Move out HTML out of translatable string for easier translation.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:45:06 +05:30
Vedanshu Jain bbd93841da
Fix indentation.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:44:09 +05:30
Vedanshu Jain c0dc48df00
Add the `the`.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:43:58 +05:30
Vedanshu Jain ffb20eb7ec
Use proper pluralization of pending sync message.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:43:33 +05:30
Vedanshu Jain bdffe69340
Capitalisation fix for posts.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:41:50 +05:30
Vedanshu Jain 2c53c35a61
Add name so that it's displayed in the incompatible plugins UX.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:41:32 +05:30
Nathan Silveira e85491bdea
Focus on name field when mounting and update summary field UI (#39050)
* Move placeholder of summary to help text at bottom of the component

* Focus the name field when mounting

* Add changelog

* Create 'autoFocus' block attribute instead of using useEffect

* Add changelog
2023-07-11 09:48:26 -03:00
Vedanshu Jain 09b6d67d4f phpcs fix. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 98601052b0 Mior fixups with enable permissioning. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 1d9bed1b5d Fix notice. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 685b6a12df Change method name to be more descriptive. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 52adda154a Fixups when enabling/disabling HPOS. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 8af85218be Flush cache since we are updating option. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 661219fb52 Remove expectation of HPOS setting in advance test. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 37b8094704 Temporary remove COMMIT to see if it fixes tests. 2023-07-11 17:19:29 +05:30
Vedanshu Jain f02b6c5b26 More unit test fixes + throw error when transaction level is invalid. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 3c59b8b4dc More resilient unit tests + return errors as expected from fetching functions. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 56d0bb2fb9 Commit after flipping HPOS toggle to prevent PHPUnit from calling rollback. 2023-07-11 17:19:27 +05:30
Vedanshu Jain c3e84597c6 Coding standard fixes 2023-07-11 17:18:13 +05:30
Vedanshu Jain 84f54d5618 Reduce the scope of transaction and enable by default for all. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 2ed274dd78 Return appropriate setting if WC is installing. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 945ebf7d71 Fix options for back compat and readibility. 2023-07-11 17:18:13 +05:30
Vedanshu Jain b95c58bd60 Better function names. 2023-07-11 17:18:13 +05:30
Vedanshu Jain b4dc98a62a Remove auto flip feature as its risky to flip tables without merchant interaction. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 1c40f38615 Mark HPOS as always enabled. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 88b696d14a Remove hook for feature setting screen and transaction level setting. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 01bc0ef89e Add name attr so that it displays correctly in plugins incompat page. 2023-07-11 17:18:13 +05:30
Vedanshu Jain a2ba3f6b68 Use inbuilt rendering block instead of writing a new template. 2023-07-11 17:18:13 +05:30
Vedanshu Jain f51d6618ef Some more fixups to refreshed UX. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 187ca07098 Add changelog. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 47ca74bdcf Add initial layout for new HPOS setting. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 1d04ddcd11 Pass the correct param in woocommerce_settings_features. 2023-07-11 17:18:13 +05:30