Commit Graph

21426 Commits

Author SHA1 Message Date
Jonathan Sadowski db44d15e3f Apply patch to class-wc-webhook-data-store.php to fix sqli issue 2021-07-16 14:59:02 -05:00
Roy Ho 95abba7eeb
Merge pull request #30041 from woocommerce/add/29609
Sync the product attributes lookup table on product creation/change/deletion
2021-07-16 15:03:54 +01:00
Nestor Soriano d3bfd33e98
Use 'esc_attr' instead of suppressing the PHPCS warning 2021-07-16 09:16:20 +02:00
Barry Hughes 97a397dba6
Merge pull request #30278 from woocommerce/fix/29969
Use single quotes to delineate mysql values instead of double quotes.
2021-07-15 14:44:00 -07:00
Mahmoud Saeed 7cdf8d46f6 Fix fatal error if $screen is null 2021-07-14 17:51:44 +02:00
roykho aa939f6081
Use single quotes to delineate mysql values instead of double quotes closes #29969 2021-07-14 08:45:01 -07:00
Nestor Soriano 9017c953bd
Remove the metabox for regenerating attribute lookup data for single product
Instead, a product selector has been added to the "Regenerate
product attributes lookup table" entry in the tools page. If a product
is selected, the tool regenerates the data only for that product;
otherwise, it regenerates the entire table.

This has forced a change on how the tools page is rendered. Now,
instead of each tool being just a description and a trigger link,
a form with GET method is rendered for each tool. The forms are rendered
first and then the tools, since HTML doesn't allow to include forms
inside tables; each button is associated to its form with a "form"
attribute.

Additionally, now the tools array returned by the woocommerce_debug_tools`
hook can have a 'selector' array with the details needed to render a
selector, which will also be part of the form for the tool.
2021-07-14 12:01:42 +02:00
Néstor Soriano 6cc150e7be
Merge pull request #30194 from woocommerce/fix/29235
Fix/29235
2021-07-07 10:56:17 +02:00
jonathansadowski 6e208c9336
Merge pull request #29901 from woocommerce/fix/29884
Allows set downloadable permissions to any downloadable product in any order
2021-07-06 15:10:09 -05:00
roykho 5d0bcfa053
Revise logic to hook into admin_init to trigger adding note instead of scheduling 2021-07-06 09:21:42 -07:00
Barry Hughes 2cce7f3af8
Merge pull request #30199 from RhnSharma/revise-docblock-wc-format-decimal
Revise docblock for wc_format_decimal()
2021-07-02 07:50:56 -07:00
Rohan Sharma 5087e00f17 task: revise docblock for wc_format_decimal() 2021-07-01 17:41:33 +05:30
Fitim Vata 482d019304 Change schema description for api_restock 2021-07-01 06:42:35 +02:00
roykho d9773ee0e4
Fix typo 2021-06-30 21:02:15 -07:00
roykho 5bfee13c44
Remove trailing comma 2021-06-30 20:23:55 -07:00
roykho ade4478912
Add WC Admin inbox note when page is created 2021-06-30 13:03:47 -07:00
Fitim Vata 3e17c0b618 [Rest] Refunds add api_restock param to restock items 2021-06-30 00:19:23 +02:00
roykho 946aeb8d15
Update create_pages function to support post_status 2021-06-29 13:51:35 -07:00
roykho be53a0283e
Create the refund and returns policy page on a DB update routine 2021-06-29 12:18:01 -07:00
roykho 4585c7ef7f
Add refund and return page for creation 2021-06-29 10:06:21 -07:00
Barry Hughes 74dfa0d825
Merge pull request #30165 from woocommerce/fix/29768
Remove potential for type (and division-by-zero) errors when determining thumbnail sizes.
2021-06-29 07:34:33 -07:00
roykho edd5463691
Simplied fix per comment 2021-06-29 06:41:16 -07:00
Vedanshu Jain 89aac04387
Merge pull request #30138 from woocommerce/fix/30136-no-block-templates-for-products
Exclude block templates from showing up in product edit page
2021-06-29 17:12:17 +05:30
Michael P. Pfeiffer a65f31e2de Return early if gutenberg_get_block_template function does not exist 2021-06-29 13:10:45 +02:00
Claudio Sanches 13e88d5bb3
Merge pull request #29967 from diablodale/fix25288-partial
apply filter to errant hardcoded redirect on logout for custom endpoint
2021-06-28 17:25:05 -03:00
Néstor Soriano 1f1f331432
Merge pull request #30081 from woocommerce/frosso/wcs-extensions-bannes-updates
chore: copy changes on WCS banner
2021-06-28 16:52:44 +02:00
roykho c56f4dea20
Revert this change for a different PR 2021-06-25 14:08:06 -07:00
roykho 1b8acc567b
Cast values when performing math operations to prevent PHP 8 fatal errors 2021-06-25 13:31:59 -07:00
roykho bb2664d56a
Use a helper divider method to account for strings and zeros when dividing closes #29768 2021-06-25 13:30:04 -07:00
Vedanshu Jain de9a0b176b
Merge pull request #30082 from woocommerce/frosso/remove-canada-post-extension-banner
chore: remove WCS canada post mentions
2021-06-25 15:38:29 +05:30
Néstor Soriano 761108ccce
Merge pull request #29749 from ovidiul/vip/fix_batch_export
Fixing batch export limitations
2021-06-25 09:34:23 +02:00
Néstor Soriano 21f7f97079
Merge pull request #30123 from woocommerce/add/24641
Introduces a new hook after an email is sent
2021-06-24 09:15:18 +02:00
Claudio Sanches 5128a45936
Apply suggestions from code review 2021-06-22 15:37:18 -03:00
vedanshujain 02f7a86db0 Specify default sort order for webhok DS. 2021-06-22 12:28:44 +05:30
vedanshujain 93fe370966 Update version to prep for 5.6 2021-06-22 12:28:20 +05:30
vedanshujain f88586eb1f Remove download headers when file was not served. 2021-06-22 12:24:47 +05:30
Albert Juhé Lluveras ebee0e157e Exclude block templates from showing up in product edit page 2021-06-21 20:41:48 +02:00
Claudio Sanches 88af805f31 Introduces woocommerce_email_sent hook 2021-06-18 11:14:11 -03:00
Barry Hughes 77127f93af
Merge pull request #30124 from woocommerce/Remove-ABSPATH-check-on-WC_Logger_Interface
Remove abspath check on wc logger interface
2021-06-17 09:47:50 -07:00
Claudio Sanches a19b2a34cf Introduces a new hook after an email is sent
Closes #24641
2021-06-17 12:36:25 -03:00
Claudio Sanches 9f8d3e84dc
Merge pull request #29970 from woocommerce/fix/29686
Include download IDs in csv import/export to retain import download permissions.
2021-06-17 12:11:20 -03:00
Vedanshu Jain 39c057f636
Merge pull request #29971 from woocommerce/hide-pypl-on-new-sites
Hide PayPal Standard on new installs
2021-06-17 19:40:53 +05:30
Nestor Soriano 48c44a6128
Add tests for product deletion in LookupDataStoreTest. 2021-06-17 15:31:23 +02:00
vedanshujain 381626069e Load PayPal gateway directly to prevent potential gateway errors.
`install()` method may be called before wc_version is set, this may cause unknown errors in 3PD gateways.

So its safer to only load PayPal gateway directly.
2021-06-17 14:32:21 +05:30
roykho f9e59fc9a9
At cancelled status for bulk actions closes #29928 2021-06-16 11:53:09 -07:00
Jonathan Sadowski c67fda9552 Update importer to grab downloads id from export file when updating rows 2021-06-15 10:06:37 -05:00
Jonathan Sadowski 84eaa48511 Update exporter to include download IDs for possible retention on import 2021-06-15 10:06:37 -05:00
Nestor Soriano 0192ed0b93
Change LookupDataStore to allow updates being done in a scheduled action.
There's a new option, 'woocommerce_attribute_lookup__direct_updates'.
When set to 'yes', updates to the lookup table are performed as soon
as the change happen; otherwise, a scheduled action will do it,
the hook name is 'woocommerce_run_product_attribute_lookup_update_callback'
(the existing hook in the DataRegenerator class is renamed to
'woocommerce_run_product_attribute_lookup_update_callback')

Also, the settings page has a new "Advanced" section with a checkbox
to control the value of that new option; the section is visible only
when the feature has been enabled via LookupDataStore::show_feature.
2021-06-15 16:33:29 +02:00
Albert Juhé Lluveras ee08d2d110 Register woocommerce.css so it can be enqueued in the editor 2021-06-14 08:32:26 +02:00
frosso d6724ad67d chore: remove WCS canada post mentions 2021-06-10 13:07:24 -05:00