Gerhard Potgieter
b5a4a1597f
Fix current section check, phpcs linting errors.
2020-11-10 16:48:11 +02:00
Gerhard Potgieter
692dfa7fec
Update banner copy
2020-11-09 15:21:38 +02:00
Gerhard Potgieter
8af8554770
Add functionality to handle woocommerce payments install
2020-11-09 14:48:49 +02:00
Gerhard Potgieter
7d33488d6b
WooCommerce Services to WooCommerce Shipping
2020-11-09 14:22:20 +02:00
Gerhard Potgieter
78336781d1
Remember output_ in function name
2020-11-09 14:20:24 +02:00
Gerhard Potgieter
b1d9363918
Add wc payments to extensions addons page.
2020-11-09 14:19:11 +02:00
roykho
4c079ea99e
Update SSR version to check against major versions only closes #27972
2020-10-27 08:16:35 -07:00
Roy Ho
c96a642e8a
Merge pull request #28067 from woocommerce/fix/27529
...
Fix: use the correct parameter when calling get_avatar()
2020-10-26 07:46:51 -07:00
Rodrigo Primo
09faf8ba84
Fix: use the correct parameter when calling get_avatar()
...
`WC_Admin_Dashboard::recent_reviews()` was calling `get_avatar()` passing `$comment->comment_author` which is not one of the list of parameters that the function accepts to get the avatar. As a result, the widget that displays the recent reviews in the admin dashboard was never displaying the avatar of the user that left the review. This commit fixes this issue by passing `$comment->comment_email` instead. I opted to use `$comment->comment_author` as it should be available for reviews left both by authenticated and anonymous users and because getting the comment object wouldn't be so simple (either we need to perform an extra query for each review or deprecate the `woocommerce_report_recent_reviews_query_from` filter).
2020-10-22 17:43:59 -03:00
Rodrigo Primo
e91872c1a8
PHPCS fixes
2020-10-22 17:34:47 -03:00
pjv
f03bfb85da
Fix incorrect capability for product sorting link
...
Fixes #28049
2020-10-22 13:03:35 -05:00
Rodrigo Primo
0a81188e42
Merge pull request #27987 from woocommerce/php8/fix-required-parameters-after-optional-take-2
...
[PHP 8] Convert optional-before-required parameters into required parameters (take 2)
2020-10-17 09:42:20 -03:00
roykho
e8bcd464db
Update escape based on suggestion
2020-10-16 06:00:34 -07:00
Nestor Soriano
63ced34e2d
Convert optional-before-required arguments to required (take 2)
...
In PHP 8 required parameters after optional parameters in
function/method signatures trigger a deprecation notice. These type
of parameters are pointless since a value needs to always be
provided for them anyway, so they are actually de-facto required.
This commit converts all these not-so-optional parameters into
truly required parameters by removing their default values.
2020-10-16 13:08:31 +02:00
roykho
800cbdbc7e
Add missing escapes
2020-10-15 16:31:56 -07:00
roykho
ace411aacd
Fix billing email being parsed as a URL link when beginning of email contains www closes #25099
2020-10-15 14:25:03 -07:00
Néstor Soriano
e4a109f0d1
Merge pull request #27763 from woocommerce/fix/27445
...
Remove protection as we already diff and update only if needed.
2020-10-15 10:01:34 +02:00
Claudio Sanches
e34681dbb4
Merge pull request #27696 from woocommerce/fix/version-race-conditions
...
Fix some race conditions in WC_Install
2020-10-14 20:18:47 -03:00
Claudio Sanches
23fe4f71bb
Merge pull request #27842 from sudoshreyansh/fix/27839
...
Fixed </strong> closing tag position. Issue: #27839
2020-10-14 18:06:10 -03:00
Néstor Soriano
c15488d840
Merge pull request #27830 from woocommerce/php8/fix-round-function-with-non-numeric-argument
2020-10-09 08:01:44 +02:00
Knyazevich
ce59afb2b9
Simplify drafts excluding logic (ref #24136 )
2020-10-06 18:11:58 +03:00
Knyazevich
f551c6c792
Exclude drafts from the "Shop page" select (ref #24136 )
2020-10-06 06:42:56 +03:00
sudoshreyansh
dd9bf06594
Fixed </strong> closing tag position. Issue: #27839
2020-10-02 15:46:41 +05:30
Nestor Soriano
52eed70f04
Add a 'NumberUtil' class with a 'round' method.
...
There's a number of places in the WooCommerce codebase where the
built-in function 'round' is executed passing a non-numeric value
(not a number and not a string that can be parsed as a number),
for example round(''). In PHP 7 this yields a value of 0, but in
PHP 8 this throws an error.
This commit adds a 'NumberUtil' class with a static 'round' method,
this method checks if the passed value is numeric and if so it just
executes the built-in function, otherwise it returns 0. And all the
calls to 'round' in the codebase are replaced with 'NumberUtil::round'.
2020-10-01 11:08:51 +02:00
vedanshujain
c69e1f5799
Remove protection as we already diff and update only if needed.
...
In #26642 we removed adding reduced_stock meta when adding new order item to prevent ghost entries, but in inadvertently exposed an underlying bug where _reduced_stock meta was getting set to 0 if its emtpy.
We were then checking the presence of this meta, but also not reducing the stock in case it was not set.
2020-09-24 00:54:24 +05:30
Rodrigo Primo
c3a72b994a
Fix version in which the setup wizard was deprecated
...
The setup wizard is going to be deprecated in WC 4.6.0 which should be
released soon. Some functions were marked as if they were deprecated in
WC 4.5.0 which is not the case.
2020-09-22 11:20:33 -03:00
Rodrigo Primo
51fd4af1b2
Remove call to __() from deprecation messages
...
Doing this as AFAIK we don't typically support traslation for
deprecation messages.
2020-09-22 11:18:43 -03:00
Rodrigo Primo
7401982d37
Merge pull request #27047 from woocommerce/fix/26972
...
Removed Features settings and home screen option
2020-09-18 16:46:43 -03:00
Ron Rennick
4b3b40d42e
address feedback
2020-09-18 15:22:24 -03:00
Ron Rennick
43051a0950
update deprecation versions to 4.6.0
2020-09-18 13:16:46 -03:00
Ron Rennick
9915a5b142
merge master
2020-09-18 12:53:28 -03:00
Claudio Sanches
29b8b0d60d
Merge pull request #27701 from woocommerce/fix/rest-api-package-tag
...
Fixed usage of package tag in REST API and templates
2020-09-17 18:45:14 -03:00
Claudio Sanches
153ce009de
Fixed helper header
2020-09-17 16:50:17 -03:00
Claudio Sanches
3377c60c5e
Merge pull request #27433 from woocommerce/fix/remove-relative-include-paths
...
Change relative include paths to absolute include paths
2020-09-17 13:15:40 -03:00
Claudio Sanches
f4e9fcc1a4
Fixed missing include
2020-09-17 13:12:57 -03:00
Konstantin Kovshenin
a100ed67b2
Fix race conditions in WC_Install
...
In an environment with persistent object caching, concurrent calls
to delete_option() + add_option() can result in the option value
leaking out of the alloptions cache key, and into its own cache
item under the options group, while deleting the value from the
database.
This causes future function calls to add_option() to fail, since
the value already exists in cache (under the wrong key). It also
causes calls to delete_option() to fail, since the value is not
in the database.
This commit forces update_option() instead of the delete + add
combination, as well as removes multiple unnecessary calls to
update the woocommerce_db_version from admin notes and notices.
2020-09-17 11:59:50 +03:00
Rodrigo Primo
d50cd4389b
Fix using tax classes with some non-ASCII characters
...
This commit fixes a bug that made it impossible to assign to a product a tax class that contained non-ASCII characters that are URL encoded by sanitize_title().
WooCommerce uses sanitize_title() to generate a slug when creating a tax class (d48f1d4e2e/includes/class-wc-tax.php (L808)
). sanitize_title() converts some non-ASCII to ASCII equivalents (those handled by remove_accents()) and URL encodes others (like some Greek characters, for example).
The code was using wc_clean() to sanitize the tax class when the user edited a product. The problem is that wc_clean() removes URL encoded characters, changing the slug of some tax class, causing WooCommerce to use the standard tax class instead without any errors. To fix this issue, this commit replaces wc_clean() with sanitize_title(). This should be enough for security purposes and should not cause any issues with non-ASCII characters.
2020-09-08 16:00:56 -03:00
Ron Rennick
8fe3bcb90e
rebase to current master
2020-08-28 10:59:43 -03:00
Claudio Sanches
c4ccc38780
Fixed use __DIR__ for relative paths
2020-08-26 18:46:44 -03:00
Romario
67a178f4f7
Replace 'DIRECTORY_SEPARATOR' with '/'
2020-08-26 15:50:34 -05:00
Romario
3b90d99d44
Change 'dirname( __FILE__ )' to '__DIR__ ' and include '/'
...
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-08-26 14:58:22 -05:00
Claudio Sanches
5240682f38
Improve choice of words
2020-08-25 18:03:03 -03:00
Hayden Whiteman
3fca3caf1d
Fix #27413
2020-08-22 19:35:13 +12:00
Romario
acfb3e5dfd
Add spacing between '$dir 'and '.'
2020-08-21 15:25:21 -05:00
Romario
073c63c9c4
Replace dirname with __DIR__ and add DIRECTORY_SEPARATOR
...
Previously 'dirname( __FILE__ )' was used to import files, however, the directory separator was missing.
This commit replaces 'dirname( __FILE__ )' that was introduced in 5370d02484
with __DIR__ and added DIRECTORY_SEPARATOR
2020-08-21 15:16:26 -05:00
Romario
5370d02484
Change relative include paths to absolute include paths
...
Relative include paths in PHP can break whenever the server is running opcache. As such, WordPress.com deploy system refuses to include WooCommerce because of that issue.
This commit changes the relative include paths to absolute include paths.
Relates to #27269
2020-08-20 15:32:04 -05:00
Claudio Sanches
af357e9177
Updated priority of admin_body_class filter
2020-08-20 13:18:23 -03:00
Julià Mestieri
b2c35a5ded
Added cache and filters for wc-customer get operations.
2020-08-17 11:25:54 +02:00
Néstor Soriano
f8ea11a607
Merge pull request #27145 from woocommerce/fix/26006
...
Fixed "virtual" and "downlodable" pointers on product walkthrough
2020-08-14 08:55:53 +02:00
Ron Rennick
72df8aecfa
updated deprecated version to 4.5.0
2020-08-13 14:46:12 -03:00
Ron Rennick
f0ad8a01be
merge current master
2020-08-13 14:33:07 -03:00
Claudio Sanches
070e3896cf
Restored pointers position
2020-08-12 21:46:36 -03:00
Claudio Sanches
df4aa12f21
Fixed coding standards to make trigger a test on Travis
2020-08-11 20:11:07 -03:00
Claudio Sanches
db85fad826
Merge branch 'master' into fix/26006
2020-08-10 18:52:21 -03:00
Claudio Sanches
525db3aa21
Fixed incorrect package tags
2020-08-05 17:49:10 -03:00
Claudio Sanches
f4b336a0f3
Fixed incorrect package
2020-08-05 13:51:37 -03:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Claudio Sanches
891a0cf8e8
Merge pull request #27170 from woocommerce/fix/27167
...
Fixed - Fixed "Product type" dropdown from Product's data meta box on WP 5.5
2020-07-30 16:38:18 -03:00
Claudio Sanches
cc8282a23f
Merge pull request #27142 from woocommerce/fix/25788
...
Improve order details UI to highlight "Paid" and "Net Payment" sections
2020-07-30 15:49:24 -03:00
Claudio Sanches
77f8bb57a6
Check if there's a payment method title
2020-07-30 13:05:03 -03:00
Claudio Sanches
a464b7aeab
Improved wc_get_current_admin_url()
...
- Replace "/wp-admin" with regex like on WP core.
- Remove "wc-hide-notice" from query args.
2020-07-29 21:01:39 -03:00
Claudio Sanches
c9f52a45eb
New wc_get_current_admin_url() function
2020-07-29 20:52:36 -03:00
Claudio Sanches
e26076af7b
Return to the current page after enabled or disabling db update notices
2020-07-29 20:37:27 -03:00
Claudio Sanches
d498341f0e
Added function to get current admin page
2020-07-29 20:37:12 -03:00
Claudio Sanches
97c7937fd9
Fixed "Product type" dropdown on WP 5.5
...
WP 5.5 doesn't introduce a <span> tag inside metaboxes headings
2020-07-29 19:12:02 -03:00
Néstor Soriano
d5bedd82b2
Merge pull request #27148 from woocommerce/fix/dont-request-translations-with-no-locales
...
Don't request empty locales list for plugin translations.
2020-07-29 16:23:06 +02:00
Néstor Soriano
0f134ca6a2
Merge pull request #27054 from woocommerce/fix/27036
...
add/update correct deprecated notices on existing deprecations
2020-07-29 15:20:24 +02:00
Claudio Sanches
008e41170b
Improved UX to highlight order data when there's some refund
2020-07-28 15:13:00 -03:00
Claudio Sanches
cc42af2f6e
Fixed phpcs flag
2020-07-28 10:36:28 -03:00
budzanowski
57aeff0a71
Update comment.
2020-07-28 11:49:01 +02:00
budzanowski
ac501dea64
Don't request empty locales list for plugin translations.
2020-07-28 11:37:51 +02:00
Claudio Sanches
2df7324b0d
Fixed "virtual" and "downloadable" checkboxes pointers
2020-07-27 22:43:04 -03:00
Claudio Sanches
283c82b6b4
Fixed coding standards
2020-07-27 22:42:15 -03:00
Claudio Sanches
134ab5c184
Fixed coding standards
2020-07-27 20:21:41 -03:00
Claudio Sanches
4f90307e2e
Fixed "Paid By Customer" data when the orders contains refunds
2020-07-27 20:18:33 -03:00
Ron Rennick
d8edcb4551
update from review feedback
2020-07-27 16:48:39 -03:00
Christopher Allford
c84f2b987b
Merge pull request #26750 from woocommerce/implement/core-language-packs-updates
...
Add language packs automatic delivery code.
2020-07-27 12:45:58 -07:00
Claudio Sanches
7bd34e3545
Merge branch 'master' into fix/25843
2020-07-24 17:04:28 -03:00
vedanshujain
cd09e91817
Applied coding standards
2020-07-24 19:12:25 +05:30
vedanshujain
853539df12
Remove wc_round_tax_total from shipping item because shipping price are never inclusive of taxes
2020-07-24 19:12:24 +05:30
Peter Fabian
03230ecf01
Merge pull request #26642 from woocommerce/fix/26607
...
Limit stock changes for order items to status methods for consistency.
2020-07-24 13:23:53 +02:00
budzanowski
7bc30512a4
Remove extra tab.
2020-07-23 23:22:16 +02:00
budzanowski
623363ba50
Check for if new locale has language pack installed.
2020-07-23 22:52:59 +02:00
budzanowski
70c65f60f2
Don't process if there are no plugins to check.
2020-07-22 12:16:20 +02:00
budzanowski
ed1a181eca
Update api url.
2020-07-22 10:56:04 +02:00
budzanowski
2d8f308a08
Remove redundant check.
2020-07-21 18:41:34 +02:00
budzanowski
0a10d64394
Update code to the new server setup.
2020-07-20 17:16:18 +02:00
Ron Rennick
5ee0eccb7b
add/update correct deprecated notices on existing deprecations
2020-07-16 17:13:08 -03:00
Claudio Sanches
2947700029
Removed Features settings and home screen option
2020-07-15 22:58:51 -03:00
Christopher Allford
c9f754f5a3
Added the existing meta keys to the `woocommerce_duplicate_product_exclude_meta` filter
2020-07-14 13:57:21 -07:00
Nestor Soriano
d2787818e3
Rename `quick-edit-warning` style with `wc-` prefix, and add styling.
2020-07-14 16:02:59 +02:00
Nestor Soriano
c53d6daed1
Fix error when `screen` not set in request, remove redundand `round`s.
2020-07-14 11:42:22 +02:00
Nestor Soriano
a39e15f92b
Small adjustments in WC_Admin_Post_Types
...
- Remove no longer needed phpcs disablers.
- Rename method.
- Remove no longer needed logic.
- Simplify some logic.
2020-07-14 11:42:21 +02:00
Nestor Soriano
fc0be07e0f
Add unit test for WC_Admin_Post_Types::bulk_and_quick_edit_save_post.
...
The test added checks that the new regular or sale price is
appropriately set when bulk saving.
2020-07-14 11:42:21 +02:00
Nestor Soriano
4531af3382
Small fix in WC_Tests_Admin_Post_Types::bulk_and_quick_edit_stock_status_for_variable_product.
...
At some point the 'change_stock' key is assumed to be present
in the request data, but it might not. Fixed to test for existence
before using the value.
2020-07-14 11:42:21 +02:00
Nestor Soriano
b71a9c33b6
Extract $_REQUEST to a method in WC_Admin_Post_Types.
...
Create a new `request_data` method in WC_Admin_Post_Types that
just returns $_REQUEST. This is intended to ease unit testing,
as this method can be easily mocked to return test data.
2020-07-14 11:42:21 +02:00
Nestor Soriano
fd34cf76b2
Fix stock status setting for variable products on bulk & quick edits.
...
For bulk edit: even if stock status was left as "No change", the
status of all variations was being changed to whatever the status
of the product was before it was converted to variable. Now
no change is performed when "No change" is selected, and all
variations change to whatever is selected otherwise.
For quick edit: a new "No change" option is added that will be
preselected when the product is variable. Previously, whatever
status the product had before being converted to variable was being
shown, and that's the status that would be set when saving.
Also, a "This will change the stock status of all variations"
message is displayed before the selector.
2020-07-14 11:42:21 +02:00
Nestor Soriano
ae0d269128
Refactor duplicate code & add rounding to price calculations in WC_Admin_Post_Types.
...
Two methods have been created:
- update_stock_status, replaces code that was duplicated in the
quick_edit_save and bulk_edit_save methods.
- set_new_price, replaces code that was duplicated-ish in the
bulk_edit_save for setting the new regular and sales prices
(code was not identical but very similar).
Also, `round` is now used on sale price calculations that involve
multiplying by a percent, the same was as it was done already
to calculate the regular price.
2020-07-14 11:42:21 +02:00
Nestor Soriano
7d5b59953c
Fix code sniffer errors in WC_Admin_Post_Types.
2020-07-14 11:42:21 +02:00
Claudio Sanches
864f451775
Merge pull request #26338 from woocommerce/fix/25561
...
Fixed user cap required to view the order count indicator
2020-07-08 12:09:28 -03:00
Claudio Sanches
eeb08467af
Merge pull request #26877 from woocommerce/fix/26547
...
Fixed WooCommerce menu for users that can only manage orders on WooCommerce
2020-07-08 12:08:29 -03:00
Claudio Sanches
dec50429b4
Merge pull request #25240 from shamalisulakhe/issue-24266-solution
...
Issue 24266 solution - with rerf of
2020-07-01 13:00:58 -03:00
Claudio Sanches
cadbc759fe
Merge pull request #26680 from MihaiCraciun/master
...
Added missing closing select tag to the product exporter category select
2020-07-01 12:57:33 -03:00
Claudio Sanches
2874915339
Merge pull request #26553 from szepeviktor/patch-2
...
Fix PHPDoc in WC_Notes_Run_Db_Update
2020-07-01 12:46:48 -03:00
Claudio Sanches
4450d2239f
Merge pull request #26660 from woocommerce/add/status-tools-prompt
...
Adds a prompt to confirm if should run tools in the Status page.
2020-07-01 12:39:54 -03:00
vedanshujain
8ded6a3057
Applied coding standards
2020-07-01 19:09:50 +05:30
budzanowski
114ce81757
Use singular batch update endpoint.
2020-06-26 11:09:41 +02:00
Claudio Sanches
f5b9af8591
Keep WooCommerce menu structure if user can edit others shop orders
2020-06-25 20:01:12 -03:00
Claudio Sanches
f4d11c89f3
Merge branch 'master' into issue-24266-solution
2020-06-23 16:47:30 -03:00
Ron Rennick
aaae319a65
deprecate wc-setup
2020-06-23 15:29:58 -03:00
Ron Rennick
e56ef185b0
Merge pull request #26809 from woocommerce/fix/25606
...
remove privacy page dropdown
2020-06-23 13:34:33 -03:00
Claudio Sanches
3bb7f30c01
Merge branch 'master' into fix/25561
2020-06-23 11:23:29 -03:00
Ron Rennick
a88a708286
remove privacy page dropdown
2020-06-18 10:40:17 -03:00
Peter Fabian
14a26aca2c
Update min files and selectWoo
2020-06-16 17:15:12 +02:00
Peter Fabian
418d95298a
Merge branch 'master' into update/wc-admin-1.3.0-beta-1
...
# Conflicts:
# composer.lock
2020-06-16 14:58:43 +02:00
Peter Fabian
35ee21f837
Merge pull request #26754 from woocommerce/fix/25544
...
Encode HTML entities in product attributes
2020-06-16 14:29:19 +02:00
Peter Fabian
bb2cf2e8dc
Removed deprecated method call.
2020-06-16 13:18:05 +02:00
Peter Fabian
c35c4f1f08
Merge pull request #26395 from woocommerce/revert-26226-revert-25708-update/reserve-stock-for-checkout
...
Introduce a `reserved stock` class and database table to prevent race conditions during checkout
2020-06-16 11:38:10 +02:00
Peter Fabian
32037e37dd
Merge pull request #26625 from woocommerce/add/homescreen-option
...
Homescreen: Enable for new stores and add Features Setting section
2020-06-15 21:54:06 +02:00
Peter Fabian
0c96b1452d
Merge pull request #26685 from woocommerce/fix/26248
...
Removed the notice for untested minor version updates
2020-06-15 21:40:22 +02:00
vedanshujain
34e5d3daa3
Use single sentence for easier translations.
2020-06-15 19:09:52 +05:30
Paul Sealock
c7ad889f93
Homescreen: add option and setting
2020-06-15 13:38:02 +12:00
budzanowski
8f4e1a90c1
Typo fix.
2020-06-14 11:38:57 +02:00
budzanowski
bb7e5d1018
Connect the translations server.
2020-06-14 11:14:29 +02:00
Jonathan Sadowski
4d6aad4ecb
Encode HTML entities in product attributes
2020-06-11 14:10:05 -05:00
budzanowski
5277bf8b60
Add language packs automatic delivery code.
2020-06-11 14:31:55 +02:00
vedanshujain
e00f79417f
Alert in status report if base table is not present.
...
Also add a tool to rerun the check. This needs newer API version to work.
2020-06-05 18:26:49 +05:30
Vedanshu Jain
6564847802
Merge pull request #26454 from woocommerce/enhancement/verify-db
...
Add `verify_base_db` method to check if all base tables are present.
2020-06-05 15:15:39 +05:30
vedanshujain
4fce106f14
Use `_` instead of `-` as per convention.
2020-06-04 20:33:38 +05:30
Christopher Allford
ffe2257f2d
Removed the notice for untested minor version updates
...
With the increased cadence of releases it becomes necessary that we address the `WC tested up to` header's usefulness. It isn't practical to require everyone to update their extensions every month, especially given that we are only doing backwards compatible minor releases. The only case I can think of where we might want to check the minor version is if the Stable tag on Core is downgraded, but due to the naming of the header, this doesn't make any sense.
I considered making this a wildcard of some kind but I think most would bind to a full major version anyway and so this isn't worth the time to add it. As an aside, the tests in `plugin-updates.php` seem to indicate that a header of `WC tested up to: 4` would apply to the entire major version cycle, so wildcards already exist!
2020-06-03 14:36:06 -07:00
Claudio Sanches
bf042a428d
Merge pull request #25321 from grey-rsi/status_widget_stock_rows
...
Add filters for status_widget_stock_rows queries
2020-06-03 11:22:20 -03:00
MihaiCraciun
1df2ba2c7a
Added missing closing select tag
2020-06-03 13:40:05 +03:00
Julia Amosova
479cac4fc0
Add note to Products Importer that TXT files are also supported.
2020-06-02 12:55:06 -04:00
Claudio Sanches
5bf9a83e58
Fixed docblock
2020-06-02 12:17:59 -03:00
Claudio Sanches
2267dcfe7e
Updated since tags
2020-06-02 12:16:54 -03:00
Julia Amosova
f929bacfc6
Correct grammar mistake in the help tip of the `Connected to WooCommerce.com` field of SSR.
2020-06-02 11:12:47 -04:00
Sergey Ratushnuy
ec91a7c3fc
Small fix
2020-06-02 15:05:44 +03:00
Claudio Sanches
6afbed0c14
Fixed coding standards
2020-06-01 23:55:17 -03:00
Claudio Sanches
608cce5091
Fixed typo
2020-06-01 20:54:29 -03:00
Claudio Sanches
b4ab40ae34
Adds a prompt to confirm if should run tools in the Status page.
2020-06-01 18:56:38 -03:00
Claudio Sanches
2acc24f489
Added missing trailing slash
2020-05-26 17:23:37 -03:00
vedanshujain
e89ee25f36
Better option names to properly describe their intention.
...
Additionally, allow an option in `verify_base_tables` to call `create_table` method. This will be useful if someone wants to fix the their database.
2020-05-26 23:26:45 +05:30
Claudio Sanches
a240798362
Don't allow redirection while checking for uploads directory
2020-05-25 10:31:58 -03:00
vedanshujain
fafa44bde0
Modified notice to also handle when REST API does not have verify tool.
2020-05-22 18:32:03 +05:30
vedanshujain
f5afddd4c9
Add support for notices
2020-05-22 18:32:03 +05:30
vedanshujain
3acc03c804
Add `verify_base_db` method to check if all base tables are present.
...
Optionally, also adds a notice in case all db tables are not present. Returns list of tables.
Note that we only check missing tables and don't care about exact table structure because many time tables are modified by merchants to better suit their needs (indexes, collations etc).
2020-05-22 18:30:11 +05:30
Christopher Allford
93811e0a56
Merge pull request #25753 from woocommerce/fix/25752-wc_get_shipping_method_count-check-enabled
...
Add is_enabled=1 check in wc_get_shipping_method_count()
2020-05-21 11:44:36 -07:00
Viktor Szépe
90c34a26a0
Fix PHPDoc in WC_Notes_Run_Db_Update
...
and correct a newbie mistake
2020-05-19 19:21:57 +02:00
Vedanshu Jain
7fb1079137
Merge pull request #26399 from woocommerce/fix/uploads_htaccess
...
Disable directory listing for redirect download method
2020-05-19 15:56:37 +05:30
Claudio Sanches
eea062f9fa
Merge pull request #26519 from woocommerce/fix/csv-import-special-columns
...
Fixed the case conversion for meta key column mapping in product CSV imports
2020-05-18 11:33:50 -03:00
Peter Fabian
e3e72e0423
Merge pull request #26500 from woocommerce/fix/26443
...
Refresh db update nonce on the Thank you notice
2020-05-18 14:36:13 +02:00
Albert Juhé Lluveras
9a34c4fe75
Update WC shipping settings so no shipping zones banner appears when all are deactivated
2020-05-15 16:32:12 +02:00
Peter Fabian
0934f4a147
Merged should_show_notice and show_reminder and simplified logic.
...
Removed redundant calls to the same functions as this code runs on each admin pageload.
2020-05-15 10:24:30 +02:00
Peter Fabian
2f141eca77
PHPCS
2020-05-15 09:40:23 +02:00
Peter Fabian
50e386cbe8
Corrected the comment.
2020-05-15 09:26:17 +02:00
Christopher Allford
7bf9c31f64
Adjusted the column name normalization to avoid squashing meta key case sensitivity
...
Since we were converting the field to lowercase we ended up inserting meta in all lowercase, regardless of what it was in the CSV file. We should only be using the normalized field name when looking at the default columns, and should instead rely on a case-insensitive regex for the special columns.
One thing to note is that we're still defaulting the $headers array to the normalized field, as we don't want to change what is being passed to the filter for unmapped columns.
2020-05-14 21:20:55 -07:00
Claudio Sanches
c09a269589
Revert "Fix duplicated custom fields after import products from .csv file"
2020-05-14 14:06:01 -03:00
Peter Fabian
6b11451b88
Replaced repeated code from get_current_notice with the function call.
2020-05-13 16:36:09 +02:00
Peter Fabian
a2f985414e
Added freshness check also for 'done' notice.
2020-05-13 16:34:23 +02:00
Peter Fabian
ed64c0c731
Y U no nonce here?
2020-05-13 16:33:27 +02:00
Peter Fabian
eb0879cd1a
Extracted actions to the beginning of the function to allow usage in note_up_to_date check.
2020-05-13 16:32:42 +02:00
Peter Fabian
a7203ec4d0
Added clean up of duplicate notes, if there are any.
...
There has been some reports about duplicate notes in the db, so this should remove the duplicates and keep the first one.
2020-05-13 15:00:04 +02:00
Sergey Ratushnuy
9d711a6afa
Add filters for status_widget_stock_rows queries
2020-05-13 11:02:44 +03:00
Christopher Allford
a34bb53d9c
Merge pull request #26207 from woocommerce/feature/26186
...
Added notice to check if uploads directoy is public
2020-05-12 11:22:49 -07:00
Claudio Sanches
281459914b
Fixed space in URL
2020-05-12 15:16:36 -03:00
Claudio Sanches
8d6e13952a
New docs URL
2020-05-12 15:16:11 -03:00
Christopher Allford
7f45c56417
Merge pull request #26072 from garretthyder/privacy-policy-update
...
Privacy policy update
2020-05-12 09:33:28 -07:00
Christopher Allford
f41cb52e0c
Merge pull request #26251 from xristos3490/fix-wp-54-styles
...
[WC4.1 RC] WP 5.3 select2 css fixes broken in WP 5.4
2020-05-12 07:39:10 -07:00
Christopher Allford
278cadea67
Merge pull request #26080 from yoavf/fix/helper-toggle-rtl
...
Addons/Helper: fix toggles in RTL mode
2020-05-11 19:58:45 -07:00
Christopher Allford
71c49e9ef9
Merge pull request #26296 from abhishek-pokhriyal/fix/incorrect-argument-count
...
Correct argument count for action hooked on `woocommerce_process_shop…
2020-05-11 19:57:53 -07:00
Christopher Allford
7e2e9b8695
Merge pull request #26167 from woocommerce/fix/25889
...
Removed legacy notification to connect with WooCommerce
2020-05-11 19:56:46 -07:00
Christopher Allford
888a5c40cd
Merge pull request #26163 from abhishek-pokhriyal/fix/typo-though
...
Change "though" to "through"
2020-05-11 19:47:36 -07:00
Christopher Allford
452e53d8af
Merge pull request #25630 from woocommerce/fix-25603
...
Replace {site_address} by {site_url} for consistency
2020-05-11 19:43:08 -07:00
Christopher Allford
f76be96af3
Merge pull request #25517 from grey-rsi/duplicated-custom-fields-after-import
...
Fix duplicated custom fields after import products from .csv file
2020-05-11 19:41:50 -07:00
Vedanshu Jain
31b648d479
Merge pull request #26358 from woocommerce/fix/26348
...
Clear only plugin cache if WC header are not present to load with WC headers.
2020-05-11 18:14:39 +05:30
Claudio Sanches
8b4e207f59
Merge pull request #26415 from jasonandmonte/patch-1
...
Fix variable name typo in class-wc-admin-addons.php file
2020-05-08 13:38:43 -03:00
Vedanshu Jain
276ab00d86
Merge pull request #26044 from woocommerce/add/menu-order-count-filter
...
Added new filter for modification of order processing count in menu
2020-05-08 18:13:55 +05:30
Jason
8ae5b4d5a6
Update class-wc-admin-addons.php
...
Fix variable name typo. `$parameters`
2020-05-07 16:19:31 -07:00
Claudio Sanches
224559e73f
Updated since tag and removed global variable
2020-05-07 18:57:53 -03:00
Claudio Sanches
7ee559004b
Change notice class to error
2020-05-07 16:05:45 -03:00
Claudio Sanches
16ec0007cf
Set "Options -Indexes" for redirect download method
...
Stop the .htaccess to get removed and stop directory listing
2020-05-06 23:42:33 -03:00
Claudio Sanches
16027eb33e
Updated the notice
2020-05-06 21:50:01 -03:00
Claudio Sanches
8fecbcf9bf
Make safe
2020-05-06 21:49:20 -03:00
Claudio Sanches
191bc7f134
Check if uploads/woocommerce_uploads is protected
2020-05-06 21:41:04 -03:00
Joshua T Flowers
43ab840e1a
Add a put method to the WC_Helper_API ( #26262 )
...
* Merge wc api authorization headers with given headers
* Add put method to WC_Helper_API
* Add unit test coverage around WC_Helper_API request methods
* Add tests for WC_Helper_API url method
2020-05-06 19:25:23 +03:00
Claudio Sanches
d6a17aad4e
Request is internal
2020-05-05 14:05:53 -03:00
Claudio Sanches
1208f79476
Included view
2020-05-05 14:04:42 -03:00
Claudio Sanches
d8b8601601
Updated uploads directory check and saved results on transients
2020-05-05 14:03:12 -03:00
Claudio Sanches
040944fda6
Updated notice
2020-05-04 22:20:03 -03:00
Claudio Sanches
fdea6de347
Check for user meta data first
2020-05-04 22:12:24 -03:00
Claudio Sanches
54625f9712
Fixed check
2020-05-04 22:11:56 -03:00
Claudio Sanches
15f71015e6
Improved method naming
2020-05-04 22:11:02 -03:00
vedanshujain
62ef169940
Simplified logic for better readability.
2020-05-02 00:31:54 +05:30
vedanshujain
e97fd683c6
Add extra comments
2020-05-01 21:19:25 +05:30
vedanshujain
57e2e82961
Clear plugin cache if WC header are not present to load with WC headers.
...
WC headers are added in filter `extra_plugin_headers`, however, in case when WooCommerce is activated/updated, `get_plugins` will be called and cache will be set before this filter can be cached.
Also, `get_plugins` call is expensive even with update cache present, so we should clear it very conservatively.
2020-05-01 21:14:21 +05:30
xristos3490
cb9dc9ed44
Add param doc comment
2020-04-30 11:34:01 +03:00
xristos3490
09b55f7390
fix CS on docblock
2020-04-30 11:04:40 +03:00
Claudio Sanches
3a987b3367
Fixed coding standards
2020-04-29 18:23:57 -03:00
Claudio Sanches
986c68c221
Fixed user cap required to view the order count indicator
2020-04-29 18:19:25 -03:00
abhishek-pokhriyal
968fbe0228
Correct argument count for action hooked on `woocommerce_process_shop_order_meta`
2020-04-26 16:01:40 +05:30