Michael Weichselgartner
ff8326b20e
Fix method upload_dir in class WC_Admin_Post_Types
...
Fix undefined variable `$uploads` in method `upload_dir` from class `WC_Admin_Post_Types` by reverting back to `$pathdata` as reported in #17789
2017-11-18 20:06:45 +01:00
Mike Jolley
55433aa7a9
Merge pull request #17785 from shivapoudel/fix/visibility-featured
...
Correct escape for featured product checkbox
2017-11-18 18:29:30 +00:00
Mike Jolley
a765367dd5
Merge pull request #17747 from woocommerce/feature/allow-add-content-to-order-preview
...
Introduce hooks to allow custom content into order preview
2017-11-18 18:26:08 +00:00
Michael Weichselgartner
7164a7e190
Update class-wc-admin-post-types.php
2017-11-18 18:16:18 +01:00
Shiva Poudel
1fbc4e77cc
Tweak - Display featured product checkbox inline
2017-11-18 21:43:09 +05:45
Mike Jolley
a23541ad5d
Fix 4.9 conflict with variation names
...
`santiize-title` works differently with `/` chars in 4.9. This update
routine keeps variations functioning by doing a DB update on read.
Fixes #17775
2017-11-18 14:53:18 +00:00
Mike Jolley
8a2050e066
When populating defaults, sanitize
...
part of #17775
Caused by https://github.com/woocommerce/woocommerce/pull/17629/files
leaving attribute names uppercase.
2017-11-18 13:55:26 +00:00
Claudio Sanches
b4347f4071
Restore global $GLOBALS['post'] after render products shortcode
...
Closes #17769
2017-11-17 18:38:30 -02:00
Claudio Sanches
7c955591d7
Introduces _start and _end hooks into order preview template
2017-11-17 18:30:01 -02:00
Claudio Sanches
3f6dfb531c
Merge pull request #17748 from woocommerce/fix/orders-rest-api-schema-types
...
Rest API: Update the schema types for tax_class and price
2017-11-17 17:54:10 -02:00
Claudio Sanches
d9d27a9a97
Fixed "tax_class" type in REST API v1
2017-11-17 17:52:12 -02:00
Claudiu Lodromanean
9c1d3b8108
Merge pull request #17726 from woocommerce/fix/17713
...
non-enabled children should not be ignored
2017-11-17 10:07:38 -08:00
Mike Jolley
72e078e83e
Merge branch 'fix/17236'
...
# Conflicts:
# includes/class-woocommerce.php
2017-11-17 12:49:02 +00:00
Gerhard Potgieter
fdc89056cd
PHPCS fix
2017-11-17 14:47:51 +02:00
Gerhard Potgieter
c64a73274d
Deprecate WC_Admin_Webhooks::logs_output not used in new crud webhooks
2017-11-17 14:46:09 +02:00
Gerhard Potgieter
ba451f68e4
Remove unused filter and deprecate get_delivery_log function.
2017-11-17 14:43:44 +02:00
Mike Jolley
21e51b9fc6
Merge pull request #17692 from woocommerce/update/16925
...
Add add_to_cart_description method and aria-labels to cart buttons in the loop
2017-11-17 12:35:50 +00:00
Mike Jolley
14a657e7cc
Merge pull request #17728 from woocommerce/fix/17712
...
Default variation tax class should be 'same as parent'
2017-11-17 12:22:11 +00:00
Mike Jolley
8fe5d6bad0
Merge pull request #17676 from woocommerce/update/17672
...
Clear transients when product terms are updated
2017-11-17 12:21:53 +00:00
Mike Jolley
97d9a35437
Merge branch 'feature/regenerate-images'
...
# Conflicts:
# includes/class-woocommerce.php
2017-11-17 12:12:35 +00:00
Mike Jolley
9b68610c7b
Merge pull request #17718 from woocommerce/fix/17717
...
Added missing meta info (author and date) when adding order note.
2017-11-17 12:03:31 +00:00
Mike Jolley
e9ba9736fc
Merge pull request #17740 from woocommerce/fix/wizard-payment-escaping
...
Wizard: Fix escaping in payment description
2017-11-17 11:47:59 +00:00
Mike Jolley
a2fadc0567
Merge pull request #17735 from woocommerce/feature/16446
...
Webhooks migration script
2017-11-17 11:43:29 +00:00
The Dramatist
85ce4e0078
Class wc emails backorder method extract function removed ( #17724 )
...
* Replaced extract() function usage.
Usage of `extract()` is kinda discouraged. Though here the array `$args` is verified, I think avoiding this `extract()` function will make it better. Besides, without `extract()` the code is more readable and easily understandable.
* Object checking should be done.
Checking `$args['product']` is an object or not should be done before `get_formatted_name()` method is being called.
2017-11-17 11:38:26 +00:00
Gerhard Potgieter
2ec3e5d045
Return url when requesting logs
2017-11-17 09:41:14 +02:00
Gerhard Potgieter
3adb2d8fce
Use this as class reference, use info method for logging, use consistant log filename.
2017-11-17 09:03:32 +02:00
Gerhard Potgieter
98a382174c
Merge branch 'feature/webhook-crud' into feature/webhook-delivery-logging
2017-11-17 08:48:57 +02:00
Kelly Dwan
5bb04dd61f
Rest API: Update the schema types for tax_class and price
2017-11-16 16:39:14 -05:00
Claudio Sanches
563896931e
Introduced hooks to allow custom content into order preview
2017-11-16 18:48:47 -02:00
Mike Jolley
bdea242019
Schema: Attributes are an array of strings
2017-11-16 19:44:14 +00:00
Mike Jolley
a899b53b57
Unit test fix: Exclude syntax_highlighting
2017-11-16 18:58:09 +00:00
Claudio Sanches
01983e6b96
Query and save only IDs of products when fetching products by shortcode
2017-11-16 15:14:36 -02:00
Claudio Sanches
909b80ae31
Removed "Delete WebHook logs" tool
2017-11-16 15:09:51 -02:00
Valerie
e9985146d5
Wizard: Fix escaping in payment description
2017-11-16 11:29:21 -05:00
claudiulodro
dd0f748211
Fix invalid html
2017-11-16 08:01:59 -08:00
Claudio Sanches
2669b8edc4
Webhooks migration script
2017-11-16 13:44:01 -02:00
Mike Jolley
591806fd20
Merge pull request #17730 from JeroenSormani/profile-copy-button
...
Assign type='button' to 'Copy from billing address'
2017-11-16 14:43:46 +00:00
Claudio Sanches
94ae9678c8
Merge branch 'master' into feature/webhook-crud
2017-11-16 12:21:56 -02:00
Claudio Sanches
9fe0c7261e
Merge branch 'master' into feature/webhook-crud
2017-11-16 12:20:22 -02:00
JeroenSormani
453862c02f
Assign type='button' to 'Copy from billing address'
2017-11-16 14:46:05 +01:00
Gerhard Potgieter
a4532b1e0b
Make method private again and add new method that checks if new theme declares theme support with custom sizes before generating images.
2017-11-16 15:02:34 +02:00
Gerhard Potgieter
c9cd9b033b
Public method not private, self not $this.
2017-11-16 14:53:44 +02:00
Boro Sitnikovski
fe9b9658a5
Skip wp_kses_post call on image
2017-11-16 13:48:04 +01:00
Gerhard Potgieter
17e588d713
Add method to regenerate images when the theme is switched.
2017-11-16 14:37:33 +02:00
Mike Jolley
710927a278
Default variation tax class should be 'same as parent'
...
Closes #17712
2017-11-16 12:19:31 +00:00
Gerhard Potgieter
3a738d9235
Move filters before calling the callback. Target specific option only when doing the check.
2017-11-16 14:15:30 +02:00
Mike Jolley
4e836754a8
Merge branch 'master' into fix/17713
2017-11-16 12:04:26 +00:00
Mike Jolley
72b3b5055b
FIx variable in get_object_subtotal
2017-11-16 12:03:02 +00:00
Mike Jolley
11d0293ddd
non-enabled children should not be ignored
...
This fixes #17713 by also returning private children (non-enabled).
2017-11-16 11:56:51 +00:00
Mike Jolley
541dde95b3
Merge pull request #17710 from woocommerce/fix/17697-coupon-spend-incl-taxes
...
Coupon min/max spend based on displayed subtotal
2017-11-16 10:59:43 +00:00
Gerhard Potgieter
a59f325f41
Add get_object_subtotal helper method, remove subtotal variable in favor of helper method
2017-11-16 12:43:50 +02:00
Gerhard Potgieter
3af77f13d8
Change tooltip to just say subtotal
2017-11-16 12:28:43 +02:00
Claudiu Lodromanean
6c82861522
Merge pull request #17716 from woocommerce/fix/use-add_filter
...
Use `add_filter` for `comment_feed_where` hook.
2017-11-15 14:37:34 -08:00
Claudiu Lodromanean
6b3fd8e403
Merge pull request #17715 from woocommerce/update/17601
...
Variation add to cart logic
2017-11-15 14:35:52 -08:00
Akeda Bagus
6572ee7852
Added missing meta info (author and date) when adding order note.
...
Fixes #17717 .
2017-11-16 02:03:07 +07:00
Akeda Bagus
6ae10e64e2
Use `add_filter` for `comment_feed_where` hook.
2017-11-16 00:43:12 +07:00
The Dramatist
31155ed531
Woocommerce download readfile chunk number hook proposal ( #17699 )
...
* A hook proposal to modify the chunk number.
`woocommerce_download_readfile_chunk_number` hook is proposed to make modifying the chunk number easily.
* Constant IMO declared for changeable chunk size.
New constant `WC_CHUNK_SIZE` declared to make `WC_Download_Handler` class's `readfile_chunked` method's chunk size changeable.
2017-11-15 16:32:28 +00:00
Mike Jolley
c92f61d6d4
Variation add to cart logic
2017-11-15 16:29:04 +00:00
Mike Jolley
17710b864d
Tweak IPN setting wording
...
@claudiulodro
2017-11-15 15:12:52 +00:00
Mike Jolley
56d86aee96
trashed styling
2017-11-15 13:41:20 +00:00
Mike Jolley
128b826791
Merge branch 'master' into tweak/order-screens
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/class-wc-admin-post-types.php
2017-11-15 13:36:13 +00:00
Mike Jolley
dea454c88e
Clickable elements
2017-11-15 12:51:14 +00:00
Gerhard Potgieter
3524ed2cf0
Merge branch 'master' of github.com:woocommerce/woocommerce into feature/webhook-delivery-logging
2017-11-15 14:28:14 +02:00
Mike Jolley
da004f3229
fix edit link
2017-11-15 12:25:44 +00:00
Mike Jolley
a57edb97a7
Use passed location
2017-11-15 12:14:55 +00:00
Gerhard Potgieter
4521011219
Adjust discount on min/max spend to work based on the displayed subtotal.
2017-11-15 13:44:07 +02:00
Mike Jolley
ef4859aaf0
Merge pull request #17711 from woocommerce/update/17502
...
Improve the Add Payment Methods display
2017-11-15 11:05:11 +00:00
Mike Jolley
599b10b286
Merge branch 'pr/17664'
2017-11-15 10:31:40 +00:00
Mike Jolley
9e2786a0a3
Today up logic
2017-11-15 10:31:31 +00:00
Gerhard Potgieter
0436e9afcb
Rework tax calculations to work with inclusive and exclusive pricing
2017-11-15 12:23:52 +02:00
Mike Jolley
6a8966382d
Merge branch 'pr/17690'
2017-11-15 10:21:49 +00:00
Mike Jolley
e9bbb3a10f
phpcs
2017-11-15 10:21:38 +00:00
Mike Jolley
76adff572e
woocommerce_recently_viewed_products_widget_query_args filter
...
Closes #17678
2017-11-15 10:19:11 +00:00
Gerhard Potgieter
8cbca4d9d9
Include taxes in minimum and maximum coupon validation checks.
2017-11-15 12:04:02 +02:00
Mike Jolley
8dcd7f5b59
Merge pull request #17696 from yratof/patch-1
...
Removed class within class for admin meta boxes
2017-11-15 10:02:19 +00:00
Gerhard Potgieter
0abac7b58e
Log to a seperate log file dedicated to images
2017-11-15 10:34:28 +02:00
Gerhard Potgieter
14bc175241
Remove unused variable, make sure we have the wp image functions loaded before calling them.
2017-11-15 10:23:54 +02:00
Gerhard Potgieter
329f28f08b
Fix SQL query for job queue processing, fix issue where admin images were trying to go through the image resize function.
2017-11-15 10:18:10 +02:00
Gerhard Potgieter
67d2b8e9c5
Use static variable on static class
2017-11-15 10:03:59 +02:00
Gerhard Potgieter
c698b13f6c
Completed background image regeneration using a job and queue.
2017-11-15 09:23:36 +02:00
Gerhard Potgieter
5af93f68ad
Add basic background queue processing framework for image regeneration
2017-11-15 08:36:57 +02:00
Claudiu Lodromanean
4db2a8aa69
Merge pull request #17702 from glagonikas/master
...
PayPal IPN email notifications should be optional
2017-11-14 15:00:23 -08:00
George Lagonikas
6b7cc782d2
Removing obsolete code
2017-11-14 22:30:28 +00:00
George Lagonikas
bca6bc7375
Text changes
2017-11-14 20:31:39 +00:00
George Lagonikas
87a75ce96e
Simplifying logic
2017-11-14 20:30:49 +00:00
Claudiu Lodromanean
cc5c182f9d
Merge pull request #17679 from woocommerce/update/12517-download-reporting
...
Download reporting
2017-11-14 12:23:01 -08:00
SGroupGeorge
64332d82c7
Text changes
2017-11-14 17:51:46 +00:00
SGroupGeorge
3b2eec75d3
Adding checkbox to make IPN emails optional
2017-11-14 17:34:48 +00:00
Andrew Lazarus
ba52e583f9
Removed class within class
...
'<div class="class="wc-order-item-name"">` outputs `<div class="class=" wc-order-item-name="">`
2017-11-14 16:01:57 +01:00
Gerhard Potgieter
016cfabb75
On the fly image regeneration.
2017-11-14 14:39:28 +02:00
Mike Jolley
babde741db
Add add_to_cart_description method and aria-labels to cart buttons in the loop
2017-11-14 11:45:16 +00:00
Mike Jolley
a50f30f792
Remove filter calling deprecated method
2017-11-14 10:21:29 +00:00
Patrik Pärkinen
12d7bf72f3
#16694 Added sort speed fix to ascending sort as well
2017-11-14 11:19:35 +02:00
Claudio Sanches
f27120f649
Introduced product category filter threshold and load categories dropdown
...
Only use WooSelect when have more than 100 terms
2017-11-13 19:47:48 -02:00
Claudio Sanches
487c039b1c
Fixed coding standards
2017-11-13 19:40:10 -02:00
The Dramatist
a25e871981
Parameter input, but checked wrong variable. ( #17681 )
...
Here `$offset` should be `$key`. Cause the parameter is named as `$key`.
2017-11-13 19:40:00 +00:00
Mike Jolley
7347b25ce0
Restore removed action
2017-11-13 19:07:02 +00:00
Mike Jolley
04d8184496
More filter options
2017-11-13 19:03:08 +00:00
Claudiu Lodromanean
a2f8e08e85
Merge pull request #17675 from woocommerce/fix/17665
...
self_admin_url for multisite compatibility
2017-11-13 09:35:38 -08:00
Mike Jolley
dab7dd9c42
PHPCS
2017-11-13 16:29:44 +00:00
Mike Jolley
3621736400
PHPCS
2017-11-13 16:24:33 +00:00
Mike Jolley
f1f30fc8de
Fix download link
2017-11-13 16:10:32 +00:00
Mike Jolley
eddd7fbfb4
Feedback
2017-11-13 15:58:22 +00:00
Mike Jolley
04d7ccfaa4
Show guest
2017-11-13 15:54:01 +00:00
Mike Jolley
eedf745430
Wording and move report location
2017-11-13 15:36:22 +00:00
Mike Jolley
3e7968d37b
Merge branch 'master' into pr/16418
2017-11-13 14:37:18 +00:00
Mike Jolley
4181033371
Clear transients when product terms are updated
...
Closes #17672
2017-11-13 12:43:12 +00:00
Mike Jolley
4245855625
self_admin_url for multisite compatibility
...
Fixes #17665
2017-11-13 12:09:13 +00:00
axelmm
59534a09e7
Remove unnecessary html formatting
...
Dimensions and weight were unnecessary formatted as html (duplicating values of dimensions_html and weight_html), not as expected raw values
2017-11-11 22:33:22 +01:00
soft79
b74eaba287
Update class-wc-discounts.php
...
'woocommerce_coupon_get_apply_quantity' => ( $apply_quantity, $item, $coupon, $discounts )
2017-11-11 20:33:19 +01:00
axelmm
fb94f67b0f
Remove unnecessary formating, fixes #17662
...
https://github.com/woocommerce/woocommerce/issues/17662
2017-11-11 17:26:09 +01:00
Claudio Sanches
74d86cf105
Fixed how update at date displays
2017-11-10 12:37:49 -02:00
Claudio Sanches
30fe4f5ab3
Fixed how check for webhooks dates
2017-11-10 12:34:25 -02:00
Mike Jolley
220728544a
Merge pull request #17631 from woocommerce/update/page-caching-class
...
Page caching class
2017-11-10 14:12:13 +00:00
Claudio Sanches
6553a71586
Fixed how read empty dates while reading webhooks from database
2017-11-10 11:58:25 -02:00
Claudio Sanches
f60b814dd4
Stop creating webhooks when hit the "Add webhook" button
...
Creates only after save edited webhook.
2017-11-10 11:33:53 -02:00
Claudio Sanches
d0f191c363
Use table list search box and update form method to POST
2017-11-10 10:55:58 -02:00
Claudio Sanches
fbf5117e05
Merge branch 'db-log-search' of https://github.com/seostudio/woocommerce into seostudio-db-log-search
2017-11-10 10:17:29 -02:00
Mike Jolley
78466a6665
Merge pull request #17599 from JPry/allow_clone_cart
...
Allow for cloning the WC_Cart object
2017-11-10 12:02:59 +00:00
Gerhard Potgieter
b11ab6d8d6
Convert comments to wc_logger logging, remove and deprecate unused functions and introduce a wc_get_log_file_name helper function. Still a couple of todos left regarding deprecating or removing filters related to comments.
2017-11-10 12:20:59 +02:00
Gerhard Potgieter
ea73b0851d
Remove old webhook log views & deprecate accompanying functions
2017-11-10 08:54:29 +02:00
Gerhard Potgieter
d3f0e9da34
Complete upgrade routine to move current webhook logs from comments to a log file.
2017-11-10 08:40:56 +02:00
James Allan
c91698cde3
Fix db warnings when using the "Add Order Indexes" tool
2017-11-10 16:21:28 +10:00
Claudiu Lodromanean
9d0f729703
Merge pull request #17642 from woocommerce/fix/rest-api-orders-dp
...
[REST API] Fixed default value of "dp" on orders and refunds endpoints
2017-11-09 13:57:24 -08:00
Claudio Sanches
b04c7bd71e
Merge pull request #17628 from woocommerce/fix/17624
...
Change how line items are saved in API
2017-11-09 17:36:39 -02:00
Claudio Sanches
5daf476dfa
Properly sanitize and format "dp"
2017-11-09 17:34:25 -02:00
Claudio Sanches
c6c8af9187
[REST API] Fixed default value of "dp" on orders and refunds endpoints
2017-11-09 17:23:33 -02:00
Claudiu Lodromanean
a574401ddc
Merge pull request #17641 from woocommerce/fix/17625
...
Integrate PHPCompatibility sniffs
2017-11-09 11:19:52 -08:00
Claudio Sanches
b2105774c9
Merge pull request #17629 from woocommerce/fix/17613
...
Set attributes during variation creation
2017-11-09 16:45:57 -02:00
Claudio Sanches
22232f29c7
Fixed PHPCompatibility issues
...
Closes #17625
2017-11-09 16:36:29 -02:00
Chase Wiseman
9558c49e72
Review tweaks
2017-11-09 09:26:17 -08:00
Mike Jolley
0d09d0c0fd
Grab description directly to pass through wc_format_content
2017-11-09 16:57:50 +00:00
Mike Jolley
6e08ff0284
Merge pull request #17610 from woocommerce/update/17557
...
Theme support to declare image sizes
2017-11-09 16:04:22 +00:00
Claudio Sanches
f57ee1e792
Removed "trash" actions and included new "delete" actions
2017-11-09 12:07:44 -02:00
Claudio Sanches
87eabe4b2c
Implements Webhook CRUD into table list
2017-11-09 11:04:31 -02:00
Claudio Sanches
77cb885403
Properly allow to POST data in table list without trigger save settings
2017-11-09 11:03:52 -02:00
Claudio Sanches
61efd99c61
Fixed WC_Webhook_Data_Store::get_webhooks_ids transient
2017-11-09 11:03:14 -02:00
Claudio Sanches
4c4f0c34d5
New settings REST API file
2017-11-09 11:00:11 -02:00
Claudio Sanches
f1dfbb2f58
Fixed coding standards for WC_Admin_Settings
2017-11-09 10:57:54 -02:00
Gerhard Potgieter
d7ca1d8cd8
Webhook logs update routine to move from comments to wc_logger
2017-11-09 08:02:59 +02:00
Claudio Sanches
9979e4b3e5
Merge pull request #17589 from woocommerce/fix/17585
...
get_total_ex_tax should exclude fee taxes
2017-11-08 19:05:23 -02:00
Claudio Sanches
b58be24b81
Introduced new filters to allow save settings
2017-11-08 17:35:31 -02:00
Claudio Sanches
4970ac6bdf
Fixed coding standards in WC_Admin_Menus class
2017-11-08 17:33:04 -02:00
Grzegorz Rola
9ae73bcc44
wp_unslash() needs to always comes first
2017-11-08 17:02:08 +01:00
Jeremy Pry
0e43551535
Move inline comment into the docblock
2017-11-08 10:18:08 -05:00
Jeremy Pry
cf5bd606c6
Rename register_hooks() to init()
2017-11-08 10:17:52 -05:00
Mike Jolley
9f059e17a9
Add helper function instead of calling method, and restore old method for bw compat
2017-11-08 15:07:00 +00:00
Mike Jolley
45c6f0e00d
Restore old function name and phpcs
2017-11-08 14:54:13 +00:00
Gerhard Potgieter
a3fd99ddd9
GeoDB empty file handling ( #17541 )
...
* Make sure we do not save empty geodb files, also add checks to ensure we do not read form an empty geodb file.
* Add logger message when deleting file on checking size
2017-11-08 14:28:03 +00:00
Gerhard Potgieter
7b9fb6c0cb
Change nocache_headers hook firing ( #17540 )
...
* wp hook is too late to fire the nocache_headers filter, some caching plugins read it before that it seems.
* Create do_not_cache_page helper function and call that instead of nocache_headers
* Must add checks to prevent caching on certain pages as well
* Nothing to return
2017-11-08 14:27:30 +00:00