Commit Graph

21555 Commits

Author SHA1 Message Date
Dan Bitzer 6f76a7b538 Add `since` tag for when filter was added 2021-08-11 12:46:02 +09:30
Dan Bitzer 6a569ec3a1 Add comment about global variable usage 2021-08-11 12:23:21 +09:30
Dan Bitzer 3dd4df2ff5 Convert global variable to filter arg
To clean up the `woocommerce_order_actions` filter.
2021-08-11 12:16:43 +09:30
Dan Bitzer c5f6a0c3e4 Remove author and category tags to meet reqs 2021-08-11 12:15:58 +09:30
And Finally 608f4ef44e Merge branch 'trunk' into update/marketplace-1
# Conflicts:
#	tests/e2e/core-tests/specs/merchant/wp-admin-extensions-connect-wccom.test.js
2021-08-10 16:02:18 +01:00
jonathansadowski 7ef09ba1be
Merge pull request #30423 from woocommerce/fix/29630
Fix variations menu order not applying correctly when manually set cl…
2021-08-09 14:32:21 -05:00
Roy Ho 81febc4a57
Update includes/admin/meta-boxes/class-wc-meta-box-product-data.php
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2021-08-09 17:53:17 +01:00
Claudio Sanches 0284679b70
Merge pull request #30176 from woocommerce/fix/payment-token-default-status-false
Fix payment token default status can't be disabled
2021-08-09 13:05:40 -03:00
And Finally 0ceaf93b35 Addressing PHPCS errors.
- Deleted precision indentation on lines 72 and 80.
- Deleted unnecessary `echo` from before `esc_html_e` cals.
2021-08-09 17:02:58 +01:00
And Finally a44d9c9827 CSS and layout tweaks.
- Changed `wc_addons_wrap` to `wc-addons-wrap` to adhere to stylelint class rule.
- Removed `max-width` from `wc-addons-wrap` – we need the purple header to stretch to full width. Added new `wc-subscriptions-wrap` class to give the `max-width` to the My Subscriptions page.
- Changed width of product cards to use `calc`, so that any trailing odd-numbered card has the same width as the others.
- Fixed some stylelint issues. Moved style blocks to address `no-descending-specificity` warnings. Remove quotes from URLs and font names that don't need them.
- Gave `#screen-meta-links` absolute position on the marketplace page, so it overlays the full-width purple header.
2021-08-09 16:48:57 +01:00
Roy Ho be200f5047
Merge pull request #30443 from woocommerce/fix/26975
Fix: product attribute permalinks not working for non-ASCII characters
2021-08-09 15:32:44 +01:00
And Finally 1ec1f25d26 Merge branch 'update/marketplace-1' into update/styling-product-cards 2021-08-09 15:00:51 +01:00
Roy Ho cc106854b4
Merge pull request #30448 from alexmigf/master
New hook for product external options
2021-08-06 16:28:34 +01:00
Maria Górska-Piszek 1d9e481953 Update document title for My Subscriptions. 2021-08-06 14:22:42 +02:00
And Finally 55235909aa Correcting escaping in the subscriptions list in `html-main.php` – `esc_html` was escaping a `strong` tag in the renewal message. 2021-08-06 12:44:39 +01:00
Maria Górska-Piszek d02ede8389 Update Marketplace and My Subscriptions page titles. 2021-08-06 13:26:22 +02:00
Maria Górska-Piszek 379960e8c1 Merge branch 'update/split-extensions-pages' of github.com:woocommerce/woocommerce into update/split-extensions-pages 2021-08-06 13:24:14 +02:00
Néstor Soriano c11739e7ed
Merge pull request #30256 from YordanSoares/issue-30255-fix-payment-method-title-for-the-option-other
Fix the payment method title for the option "Other"
2021-08-06 12:41:55 +02:00
Nestor Soriano 6c28cd00a6
Fix: product attribute permalinks not working for non-ascii characters
Product attribute lists permalinks ("/attribute/term") were not working
for attribute names containing non-ascii characters. That's because
when the attribute taxonomy was registered the url rewrite rules were
created using the sanitized version of the attribute name, which
implies converting these characters into the urlencoded version.

The fix consists of applying "urldecode" to the sanitized attribute
name before using it to create the rewrite rule. The sanitization
needs to be kept for compatibility purposes, since it also replaces
latin characters with accents into the non-accent versions
(this conversion won't be affected by "urldecode")
2021-08-06 11:45:49 +02:00
Vedanshu Jain 08e202ac0f
Merge pull request #30325 from woocommerce/add/wc-customer-data-type-prop-30272
Specify the `$object_type` property for the `WC_Customer` class
2021-08-05 22:05:29 +05:30
And Finally ebca1cb51b
Merge branch 'update/marketplace-1' into update/split-extensions-pages 2021-08-05 17:25:10 +01:00
Maria Górska-Piszek f83b52d696 Fix phpcs issues. 2021-08-05 18:05:48 +02:00
Maria Górska-Piszek e14efd7dae Cleanup unused functions and files. 2021-08-05 17:53:18 +02:00
Maria Górska-Piszek e7df403b73 Align product cards on the Extensions page. 2021-08-05 11:03:28 +02:00
roykho 3d37ac60bf
Fix variations menu order not applying correctly when manually set closes #29630 2021-08-04 09:03:35 -07:00
Nestor Soriano 8095482f69
Fix: the same set of related products is always displayed
get_related_products_query in the WC_Product_Data_Store_CPT class is
querying the suitable products with a "limit" clause, this causes
that products down in the table are never picked for display.
This commit adds a ORDER BY RAND() to the query so that all products
have a chance to get picked.
2021-08-04 12:14:20 +02:00
Maria Górska-Piszek 51d0a4563c Add product card styling. 2021-08-03 13:35:58 +02:00
Néstor Soriano 92ffb0970b
Merge pull request #30385 from woocommerce/fix/29988
Allow user with capabilities to view downloadable image closes #29988
2021-08-03 10:35:15 +02:00
And Finally e92f99d8ee Merge branch 'update/marketplace-1' into fix/admin-helper-views-main-phpcs 2021-08-03 09:33:31 +01:00
Gerhard 6f9e7d1074 New marketplace addons header 2021-08-03 09:32:31 +01:00
And Finally a78e8354cb Addressing PHPCS issues.
- Added file doc comment.
- Escaping direct output and translated output.
- Added translators comments.
- Renaming `$action` vars to `$subscription_action`, so they don't override the global of the same name.
2021-08-03 09:30:07 +01:00
Nestor Soriano e1f19e2d23
Fix: 'woocommerce_email_settings' filter being triggered twice. 2021-08-02 09:33:18 +02:00
Gerhard d3d8aae4b4
New marketplace addons header 2021-07-30 12:58:51 +02:00
Maria Górska-Piszek 08555ff778 Change My Subscriptions page header. 2021-07-30 11:09:08 +02:00
Maria Górska-Piszek a9ea6ecebc Change menu item name to Marketplace. 2021-07-30 11:00:53 +02:00
roykho d7493e10e1
Allow user with capabilities to view downloadable image closes #29988 2021-07-29 08:19:35 -07:00
Maria Górska-Piszek 8fdcaa0b55 Split Extensions page into 2 menu items. 2021-07-29 15:49:12 +02:00
Dan Bitzer 89fa082743 Remove \WC_Customer::get_hook_prefix method
This method is now redundant since the `$object_type` property is set for the class. This means the parent method will now return the exact same value.
2021-07-29 11:26:21 +09:30
Dan Bitzer 5c7d1a440a Set $object_type prop for WC_Customer class 2021-07-29 11:26:21 +09:30
Vedanshu Jain 124aeb7467
Merge pull request #30204 from getsnoopy/fix-postal-code-labels
Correct postal code labels for US & India
2021-07-28 13:38:45 +05:30
Roy Ho 5a70e26541
Merge pull request #29470 from Quy/patch-1
Remove trailing colon when checkbox is before label
2021-07-22 16:16:47 +01:00
Roy Ho 1d725d8dc8
Merge pull request #30068 from jobthomas/patch-1
"Pending payment" instead of "Pending" as the correct status
2021-07-22 16:03:12 +01:00
Roy Ho 742d18a73a
Merge pull request #30252 from kravco/log-file-dropdown-modification-time
fix incorrect modification time in logs dropdown
2021-07-22 15:34:30 +01:00
Roy Ho bb78d07615
Merge pull request #30334 from woocommerce/add_setting_to_tracker
Add the setting checkout_login_reminder to be tracked
2021-07-22 15:25:36 +01:00
Vedanshu Jain 50c8b7d1eb
Merge pull request #30335 from woocommerce/fix/30298
Remove unnecessary search related 'where' in handling of 'posts_clauses'
2021-07-22 16:11:20 +05:30
Nestor Soriano 70dc65ae48
Remove unnecessary search 'where' in handling of 'posts_clauses'
PR 29896 added extra handling in response to the 'post_clauses' hook
in order to use the new product attributes lookup table. However it
also added a new 'where' clause based on the value returned by
'get_main_search_query_sql', which turns out is not needed and
causes problems with some themes.
This commit removes that extra 'where'.
2021-07-22 11:26:10 +02:00
Menaka S aa375b55a8 Add the setting checkout_login_reminder to be tracked 2021-07-22 13:03:12 +05:30
barryhughes fbda9cb58e Update with latest changes from trunk. 2021-07-21 14:54:53 -07:00
barryhughes b97d2ed50e Update setting text per feedback. 2021-07-21 07:45:28 -07:00
Claudio Sanches 683cc40cbf
Merge pull request #30097 from woocommerce/add/shipping-phone
Add support for Shipping Phone Number in Order and Customer classes
2021-07-20 21:00:45 -03:00
Claudio Sanches 5e4f3b40e3 Include since tag to new methods 2021-07-20 20:55:39 -03:00
barryhughes c5c21fe5ee Revise "Redirect only" deprecation message. 2021-07-20 11:18:22 -07:00
barryhughes d81eee6b5a Download handler: support falling back on the redirect method as an option. 2021-07-20 11:18:22 -07:00
barryhughes dc3589f0e3 Revert f88586e but add supporting logging. 2021-07-20 11:18:22 -07:00
Roy Ho 1947c80c21
Merge pull request #30305 from shyam-mishra/fix/30198
fixed by putting strip all tag
2021-07-20 15:54:09 +01:00
jonathansadowski dc3b3dc662
Merge pull request #30301 from woocommerce/fix/30290
Use WC Version for loading scripts instead of hardcoding them closes …
2021-07-20 09:09:51 -05:00
roykho d9a329e0cc
Update to use our own custom versioning 2021-07-20 05:59:35 -07:00
Roy Ho 0a857088f9
Merge pull request #30287 from woocommerce/fix/29723
Fix: "search product" block not displaying textbox in shop page
2021-07-19 16:17:49 +01:00
Nestor Soriano bc7f9edb11
Fix product search block not actually working. 2021-07-19 16:51:13 +02:00
Nestor Soriano 88e8ea5dc2
Replace the 'wp_kses_allowed_html' hooking with a call to
'wp_kses_allowed_html' and a call to 'wp_kses'.
2021-07-19 15:10:33 +02:00
shyam-mishra 90fccabafa fixed by putting strip all tag 2021-07-18 17:29:33 +05:30
Jonathan Sadowski 91c55b54c0 Update prepared query to use single-quote instead of double-quotes 2021-07-16 15:00:02 -05:00
Jonathan Sadowski db44d15e3f Apply patch to class-wc-webhook-data-store.php to fix sqli issue 2021-07-16 14:59:02 -05:00
roykho 740cd388dc
Use WC Version for loading scripts instead of hardcoding them closes #30290 2021-07-16 11:42:12 -07: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
Nestor Soriano c5ca35c911
Fix: "search product" block not displaying textbox in shop page
The "seach block" product doesn't display the textbox because its
HTML is filtered out by `wp_kses_post`. This fix hooks on
'wp_kses_allowed_html' in order to explicitly allow the HTML elements
of the block in the shop page.
2021-07-15 14:39:39 +02: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
Yordan Soares ae4040368c Fix the payment method title for the option "Other"
Closes: #30255
2021-07-11 23:38:53 -04:00
Matej Kravjar f3dd7be2b0 fix incorrect modification time in logs dropdown 2021-07-11 10:33:08 +02:00
Alexandre Faustino 31ac6db10f New hook for product external options 2021-07-07 10:41:40 +01: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
Varun Varada e38be6df10 Correct postal code labels for US & India
Fixes #30203
2021-07-02 00:13:41 -05: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
Denis Dvali 030680ed7f
Cast default status to integer on payment token update 2021-06-29 14:50:57 +03: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