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
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
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
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
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