Commit Graph

16861 Commits

Author SHA1 Message Date
Gregory Karpinsky 88b9f3763e
Update wc-template-functions.php
`wc_privacy_policy_page_id()` has no parameters.
2018-04-19 21:35:02 -04:00
Gregory Karpinsky 02a4538c82
Update wc-template-functions.php
Spelling
2018-04-19 21:19:36 -04:00
Khan M Rashedun-Naby b6cfc6f291 Removed unnecessary else condition. 2018-04-20 01:06:25 +06:00
Mike Jolley 8aa214bab5 Better callback 2018-04-19 18:37:07 +01:00
Mike Jolley bd539e38f0 Remove output buffering 2018-04-19 18:27:29 +01:00
Mike Jolley b28b611bb6 Hook notices into WC areas and support returning notices 2018-04-19 18:26:52 +01:00
Mike Jolley efe06cb147 Remove direct calls to wc_print_notices 2018-04-19 18:26:21 +01:00
Khan M Rashedun-Naby 1b7e14a4b6 Spelling fix 2018-04-19 21:10:36 +06:00
Rodrigo Primo 697421a9fa Cache query to get the list of orders placed by the user ID 1 2018-04-19 10:14:02 -03:00
Mike Jolley 1d0528b73f
Merge pull request #19778 from woocommerce/fix/inline-docs-admin-attributes
Fixed admin attributes page inline docs
2018-04-19 10:48:36 +01:00
Khan M Rashedun-Naby 9aed8394cb Removed unnecessary else condition check. I think in this situation after early returning the else is redundant. 2018-04-19 11:04:44 +06:00
Claudio Sanches 00bc21135c Fixed admin attributes page inline docs 2018-04-18 15:32:46 -03:00
claudiulodro 3547df00d9 Use min of 1 for number 2018-04-18 09:48:42 -07:00
claudiulodro c15cb09700 Resolve merge conflicts 2018-04-18 09:46:15 -07:00
claudiulodro 754031ce6d Add min to date number 2018-04-18 09:42:32 -07:00
claudiulodro 63972447cb Fix nonexistent function calls 2018-04-18 09:40:23 -07:00
Mike Jolley 33f4fd7b93 Moved to privacy class and updated dummy content. 2018-04-18 17:10:41 +01:00
Mike Jolley 128c9cb0da Merge branch 'master' into update/19739 2018-04-18 17:02:46 +01:00
Beka Rice 7bd9cdacaa Filter the used coupon URL in 'edit order' screen 2018-04-18 11:49:35 -04:00
Claudio Sanches 9679e7be1f
Merge pull request #19772 from woocommerce/update/notice-display
Only show notices on specific screens
2018-04-18 12:23:11 -03:00
Mike Jolley d381330a91
Merge pull request #19705 from woocommerce/fix/19619
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Claudiu Lodromanean 48eb13d602
Merge pull request #19747 from woocommerce/update/19734
Add privacy policy to account pages
2018-04-18 07:26:06 -07:00
Gerhard Potgieter 3f785d8964 Remove unused variables and merge correct ones. 2018-04-18 16:10:37 +02:00
Gerhard Potgieter a15687470d Move fist and last date into one query 2018-04-18 16:07:54 +02:00
Peter Fabian 4538f3fa8f Moved wc_selected to core functions. 2018-04-18 15:54:57 +02:00
GlennMartin1 256a4d96e2
grammar fix... 2018-04-18 09:11:32 -04:00
Mike Jolley fc8e7be3ab Only show notices on specific screens 2018-04-18 14:08:31 +01:00
Mike Jolley e201b74832
Merge pull request #19756 from woocommerce/feature/19735
Notice about HTTPS as a requirement
2018-04-18 13:53:54 +01:00
Mike Jolley 5455e7049b Update notice text 2018-04-18 13:52:59 +01:00
Mike Jolley 29961b540a Fix up query 2018-04-18 12:04:53 +01:00
Mike Jolley 248ad8f860 Add anonymized meta to order 2018-04-18 11:35:42 +01:00
Mike Jolley 30ba25d535 Remove defaults 2018-04-18 11:24:07 +01:00
Mike Jolley 9dfb91835e Merge branch 'master' into update/gdpr-order-cleanup 2018-04-18 11:21:43 +01:00
Mike Jolley 8a05930cba
Merge pull request #19761 from woocommerce/update/obw-save-locales-measurement-units-when-saving-address
OBW: Save locale-specific measurement units upon saving address
2018-04-18 11:09:48 +01:00
Mike Jolley 97e747e745 Add default text prop 2018-04-18 11:05:36 +01:00
Mike Jolley b05ac76303
Merge pull request #19762 from woocommerce/update/obw-store-state-control-in-store-setup-form-layout
OBW: Position State select between City and Zip inputs
2018-04-18 11:04:41 +01:00
Peter Fabian b770e0baed Used the selected function to take care of markup and simple case. 2018-04-18 09:57:19 +02:00
Gerhard Potgieter a7b4bcb31a Restore order counts 2018-04-18 09:04:34 +02:00
Gerhard Potgieter db57a67fde Use sql query to improve speed and only do gross 2018-04-18 08:59:34 +02:00
Paul Dechov c1211e5f03 OBW: Move store State dropdown between City and Zip 2018-04-17 23:16:59 -04:00
Paul Dechov 8c8e18d25b OBW: Save locale-specific measurement units upon saving address 2018-04-17 22:52:42 -04:00
Jeff Stieler e2d6656124 OBW: show PayFast payment gateway to merchants in South Africa. 2018-04-17 17:45:43 -06:00
Claudiu Lodromanean 59d967c859
Merge pull request #19754 from woocommerce/add/obw-eway-payment-gateway
OBW: Show eWAY payment gateway to merchants in AUS/NZ.
2018-04-17 16:33:41 -07:00
Jeff Stieler 098115006e OBW: prevent MailChimp from redirecting after activation. 2018-04-17 17:15:14 -06:00
Claudio Sanches 5dda3496fc Display message once per user 2018-04-17 18:26:08 -03:00
Claudio Sanches c4d099fe87 Included missing doc link 2018-04-17 18:10:36 -03:00
Jeff Stieler baa2180221 OBW: Show eWAY payment gateway to merchants in AUS/NZ. 2018-04-17 15:05:34 -06:00
claudiulodro 6d8946048f Add skip link to recommended step and make skip links darker 2018-04-17 13:55:23 -07:00
Claudio Sanches b270bd2c5b Fixed PHPCS violations 2018-04-17 17:44:11 -03:00
Claudio Sanches 8350f88f57 Introduced message about secure connection 2018-04-17 17:39:18 -03:00
Claudiu Lodromanean 624e8d5cb0
Merge pull request #19723 from woocommerce/update/extras-obw-tab
OBW: Replace Extras step with Recommended
2018-04-17 13:32:14 -07:00
claudiulodro f9e45bea91 Bring up-to-date with master and resolve merge conflicts 2018-04-17 13:27:39 -07:00
Rodrigo Primo 923eeb2e43 Monitor only memory limit while running the data migration
Turns out WP_Background_Process uses an arbitrary value of 20 seconds of wall clock time to measure PHP "time limit" (b0617a13c4/includes/libraries/wp-background-process.php (L385)) instead of cpu time which apparently it is not easy to measure in PHP. Since system calls (like database calls) are not included in the PHP maximum execution time, 20 seconds of wall clock is often way less than PHP time limit.

Thus, this commit removes the call to WP_Background_Process::time_exceeded() while running the function to migrate the post meta _customer_user to the field post_author. If the script times out, WP_Background_Process will restart it.
2018-04-17 16:07:18 -03:00
Rodrigo Primo e02f3fbec4 Migrate data to post_author in a single go when using WP-CLI 2018-04-17 16:07:11 -03:00
claudiulodro 700f0bfca1 Implement privacy policy content 2018-04-17 11:03:39 -07:00
Valerie 43ab4b25ae OBW: Update Recommended step description 2018-04-17 13:51:49 -04:00
Valerie 551db8246e OBW: Add MailChimp to recommended step 2018-04-17 13:51:49 -04:00
Valerie c1e55cd6a5 OBW: Update automated taxes option 2018-04-17 13:51:48 -04:00
Valerie 452491d12d OBW: Update Storefront description and style 2018-04-17 13:51:46 -04:00
Mike Jolley 6c5d4c7cda Add privacy settings 2018-04-17 18:32:31 +01:00
Valerie cadcd562d8 OBW: Rename Extras Step as Recommended 2018-04-17 13:14:27 -04:00
Mike Jolley 718c91f920
Merge pull request #19639 from woocommerce/fix/19620
Introduced new wc_get_product_class() and wc_product_class()
2018-04-17 17:00:43 +01:00
Claudio Sanches c185d6b6d3 Merge branch 'fix/19620' of github.com:woocommerce/woocommerce into fix/19620 2018-04-17 12:54:35 -03:00
Claudio Sanches a7ce4ff6d3 Escape all at the same time 2018-04-17 12:54:01 -03:00
Mike Jolley da17e4a174
Merge pull request #19711 from wayheming/master
Recent Product Reviews template
2018-04-17 16:53:55 +01:00
Claudiu Lodromanean 006bd017cd
Merge pull request #19675 from woocommerce/fix/19605
Slash meta values before updating the DB in the data store
2018-04-17 08:50:50 -07:00
Claudio Sanches 933bcc32c3
Merge branch 'master' into fix/19620 2018-04-17 12:45:20 -03:00
Claudiu Lodromanean 9821f6d23f
Merge pull request #19744 from woocommerce/update/19592
BD states and iso codes
2018-04-17 08:44:34 -07:00
Claudiu Lodromanean 90dfbf0ccd
Merge pull request #19728 from woocommerce/fix/plugin-installer-non-slug-filenames
Setup wizard: Bug fix and support for non-slug filenames in plugin installer
2018-04-17 08:39:16 -07:00
Claudio Sanches f18220a009 Updated unit tests 2018-04-17 12:31:14 -03:00
Mike Jolley fc05f8adb2
Merge pull request #19625 from danielbitzer/master
Set the order created_via property for orders created via admin area
2018-04-17 16:26:20 +01:00
Claudio Sanches 54b6174b34 Fixed $post when using product instance 2018-04-17 12:21:56 -03:00
Claudio Sanches c19836b0e4 Moved espace to wc_product_class 2018-04-17 12:18:21 -03:00
Mike Jolley ba3da2fc1f Use original code 2018-04-17 16:18:14 +01:00
Mike Jolley 77b73e05c8 Trigger updater 2018-04-17 16:16:11 +01:00
Claudio Sanches 627292d627 Include categories and tags by default 2018-04-17 12:14:18 -03:00
Mike Jolley 9b043868e9 Update routine 2018-04-17 16:13:44 +01:00
Mohammed Saimon 7869d5bc83 fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720 (#19732)
* fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720

* added -- which was removed unwillingly

* changed method name to parse_int_field and removed unnecessary checking
2018-04-17 15:37:33 +01:00
Mike Jolley bce3c7e94c Disable anon for now 2018-04-17 15:33:40 +01:00
Mike Jolley 314d949d2c Background process to cleanup 2018-04-17 15:21:03 +01:00
Rodrigo Primo ccf10f6ab2 Punt to WC version 3.5.0 2018-04-17 11:12:46 -03:00
Mike Jolley 6e9e1aaa62 Daily order cleanup cron schedule 2018-04-17 12:33:22 +01:00
Mike Jolley 6598f6dc61 Basic privacy class from #19330 2018-04-17 12:25:03 +01:00
Peter Fabian 7861d7b95f Changed usage of selected with in_array to wc_selected. 2018-04-17 13:24:39 +02:00
Mike Jolley d8814f9381 tip alignment 2018-04-17 12:19:01 +01:00
Mike Jolley 27cf41bbf0 Added personal data cleanup settings 2018-04-17 11:45:24 +01:00
Peter Fabian 49529e0912 Added wc_selected function.
- Added unit test for the wc_selected function.
2018-04-17 12:13:46 +02:00
Mike Jolley e8cc1076ad
Merge pull request #19637 from woocommerce/update/gdpr-checkout-customizer
GDPR checkout improvements
2018-04-16 20:00:33 +01:00
Khan M Rashedun-Naby 74c2ceb3d1 Removed unnecessary variable. 2018-04-17 00:09:30 +06:00
Mike Jolley 860e7a5d23 Merge branch 'master' into update/gdpr-checkout-customizer 2018-04-16 18:02:28 +01:00
Mike Jolley 8a19c5962b Further simplified customiser options 2018-04-16 17:56:44 +01:00
Mike Jolley 094fc1bf3a
Merge pull request #19703 from woocommerce/update/settings-tabs-for-privacy
Moved around settings tabs to allow for a privacy page
2018-04-16 16:45:19 +01:00
Rodrigo Primo 4123cc6f7d Migrate _customer_user to post_author in batches
This will make the update slower but safer when running in cheap servers.
2018-04-16 11:15:42 -03:00
Mike Jolley 7f013a0616 Fix storefront * hiding 2018-04-16 15:12:15 +01:00
Rodrigo Primo c77b2f20f4 Change WC_Background_Updater to allow in-task resource monitoring
This change makes it possible to monitor resource usage inside each of the database update functions. Useful when doing resource intensive updates to stop the execution and requeue before the execution is aborted.
2018-04-16 10:40:00 -03:00
Mike Jolley 78f96fcd40 Hook mapping/bw compat 2018-04-16 14:27:03 +01:00
Paul Dechov a4f76e3529 Fix broken activation when done immediately after installation 2018-04-16 07:22:15 -04:00
Paul Dechov 73884400f1 Remove unnecessary 'file' value for existing plugins 2018-04-16 07:21:04 -04:00
Paul Dechov 2b118c8ba8 Always check for active plugin in wizard before scheduling install
Check for active plugin independent of whether 'file' is present. Also omits directory from 'file' string and prepends [slug]/ to it.
2018-04-16 07:20:42 -04:00
Paul Dechov 3814796a24 Enhance plugin installer to accept plugin 'file'
'file' string as part of plugin information is used for activating plugin in combination with slug, or instead of slug in the case of plugins already installed. Defaults to [slug].php.
2018-04-16 07:16:59 -04:00
Claudiu Lodromanean 1d6ee4736b
Merge pull request #19678 from woocommerce/fix/19514
Handle escape characters for fputcsv
2018-04-13 12:01:32 -07:00
Mike Jolley 93d20d9c93 Data removal handling 2018-04-13 18:03:02 +01:00
Mike Jolley eb6d230d38 Export downloads and logs 2018-04-13 17:00:26 +01:00
Peter Fabian 93a0808887 Specified input parameters more precisely. 2018-04-13 16:35:14 +02:00
Mike Jolley 965712a1d7 Data removal for accounts/guests 2018-04-13 15:35:03 +01:00
Peter Fabian 8cb1490d55 Added wc prefix to function name. 2018-04-13 16:29:16 +02:00
Mike Jolley 3f2d8e8eef delete_by_user_id method for customer downloads 2018-04-13 15:07:58 +01:00
Mike Jolley 53a93fd3b1 Clean up user data on delete. 2018-04-13 15:07:38 +01:00
Peter Fabian 62f9b129dc Converted all input values to selected to strings
Extracted conversions and compare logic to a separate function to improve readability.
2018-04-13 14:23:32 +02:00
Gerhard Potgieter df5bfc5b6a Private not public 2018-04-13 14:18:39 +02:00
Ernest 0d70b3b34e Recent Product Reviews template 2018-04-13 14:20:46 +03:00
Mike Jolley 6cb72c2e03 Add extra data to export 2018-04-13 11:49:03 +01:00
Gabor Javorszky ff3fcf0d2b Make Product Factory use global $post instead of $GLOBALS['post'] 2018-04-13 11:29:33 +01:00
Gabor Javorszky 73e0e3a60e Make Product Factory return an int from $post->ID 2018-04-13 11:28:42 +01:00
Gabor Javorszky 615815353f Make Order Factory return an int as well from $post->ID 2018-04-13 11:27:30 +01:00
Gabor Javorszky d569920825 Cast coupon's $post->ID to int 2018-04-13 11:25:58 +01:00
Peter Fabian 0fc6d4e20c Fix strict comparison for normal select, too. 2018-04-13 10:26:37 +02:00
Peter Fabian e17e6d0b0f Improved the comment 2018-04-12 19:34:49 +02:00
Mike Jolley 704ee893cf Update for new patch in core 2018-04-12 17:32:02 +01:00
Mike Jolley 1b34cd4745 Moved settings tabs around to allow for privacy page. 2018-04-12 16:59:42 +01:00
Claudiu Lodromanean 736e713b0b
Merge pull request #19699 from woocommerce/fix/19685
Added scroll to notices to cart page
2018-04-12 08:51:51 -07:00
Peter Fabian b88a21dae9 Add dependency on the common js code. 2018-04-12 16:15:00 +02:00
Mike Jolley 7080989081 Move coupon settings to general settings 2018-04-12 11:13:15 +01:00
Mike Jolley eb886c924e Rename option tabs 2018-04-12 11:13:01 +01:00
JeroenSormani 4e6b0dc500 Doc improvements (return types mostly) 2018-04-12 09:10:14 +02:00
Rodrigo Primo 35998e56cb Reposition wc_update_340_order_customer_id() function
So that it is listed together with WC 3.3 update functions
2018-04-11 15:23:12 -03:00
Rodrigo Primo 36ca6ef901 Merge branch 'master' into update/use-post-author-for-customer-id 2018-04-11 15:19:58 -03:00
Claudiu Lodromanean 5bc7e91b67
Merge pull request #19670 from woocommerce/update/19641
Load meta box input values using CRUD and edit context
2018-04-11 10:14:06 -07:00
Mike Jolley 6c14ad9a88 More wording tweaks 2018-04-11 17:12:48 +01:00
Mike Jolley 592605f071 Wording 2018-04-11 16:45:41 +01:00
Mike Jolley cdd5b25bd8 Privacy page and default text handling 2018-04-11 16:41:39 +01:00
Mike Jolley 25f0bd46fc Remove terms from settings so it's with new checkbox options 2018-04-11 15:03:47 +01:00
Mike Jolley e190d354b4 Page selection for privacy/terms 2018-04-11 15:01:21 +01:00
Mike Jolley 0f8e1cd705 Use placeholders 2018-04-11 14:07:50 +01:00
Mike Jolley 4e58d756f0 Tweak checkbox placement 2018-04-11 13:50:28 +01:00
Mike Jolley 4e9984718d Simplify required field option 2018-04-11 13:40:42 +01:00
Mike Jolley eb3b1dbee6 Add dummy product to cart when viewing preview 2018-04-11 13:19:39 +01:00
Gerhard Potgieter 8125797aad Remove counts variable from merge as it is now part of main method. 2018-04-11 10:35:43 +02:00
Gerhard Potgieter fa2f0add45 Make order status counts part of the main order method 2018-04-11 10:32:24 +02:00
Gerhard Potgieter 38a87b0ad2 Gross per gateway 2018-04-11 09:56:39 +02:00
Gerhard Potgieter 3e2f20adf6 Fix net and gross calculations 2018-04-11 08:48:32 +02:00
Gerhard Potgieter 25971b88b9 Format datetime 2018-04-11 08:41:57 +02:00
Gerhard Potgieter 19b7052a12 PHPCS fixes 2018-04-11 08:26:22 +02:00
Gerhard Potgieter af1de29536 Fix up main orders method 2018-04-11 08:14:20 +02:00
Gerhard Potgieter eb1dcff545 Convert to one order order loop 2018-04-11 08:12:55 +02:00
Claudio Sanches be1b200ce8
Merge pull request #19669 from woocommerce/fix/19450
Avoid storing coupon `used_by` data
2018-04-10 14:30:33 -03:00
Claudio Sanches f3f05fd59a
Merge pull request #19668 from woocommerce/fix/19657
Clear shipping transient when saving shipping method on zones screen
2018-04-10 14:28:53 -03:00
Claudio Sanches 81a699114c
Merge pull request #19667 from woocommerce/fix/19655
Load gateways before order is saved/email is triggered
2018-04-10 14:27:47 -03:00
Mike Jolley 5d4561240a Handle escape characters for fputcsv 2018-04-10 18:08:56 +01:00
Claudio Sanches 2a4b364069
Merge pull request #19671 from woocommerce/fix/19661
sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
2018-04-10 11:49:51 -03:00
Mike Jolley 903e3e8acd Fix featured filter 2018-04-10 14:58:06 +01:00
Mike Jolley 73709ee7cd Slash meta values before updating the DB in the data store 2018-04-10 14:43:38 +01:00
Gerhard Potgieter 59984654ec Add discount totals 2018-04-10 14:27:42 +02:00
Gerhard Potgieter 9e6fe4cad1 Add net total 2018-04-10 14:22:21 +02:00
Gerhard Potgieter 601c9910a9 Add first order date 2018-04-10 14:17:17 +02:00
Gerhard Potgieter d63b0018d8 Add tax total 2018-04-10 14:10:21 +02:00
Mike Jolley 50e2832d2d sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
Fixes #19661
2018-04-10 13:09:20 +01:00
Mike Jolley efe0d36eea Load meta box input values using CRUD and edit context 2018-04-10 13:01:52 +01:00
Gerhard Potgieter 4a7ee19d18 Add shipping 2018-04-10 14:01:22 +02:00
Mike Jolley 55aced044f Avoid storing coupon `_used_by` data 2018-04-10 12:36:24 +01:00
Mike Jolley 47fbd79d8f Clear shipping transient when saving shipping method on zones screen 2018-04-10 12:25:09 +01:00
Mike Jolley f9cc65b586 Load gateways before order is saved/email is triggered
Fixes #19655
2018-04-10 12:15:14 +01:00
Mike Jolley cc14ddf1ae
Merge pull request #19658 from woocommerce/fix/19588
Changed county codes for Ireland according to ISO
2018-04-10 12:01:01 +01:00
Peter Fabian 8e8a1ca054 Clear comment count transient when cleaning product transients 2018-04-10 12:12:51 +02:00
Peter Fabian ac1883ee00 Included db update scripts in WC install 2018-04-09 23:24:26 +02:00
Peter Fabian a3d6dc1775 Changed county codes for Ireland according to ISO 2018-04-09 23:15:09 +02:00
Peter Fabian d2efef5a1c Handling of PHP's automatic array key conversion to int 2018-04-09 16:39:14 +02:00
Gerhard Potgieter 72d078452c Add last order and gross functions 2018-04-09 14:54:50 +02:00
Mohammed Saimon eccd74b71d added checking for invalid ratings while saving 2018-04-09 18:13:13 +06:00
Mohammed Saimon 6d973b98b6 returned data early if nonce checking is failed 2018-04-07 15:13:35 +06:00
Mohammed Saimon 6f36133ed5 Product rating count doesn't update when ratings are edited by admin is fixed #19581 2018-04-07 12:50:14 +06:00
Claudio Sanches 900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Claudio Sanches 60ad91266d Fixed wrong variable 2018-04-06 15:08:11 -03:00
Claudio Sanches b3bf245929 Introduced new wc_get_product_class() and wc_product_class functions 2018-04-06 13:58:59 -03:00
Mike Jolley 212a8a180f Back compat 2018-04-06 11:51:03 +01:00
Mike Jolley 3140a0fb62 More customistion options for terms and conditions. 2018-04-06 11:43:30 +01:00
Brian Henry b6f1f68a00
Documentation punctuation fixes: its = posessive 2018-04-05 19:45:14 -07:00
Mike Jolley 46815d1d01 Add controls to control if address 2, company, and phone fields are optional, required, or hidden. 2018-04-05 17:51:43 +01:00
Mike Jolley e30b8e8a5f Rename script so required label logic works 2018-04-05 17:02:06 +01:00
Mike Jolley 3bf567279b Improve default appearance of descriptions so they toggle on focus and support HTML. 2018-04-05 16:56:00 +01:00
Mike Jolley 3a6c3e002b Add option to choose if the checkout marks either required or optional fields, and style these options. 2018-04-05 14:12:59 +01:00
Mike Jolley 0091d7a18c Adds checkout section to the customizer under `woocommerce` 2018-04-05 13:55:15 +01:00
Daniel Bitzer 1f5d4050b3 Set created_via propery for orders created in admin area 2018-04-05 13:58:51 +02:00
Mike Jolley 3c35320f76
Merge pull request #19610 from woocommerce/fix/19569
Use nbsp to separate * denoting required fields.
2018-04-05 11:02:39 +01:00
Mike Jolley 68c6c16a3b
Merge pull request #19611 from woocommerce/fix/wc_get_page_id-bug
Fixed bug when using asbint() with wc_get_page_id()
2018-04-05 10:55:43 +01:00
Mike Jolley b0d3f732d6
Merge pull request #19615 from woocommerce/fix/variable-passed-by-reference
Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
2018-04-05 10:53:52 +01:00
Mike Jolley 5172694a3a
Merge pull request #19477 from woocommerce/fix/infinite-scroll
Infinite scroll compatibility
2018-04-05 10:46:44 +01:00
Mike Jolley 086f07c47d
Merge pull request #19602 from woocommerce/fix/19431
Link product import/export to import/export capabilities
2018-04-05 10:45:29 +01:00
Claudio Sanches 0ac857f049 Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
Fixed notice:

```
PHP Notice:  Only variables should be passed by reference in includes/admin/importers/class-wc-product-csv-importer-controller.php on line 298
```
2018-04-04 15:50:08 -03:00
Claudio Sanches 95edc882ea Fixed bug when using asbint() with wc_get_page_id()
When a page does not exists `wc_get_page_id()` returns `-1`, so applying
`absint()` should cause bugs when comparing with "Hello world!" page.
2018-04-04 12:12:05 -03:00
Claudio Sanches ac2e71f22f
Merge pull request #19607 from kouratoras/patch-1
Switch to intval when checking for the shop page
2018-04-04 12:02:56 -03:00
Peter Fabian 80dc183880 Use nbsp to separate * denoting required fields. 2018-04-04 16:45:40 +02:00
Claudiu Lodromanean 4d04038372
Merge pull request #19599 from RamseyInHouse/suppressHelperConnectNotice
Add filter to suppress admin WordPress.com connection message.
2018-04-04 07:44:42 -07:00
Claudiu Lodromanean b97d578628
Merge pull request #19603 from woocommerce/fix/19589
Switched Georgian Lari to correct UTF symbol
2018-04-04 07:35:39 -07:00
Peter Fabian ada11aa4e2 Hid import/export from menu when having insufficient capabilities
- Made AJAX reply more verbose in case of insufficient capabilities.
2018-04-04 15:06:13 +02:00
Konstantinos Kouratoras 7a9569a185
Switch to intval when checking for the shop page
When shop page is not set, shop page id is set to -1. Using absint when checking if the current page is the shop page, this was applied to post with ID 1. Using intval, this is prevented.

Fixes #19606
2018-04-04 15:15:36 +03:00
Peter Fabian 0e25f5840a Comment PHPCS fix. 2018-04-04 12:18:53 +02:00
Peter Fabian d920f3dcba PHPCS fixes. 2018-04-04 12:06:01 +02:00
Peter Fabian 55632d0703 Switched Georgian Lari to correct UTF symbol 2018-04-04 11:11:05 +02:00
Peter Fabian 1ef47120a8 Link product import/export to import/export capabilities
- show Import/Export Products buttons only if the user has import/export capability
- show Woo importer/exporter under Tools only if user has import/export capability
- require both edit_products and import/export to run those actions
-
2018-04-04 10:30:49 +02:00
Philip Downer 73ff850b82 Add filter to suppress WordPress.com connection message.
Allows developers to supress only the WordPress.com connection message, while still leaving other admin notices (eg., upgrade notice) in place.
2018-04-03 13:42:01 -05:00
Rodrigo Primo a7d2c5dd6e Merge branch 'master' into update/use-post-author-for-customer-id 2018-04-03 15:13:07 -03:00
Mike Jolley 4e42b2cd30 Handle manage_stock mixed content for variations 2018-04-03 17:46:43 +01:00
Mike Jolley 5ac7aac369 Improve can_refund_order and add unit tests 2018-04-03 17:09:09 +01:00
Mike Jolley 46516422dd
Merge pull request #19221 from woocommerce/pr/18596
Use shipping method instances to conditionally enable COD
2018-04-03 16:26:39 +01:00
Mike Jolley d02106f697 Merge branch 'master' into pr/18596 2018-04-03 16:24:19 +01:00
Claudio Sanches d043e4727b
Merge pull request #19595 from woocommerce/fix/19562
Trigger post modified update when saving products and variations, but no other product data
2018-04-03 12:23:10 -03:00
Mike Jolley 7b45e90357 Merge branch 'master' into update/19302 2018-04-03 14:57:24 +01:00
Mike Jolley 5bc26ebd79 Merge branch 'master' into update/17427 2018-04-03 14:38:49 +01:00
Mike Jolley 2ed018d542 Trigger post modified update when saving products and variations, but no other product data
Closes #19562
2018-04-03 12:51:58 +01:00
Claudiu Lodromanean fe140110a6
Merge pull request #19502 from rynaldos/duplicate-queries
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-04-02 08:49:25 -07:00
Will Gorham 55707ecc7e Display order item refund as negative value 2018-03-30 17:09:44 -04:00
Claudiu Lodromanean 5ff236fd54
Merge pull request #19567 from woocommerce/fix/19524
Ensure background process class returns `data` as an array
2018-03-30 08:13:52 -07:00
Claudiu Lodromanean b92ea90761
Merge pull request #19571 from Chouby/before_delete_product
Add action woocommerce_before_delete_{$post_type}
2018-03-30 08:00:17 -07:00
Claudio Sanches 38a4af3b0e Included @since tags in new methods of WC_Product_Download 2018-03-29 15:28:10 -03:00
Claudiu Lodromanean 8870f76afe
Merge pull request #19575 from woocommerce/add/downlodable-file-permission-hook
Adds new hook to allow customize downlodable file permissions
2018-03-29 10:05:35 -07:00
Claudio Sanches 4c6641ab6a Adds new hook to allow customize downlodable file permissions
This is needed on Product Custom Tables in order to allow control expire
and remaining downloads per file.
2018-03-29 13:58:40 -03:00
Mike Jolley 01be034279 Disable geolocation if using legacy php #19548 2018-03-29 17:04:31 +01:00
Mike Jolley 69a3a78a4c Typo 2018-03-29 16:46:11 +01:00
Mike Jolley b88289e5c1 GeoIP version check in status report 2018-03-29 16:44:45 +01:00
Mike Jolley 7ec6917475 PHP version checks to recommend 7.2 2018-03-29 16:38:44 +01:00
Mike Jolley 36aee04abb Include WordPress version check and resolve phpcs issues 2018-03-29 16:08:36 +01:00
Rodrigo Primo bb553c88ae Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-29 12:05:55 -03:00
Rodrigo Primo edfadcf7ae Product price filter widget: add a new filter to change the query to get max and min prices 2018-03-29 11:52:49 -03:00
Frédéric Demarle ee2140944c add action woocommerce_before_delete_{$post_type} 2018-03-29 14:52:19 +02:00
Mike Jolley 51d634e29a Ensure background process class returns `data` as an array
Fixes #19524
2018-03-29 11:09:41 +01:00
Mike Jolley 4a6c526229
Merge pull request #19557 from bernattorras/before_variations_hook
Add 'woocommerce_variable_product_before_variations' hook to variations tab
2018-03-29 11:00:34 +01:00
bernat torras 307605a739 Added 'Removed extra tabs 2018-03-28 21:27:46 +02:00
Claudio Sanches e718bdd11c
Merge pull request #19192 from nishitlangaliya/Issue-18990
Fixes- Admin - removed product type column
2018-03-28 15:37:57 -03:00
Claudio Sanches 5bec3b229f
Merge pull request #19527 from woocommerce/fix/19519
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
2018-03-28 15:23:14 -03:00
Claudio Sanches 35b75b5beb
Merge pull request #19555 from woocommerce/update/19547-wp-cli-pagination
WP-CLI integration per_page default
2018-03-28 14:01:38 -03:00
bernat torras 47d85844d8 Added 'woocommerce_variable_product_before_variations' hook to variation tab 2018-03-28 16:02:06 +02:00
Mike Jolley 51252915e1
Merge pull request #19493 from woocommerce/fix/19404
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian 3809ab3f4c Fixed shipping tax logic to behave the same as originally 2018-03-28 13:08:05 +02:00
Gerhard Potgieter 2c24872989
Merge pull request #19541 from woocommerce/update/tracking-wording
Tweak wording for opt-out
2018-03-28 12:12:18 +02:00
Mike Jolley 5547c57c03
Merge pull request #19504 from woocommerce/fix/19485-backorder-import
Product import backorders default to no
2018-03-28 11:00:09 +01:00
Mike Jolley 7966fcfbe7
Merge pull request #19522 from woocommerce/fix/19491
Apply strip_tags to attributes in loop template
2018-03-28 10:57:58 +01:00
Peter Fabian c2e27919ce Replaced array_key_exists with isset test 2018-03-28 11:19:03 +02:00
Peter Fabian 59c47c4407 Refactored line item logic
- prepare_line_items is not used as a test anymore, it only updates line items
- add_line_item is not used as a test anymore, only adds line items
- added method line_items_valid to test for valid line items
- shipping tax inclusion test moved to get_shipping_cost_line_item to encapsulate shipping tax-related logic
2018-03-28 11:04:34 +02:00
Gerhard Potgieter 9c67760bc0 per_page must be between 1 and 100, default to 100. 2018-03-28 10:18:10 +02:00
Gerhard Potgieter 1f2468ca3e When no per_page is defined for list wp-cli command default to displaying all items as per the wp-cli standard. 2018-03-28 09:47:15 +02:00
Mike Jolley 57378785bf Split up state and country fields 2018-03-27 19:32:04 +01:00
Mike Jolley 38c29204d4 Include US in US dollar dropdown so it's searchable 2018-03-27 18:35:15 +01:00
Claudiu Lodromanean d802d2ca6a
Merge pull request #19526 from woocommerce/fix/19511
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-27 08:36:31 -07:00
Peter Fabian 86f1b3701f Tag stripped outside template
Stripping only affects aria-label attribute now.
2018-03-27 17:19:49 +02:00
Claudiu Lodromanean ccdf0923fa
Merge pull request #19509 from woocommerce/update/19506
Call empty cart when completing payment in PayPal
2018-03-27 07:58:59 -07:00
Peter Fabian f39e8e3900 Removed incorrect comment 2018-03-27 16:28:25 +02:00
Peter Fabian 5eda49f98a Line item logic refactored
Renamed function get_non_line_item_args
Documentation updates
...all part of code review fixes
2018-03-27 15:55:03 +02:00
Mike Jolley 0c3ab5d485 Update currency text to make it clear it's to accept payments 2018-03-27 13:35:13 +01:00
Mike Jolley 0599c06b20 Disable Gutenberg for products. 2018-03-27 13:28:03 +01:00
Mike Jolley dd3b998851 Tweak wording for opt-out 2018-03-27 13:00:19 +01:00
Mike Jolley ffb6bc844c Use `get_variation_price` method in structured data to grab min/max so filters are ran.
Closes #19519
2018-03-26 12:54:17 +01:00
Peter Fabian 88588eccbc Code duplication removed
Added test for non line item agrument presence
Fixed incorrect comment
2018-03-26 13:05:55 +02:00
Mike Jolley ced5980e79 Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded. 2018-03-26 12:03:00 +01:00
Mike Jolley b25ff31d5c
Merge pull request #19419 from woocommerce/feature/18477
MaxMind GeoLite2 integration
2018-03-26 11:31:21 +01:00
Mike Jolley c8f6330158
Merge pull request #19515 from woocommerce/fix/order-products-by-price
Use minimum price to order variable products on term archives
2018-03-26 11:17:23 +01:00
Peter Fabian e19d64e51e Fixed PHPCS violations 2018-03-26 11:00:28 +02:00
ahmedofali d06854a0b4 Defining array before attempting to append to it 2018-03-25 18:28:14 +00:00
Rodrigo Primo a02b77bedc Use minimum price to order variable products on term archives
Commit 12d7bf7 added a specific query to order products by price from low to high on term archives (see #17690 and #16694 for more details), but, probably due to a copy and paste error, it changed the behavior when dealing with variable products. Instead of using the smallest variation price of each variable product, it was using the highest variation price. This commit changes this new query to use the smallest variation price of each variable product. This way ordering by price from low to high on term archives will again behave in the same way that on the shop page when dealing with variable products.
2018-03-23 16:15:37 -03:00
Mike Jolley fb290ebbaa
Merge pull request #19510 from woocommerce/fix/19472
Check query var for orderby if not found in $_GET
2018-03-23 18:00:42 +00:00
Peter Fabian 26144afbc6 Test request length after applying filter
- added default value to get_line_item_args to not break interface
- smaller code review updates
2018-03-23 17:22:09 +01:00
claudiulodro 62d88892bf Check query var for orderby 2018-03-23 08:30:02 -07:00
Mike Jolley 0573232c62 Call empty cart when completing payment in PayPal 2018-03-23 12:54:03 +00:00
Mike Jolley f98eb66f8c Webhooks do not need permission checks 2018-03-23 12:45:10 +00:00
Mike Jolley 0f040f08c4
Merge pull request #19494 from woocommerce/fix/download-handler-class-phpcs
Fixed includes/class-wc-download-handler.php PHPCS violations
2018-03-23 11:51:01 +00:00
Gerhard Potgieter e876f0dfb2 empty check on 0 will be true, return no when empty. 2018-03-23 11:21:59 +02:00
Gerhard Potgieter 04cce41b6b Default to no when importing backorders. 2018-03-23 11:19:02 +02:00
rspublishing 2eca0d73bd Duplicate queries for WC_Admin_Report->get_order_report_data() 2018-03-23 11:15:21 +02:00
Peter Fabian 59af63e642 Merge branch 'master' into fix/19404 2018-03-23 09:36:15 +01:00
Claudiu Lodromanean d4ef90bf91
Merge pull request #19495 from woocommerce/fix/emails-class-phpcs
Fixed includes/class-wc-emails.php PHPCS violations
2018-03-22 13:27:21 -07:00
Claudiu Lodromanean 8048afe4ce
Merge pull request #19498 from woocommerce/fix/frontend-scripts-class-phpcs
Fixed includes/class-wc-frontend-scripts.php PHPCS violations
2018-03-22 13:25:12 -07:00
Claudio Sanches 027789271d Fixed includes/class-wc-frontend-scripts.php PHPCS violations 2018-03-22 16:01:03 -03:00
Claudio Sanches 930591808b Fixed includes/class-wc-product-variation.php PHPCS violations 2018-03-22 15:49:01 -03:00
Claudio Sanches b2e33b3fb9 Fixed includes/class-wc-product-variable.php PHPCS violations 2018-03-22 15:47:50 -03:00
Claudio Sanches 8470a691a7 Fixed includes/class-wc-product-simple.php PHPCS violations 2018-03-22 15:43:51 -03:00
Claudio Sanches 50c0a34dec Fixed includes/class-wc-product-query.php PHPCS violations 2018-03-22 15:41:53 -03:00
Claudio Sanches dfeb867a04 Fixed includes/class-wc-product-grouped.php PHPCS violations 2018-03-22 15:37:29 -03:00
Claudio Sanches 73a56469ef Fixed includes/class-wc-product-factory.php PHPCS violations 2018-03-22 15:36:07 -03:00
Claudio Sanches 6eada732b8 Fixed includes/class-wc-product-external.php PHPCS violations 2018-03-22 15:26:09 -03:00
Claudio Sanches 475e0c734f Fixed includes/class-wc-product-download.php PHPCS violations 2018-03-22 15:10:22 -03:00
Claudio Sanches 809ca5e0fc Fixed includes/class-wc-product-attribute.php PHPCS violations 2018-03-22 15:07:06 -03:00
Claudio Sanches a529e1fdf3 Fixed includes/class-wc-emails.php PHPCS violations 2018-03-22 14:54:16 -03:00
Claudio Sanches 88d0b502d9 Fixed includes/class-wc-download-handler.php PHPCS violations 2018-03-22 14:12:36 -03:00
Mike Jolley db9e66e743
Merge pull request #19481 from woocommerce/fix/payment-classes-phpcs
Fixed payment main classes PHPCS violations
2018-03-22 15:11:13 +00:00
Mike Jolley d40e09b3c9
Merge pull request #19484 from woocommerce/fix/shipping-classes-phpcs
Fixed shipping classes PHPCS violations
2018-03-22 15:08:11 +00:00
Mike Jolley 66a5895645
Merge pull request #19483 from woocommerce/fix/posts-classes-phpcs
Fixed post classes PHPCS violations
2018-03-22 15:07:45 +00:00
Claudio Sanches e79012e7e3 Fixed a typo 2018-03-22 12:06:36 -03:00
Peter Fabian 27a309d2df Removed line item limit and make sure the URL is shorter than 2083 characters
- removed limit to 9 line items per Paypal order
- if the request URL with all line items will be longer than 2083 characters, send it as one line item
- fix the character limit function to account for URL encoding happening in http_build_query
2018-03-22 15:39:30 +01:00
Claudio Sanches fd57c1c596 Fixed includes/class-wc-shipping-rate.php PHPCS violations 2018-03-21 20:58:20 -03:00
Claudio Sanches 996d3decfe Fixed file and class dockblock 2018-03-21 20:54:10 -03:00
Claudio Sanches 39f1c3e8fc Fixed coding standards 2018-03-21 20:53:59 -03:00
Claudio Sanches 7b1fc4c8e8 Fixed includes/class-wc-post-types.php PHPCS violations 2018-03-21 20:50:40 -03:00
Claudio Sanches ce8033ddf6 Fixed includes/class-wc-post-data.php PHPCS violations 2018-03-21 20:44:35 -03:00
Claudio Sanches b0617a13c4 Removed unnecessary ternary operators 2018-03-21 20:05:19 -03:00
Claudio Sanches 0660a50e07 Removed obvious boolean results 2018-03-21 19:57:10 -03:00
Claudio Sanches 72d0b448f6 Fixed includes/class-wc-payment-tokens.php PHPCS violations 2018-03-21 19:45:27 -03:00
Claudio Sanches d14615a6f7 Fixed includes/class-wc-payment-gateways.php PHPCS violations 2018-03-21 19:40:47 -03:00
Mike Jolley a826d4d91f Better method of removing product query after it runs. 2018-03-21 17:41:14 +00:00
Claudio Sanches 21dc6d28cf
Merge branch 'master' into feature/18477 2018-03-21 14:31:58 -03:00
Mike Jolley b037c965cb Set default order if empty 2018-03-21 17:24:00 +00:00
Mike Jolley 9c42735386 temp fix; comment out lines 2018-03-21 16:41:22 +00:00
Mike Jolley dc7aa30694
Merge pull request #19467 from woocommerce/fix/some-includes-classes-phpcs
Fixed PHPCS violations in some classes on includes directory
2018-03-21 10:39:18 +00:00
Claudio Sanches a7692478b0 Fixed includes/class-wc-order-item.php PHPCS violations 2018-03-21 00:56:59 -03:00
Claudio Sanches 583378cf7b Fixed includes/class-wc-order-item-tax.php PHPCS violations 2018-03-21 00:52:55 -03:00
Claudio Sanches eedc8c57e5 Improved class description 2018-03-21 00:50:30 -03:00
Claudio Sanches 949514fe75 Fixed includes/class-wc-order-item-product.php PHPCS violations 2018-03-21 00:49:45 -03:00
Claudio Sanches d03e5a5f6c Fixed includes/class-wc-order-item-shipping.php coding standards 2018-03-21 00:46:32 -03:00
Claudio Sanches 51a06da91d Fixed includes/class-wc-order-item.php PHPCS violations 2018-03-21 00:45:44 -03:00
Claudio Sanches 9a55d16f44 Fixed includes/class-wc-order.php PHPCS violations 2018-03-21 00:44:44 -03:00
Claudio Sanches ddac79152a Fixed includes/class-wc-order-item-meta.php PHPCS violations 2018-03-21 00:43:54 -03:00
Claudio Sanches e70f278123 Fixed includes/class-wc-order-item-fee.php PHPCS violations 2018-03-21 00:39:37 -03:00
Claudio Sanches 806c0d7a6d Fixed includes/class-wc-order-item-coupon.php PHPCS violations 2018-03-21 00:33:44 -03:00
Claudio Sanches f2cce37d6f Fixed includes/class-wc-order-factory.php PHPCS violations 2018-03-21 00:31:15 -03:00
Claudio Sanches 7978671dd0 Fixed includes/class-woocommerce.php coding standards 2018-03-21 00:22:29 -03:00
Claudio Sanches 7f5e5a3ca4 Short ABSPATH check in includes/class-wc-webhook.php 2018-03-21 00:22:04 -03:00
Claudio Sanches cc7d7eec42 Fixed includes/class-wc-validation.php coding standards 2018-03-21 00:21:41 -03:00
Claudio Sanches e2a079f42f Fixed includes/class-wc-template-loader.php coding standards 2018-03-21 00:20:19 -03:00
Claudio Sanches 539282be16 Fixed includes/class-wc-structured-data.php PHPCS violations 2018-03-21 00:19:41 -03:00
Claudio Sanches 698be52bf8 Fixed includes/class-wc-shortcodes.php PHPCS violations 2018-03-21 00:18:50 -03:00
Claudio Sanches 8a31755b8c Fixed includes/class-wc-session-handler.php PHPCS violations 2018-03-21 00:18:01 -03:00
Claudio Sanches 24cc589fd5 Fixed includes/class-wc-register-wp-admin-settings.php PHPCS violations 2018-03-21 00:16:26 -03:00
Claudio Sanches b44aece433 Fixed includes/class-wc-regenerate-images.php PHPCS violations 2018-03-21 00:14:07 -03:00
Claudio Sanches cf06e58906 Fixed includes/class-wc-query.php PHPCS violations 2018-03-21 00:13:22 -03:00
Claudio Sanches e825f33414 Fixed includes/class-wc-meta-data.php PHPCS violations 2018-03-21 00:11:16 -03:00
Claudio Sanches 7173396912 Fixed includes/class-wc-log-levels.php PHPCS violations 2018-03-21 00:08:59 -03:00
Claudio Sanches 56d9a88926 Fixed includes/class-wc-integrations.php PHPCS violations 2018-03-21 00:07:37 -03:00
Claudio Sanches b8534eee28 Fixed includes/class-wc-install.php PHPCS violations 2018-03-21 00:06:47 -03:00
Claudio Sanches d59a7463eb Fixed includes/class-wc-geolocation.php PHPCS violations 2018-03-21 00:03:50 -03:00
Claudio Sanches d989627125 Fixed includes/class-wc-embed.php PHPCS violations 2018-03-21 00:02:57 -03:00
Claudio Sanches a1a82b09bb Fixed includes/class-wc-discounts.php PHPCS violations 2018-03-21 00:00:54 -03:00
Claudio Sanches db713cce76 Short ASBPATH check in deprecated action and filter classes 2018-03-21 00:00:21 -03:00
Claudio Sanches 9a9906ec46 Fixed includes/class-wc-datetime.php PHPCS violations 2018-03-20 23:59:56 -03:00
Mike Jolley 016b3c76fb
Merge pull request #18196 from woocommerce/update/17795
Add refunded payment prop after an API refund succeeds.
2018-03-20 17:10:40 +00:00
Mike Jolley e413cdd75e
Merge pull request #19458 from woocommerce/fix/customer-classes-phpcs
Fixed Customer classes PHPCS violations
2018-03-20 16:47:59 +00:00
Mike Jolley 701f17840a
Merge pull request #19457 from woocommerce/fix/countries-class-phpcs
Fixed includes/class-wc-countries.php PHPCS violations
2018-03-20 16:47:03 +00:00
Mike Jolley b51626f183
Merge pull request #19456 from woocommerce/fix/coupon-class-phpcs
Fixed includes/class-wc-coupon.php PHPCS violations
2018-03-20 16:46:25 +00:00
Mike Jolley 6e02397935
Merge pull request #19459 from woocommerce/fix/data-classes-phpcs
Fixed Data store classes PHPCS violations
2018-03-20 16:44:57 +00:00
Mike Jolley 99ec658684
Merge pull request #19455 from woocommerce/fix/comments-class-phpcs
Fixed includes/class-wc-comments.php PHPCS violations
2018-03-20 16:44:27 +00:00
Claudio Sanches 16f3858472 Fixed "end if" comment 2018-03-19 20:22:39 -03:00
Claudio Sanches 62f2a603d5 Fixed includes/class-wc-data-store.php PHPCS violations 2018-03-19 20:21:10 -03:00
Claudio Sanches 3e7b6a9f7b Fixed includes/class-wc-data-exception.php PHPCS violations 2018-03-19 20:17:56 -03:00
Claudio Sanches d528e65849 Fixed includes/class-wc-customer.php PHPCS violations 2018-03-19 20:15:16 -03:00
Claudio Sanches 37a9af55c0 Fixed includes/class-wc-customer-download.php PHPCS violations 2018-03-19 20:07:49 -03:00
Claudio Sanches 4a384da01a Fixed includes/class-wc-customer-download-log.php PHPCS violations 2018-03-19 20:01:52 -03:00
Claudio Sanches 96ec4d6215 Fixed includes/class-wc-coupon.php PHPCS violations 2018-03-19 19:59:20 -03:00
Claudio Sanches 0b5aef0fd3 Fixed includes/class-wc-countries.php PHPCS violations 2018-03-19 19:42:55 -03:00
Claudio Sanches f81b90efe6 Fixed includes/class-wc-comments.php PHPCS violations 2018-03-19 19:39:31 -03:00
Claudio Sanches 73b1c9c603 Short ASBPATH check 2018-03-19 19:28:37 -03:00
Claudiu Lodromanean b8700c51e2
Merge pull request #19449 from woocommerce/fix/19439
Set is_shortcode loop prop when outputting subcategories
2018-03-19 11:35:58 -07:00
Claudiu Lodromanean 0454f1539b
Merge pull request #19387 from woocommerce/update/19345
Add names to nonces
2018-03-19 11:14:23 -07:00
Mike Jolley f6dc960e46 phpcs 2018-03-19 18:09:13 +00:00
Mike Jolley 6539b7913e Merge branch 'master' 2018-03-19 18:05:36 +00:00
Mike Jolley fb8b670cda Merge branch 'master' into update/19345 2018-03-19 18:00:28 +00:00
Mike Jolley e509e92f7b BW compat for nonce check 2018-03-19 17:59:30 +00:00
Mike Jolley 40b831f4df Missing $like was breaking unit tests.
@rodrigoprimo
2018-03-19 17:36:36 +00:00
Claudiu Lodromanean e6a266e30f
Merge pull request #19412 from woocommerce/update/19408
Use wc_get_default_products_per_row as the default for product shortcodes
2018-03-19 09:23:44 -07:00
Mike Jolley d099aae4ec Fix test and default 2018-03-19 13:05:43 +00:00
Mike Jolley ce7caa8029 Merge branch 'master' into fix/19284 2018-03-19 13:01:31 +00:00
Mike Jolley f7056a4284 missing echo 2018-03-19 12:59:50 +00:00
Mike Jolley 6e2b65aca9
Merge pull request #19434 from woocommerce/fix/php-warning-catalog-ordering
Fixed PHP warning on woocommerce_catalog_ordering()
2018-03-19 12:54:27 +00:00
Mike Jolley c26e766b06
Merge pull request #19428 from woocommerce/fix/phpcs-includes-product-grouped
Fix PHPCS violations in includes/class-wc-product-grouped.php
2018-03-19 12:52:21 +00:00
Mike Jolley 5a8c1ee81c
Merge pull request #19433 from woocommerce/fix/cart--classes-phpcs
Fixed cart classes PHPCS violations
2018-03-19 12:51:50 +00:00
Mike Jolley 127b9a89d0
Merge pull request #19436 from liquidweb/feature/register-additional-woocommerce-tables
Add the "woocommerce_install_get_tables" filter to WC_Install::get_tables()
2018-03-19 12:50:40 +00:00
Mike Jolley 808dbec82a Set is_shortcode loop prop when outputting subcategories
Fixes #19439
2018-03-19 11:12:18 +00:00
Claudio Sanches 47894cc64d Fixed includes/class-wc-checkout.php PHPCS violations 2018-03-16 16:15:08 -03:00
Steve Grunwell 049876ac8f Add the "woocommerce_install_get_tables" filter to WC_Install::get_tables()
This commit adds a new filter, "woocommerce_install_get_tables", to the WC_Install::get_tables() method, enabling WooCommerce extensions to register new, WooCommerce-specific tables, ensuring these tables can be cleaned up automatically should WooCommerce be uninstalled (useful for things like custom table data stores). Nothing gets added by default, but this provides an integration point for plugins like WooCommerce Custom Orders Table.
2018-03-16 18:54:17 +00:00
Claudio Sanches 15989622df Fixed PHP warning on woocommerce_catalog_ordering()
This fixes the follow warning:

> PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in includes/wc-template-functions.php on line 1012

When an option doesn't exists is returned `false`, just setting a default value to fix the issue.

This issue should happen in new installations of WooCommerce 3.3 when no
order is defined on the customizer.
2018-03-16 15:13:21 -03:00
Claudio Sanches 84c047dad1 Fixed includes/class-wc-cart.php PHPCS violations 2018-03-16 15:08:52 -03:00
Claudio Sanches 67cd6b8fbf Fixed includes/class-wc-cart-totals.php PHPCS violations 2018-03-16 14:47:18 -03:00
Claudio Sanches 8effbb11bd Fixed includes/class-wc-cart-session.php PHPCS violations 2018-03-16 14:45:28 -03:00
Claudio Sanches c904894035 Fixed includes/class-wc-cart-fees.php PHPCS violations 2018-03-16 14:43:53 -03:00
Claudio Sanches db3924f2c7
Merge pull request #19421 from woocommerce/fix/auth-class-phpcs
Fixed includes/class-wc-auth.php PHPCS violations
2018-03-16 11:57:05 -03:00
Mike Jolley 09b089fff4
Merge pull request #19424 from woocommerce/fix/breadcrumb-class-phpcs
Fixed includes/class-wc-breadcrumb.php PHPCS violations
2018-03-16 14:14:26 +00:00
Mike Jolley 6cc5f2e171
Merge pull request #19140 from woocommerce/fix/subcategory-cache
Clear subcategory cache
2018-03-16 14:08:58 +00:00
Mike Jolley eb26221b1a Merge branch 'master' into update/19061 2018-03-16 13:59:05 +00:00
Mike Jolley 7a568e2f68 Personal data removal experiment 2018-03-16 13:53:18 +00:00
Rodrigo Primo 6fcc468aba PHPCS fixes in includes/class-wc-product-grouped.php 2018-03-16 10:00:42 -03:00
Rodrigo Primo 8e87ce7e57 Remove unused variable 2018-03-16 09:57:18 -03:00
Gerhard Potgieter b0902e56d8
Merge pull request #19423 from woocommerce/fix/background-emailer-class-phpcs
Fixed includes/class-wc-background-emailer.php PHPCS violations
2018-03-16 13:40:41 +02:00
Gerhard Potgieter 5fcef12667
Merge pull request #19422 from woocommerce/fix/autoload-class-phpcs
Fixed includes/class-wc-autoloader.php PHPCS violations
2018-03-16 13:26:45 +02:00
Gerhard Potgieter c0d3050a99
Merge pull request #19420 from woocommerce/fix/api-class-phpcs
Fixed includes/class-wc-api.php PHPCS violations
2018-03-16 13:11:22 +02:00
Mike Jolley 5740dc15e7
Merge pull request #19416 from woocommerce/fix/17876
Enable selecting with tab key on selectWoo
2018-03-16 11:08:30 +00:00
Claudio Sanches 8d860d7fb3 Fixed includes/class-wc-breadcrumb.php PHPCS violations 2018-03-15 18:30:08 -03:00
Claudio Sanches 3d4217143e Fixed includes/class-wc-background-emailer.php PHPCS violations 2018-03-15 18:22:12 -03:00
Claudio Sanches 820426a4d0 Short ASBPATH check in includes/class-wc-background-updater.php 2018-03-15 18:14:36 -03:00
Claudio Sanches 0ce0edac73 Fixed includes/class-wc-autoloader.php PHPCS violations 2018-03-15 18:13:26 -03:00
Claudio Sanches 8ab919ee94 Fixed includes/class-wc-auth.php PHPCS violations 2018-03-15 17:58:12 -03:00
Claudio Sanches b6bcb44f3f Fixed includes/class-wc-api.php PHPCS violations 2018-03-15 17:35:40 -03:00
Claudio Sanches 827d957d66 Load GeoLite2 Reader when creating a new instance of WC_Geolite_Integration 2018-03-15 17:30:17 -03:00
Claudio Sanches 774a54b8ee Deprecated old WC_Geo_IP class 2018-03-15 17:23:40 -03:00
claudiulodro b0fa583f6e Enable selecting with tab key on selectWoo 2018-03-15 11:52:07 -07:00
Claudio Sanches 6405e8645a Removed legacy private methods from WC_Geolocation 2018-03-15 14:01:36 -03:00
Claudio Sanches a731135cae Removed outdated IP lookup service and improved check for valid IPs 2018-03-15 13:45:49 -03:00
Claudiu Lodromanean fbccc4ed5c
Merge pull request #19415 from woocommerce/fix/19401
Reload gateways after updating the order.
2018-03-15 09:21:15 -07:00
Claudiu Lodromanean 88531fdfc6
Merge pull request #19414 from woocommerce/fix/19398
Inherit 'is variation' from existing attribute during csv import
2018-03-15 09:06:57 -07:00
Claudiu Lodromanean b00e05bb64
Merge pull request #19413 from woocommerce/update/19402
Add post_excerpt to product search
2018-03-15 08:00:52 -07:00
Mike Jolley 2abd510b36
Merge pull request #19391 from woocommerce/fix/rounding
100% coupon with inclusive taxes and out-of-base rounding issue fix
2018-03-15 12:43:58 +00:00
Mike Jolley 4bbdf30794 Reload gateways after updating the order. Fixes #19401 2018-03-15 12:39:30 +00:00
Mike Jolley e86ae89123 phpcs 2018-03-15 12:36:10 +00:00
Mike Jolley 565f1c6e66 Inherit 'is variation' from existing attribute during csv import 2018-03-15 12:18:31 +00:00
Mike Jolley 3df5a479f9 Add post_excerpt to product search 2018-03-15 11:21:27 +00:00
Mike Jolley 1c9143546f Use wc_get_default_products_per_row as the default for product shortcodes
Closes #19408

Will apply if no fixed columns are provided via the shortcode args.
2018-03-15 11:16:34 +00:00
Mike Jolley 94bfd3b336 Update formatting and tests 2018-03-15 10:54:32 +00:00
Mike Jolley c4b3bd0114
Merge pull request #19405 from woocommerce/phpcs-fixes
Fix PHPCS violations in a few files
2018-03-15 10:02:23 +00:00
Rodrigo Primo a767eb1a87 PHPCS fixes in includes/class-wc-shipping-zone.php 2018-03-14 17:54:42 -03:00
Rodrigo Primo af75da87fd PHPCS fixes in includes/class-wc-shipping-zones.php 2018-03-14 17:53:41 -03:00
Rodrigo Primo 45c1adec23 Remove unused private method WC_Shipping::get_default_method()
This method was create in commit 9f65d2a1fc and it was used only once inside WC_Shipping::calculate_shipping(). But commit 4c4f26ff41 removed this call to WC_Shipping::get_default_method() and left the method unused.
2018-03-14 17:50:38 -03:00
Rodrigo Primo e90ce56a50 PHPCS fixes in includes/class-wc-shipping.php 2018-03-14 17:50:19 -03:00
Rodrigo Primo 202e527a83 PHPCS fixes in includes/class-wc-shortcodes.php 2018-03-14 17:41:24 -03:00
Claudio Sanches 4a638c60bb Reschedule download of GeoLite2 database when something goes wrong 2018-03-14 16:07:00 -03:00
Claudio Sanches 4e9c8f2590 Updated GeoLite2 Reader errors to warning level 2018-03-14 16:03:31 -03:00
Claudio Sanches 51cfb9b03e Updated how GeoLite2 database is downloaded 2018-03-14 16:01:33 -03:00
Claudio Sanches 1791a192d8 Check for PHP version before try use GeoLite2 2018-03-14 14:07:20 -03:00
Claudio Sanches 7f6f4b848d Created WC_Geolite_Integration class to handle with GeoLite2 integration 2018-03-14 13:57:07 -03:00
Claudio Sanches 29b9e9c085 GeoLite2 Reader integration 2018-03-14 12:42:53 -03:00
claudiulodro f39a9ee61a Round fractional cents when oob 2018-03-14 08:35:41 -07:00
Claudiu Lodromanean feba3bd3ed
Merge pull request #19378 from woocommerce/fix/19217
Deletes orphan variations after successful import.
2018-03-14 08:27:30 -07:00
Mike Jolley 27f07807a5 Clean up 2018-03-14 15:23:39 +00:00
Mike Jolley e0ab13bd3c Tests and test pass 2018-03-14 15:14:45 +00:00
Mike Jolley fec36ff4b2 Test runner 2018-03-14 14:29:03 +00:00
Mike Jolley f166e25b19 basic integration with https://core.trac.wordpress.org/ticket/43438 2018-03-14 14:11:42 +00:00
Mike Jolley 06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Mike Jolley a60e51afe1 Merge branch 'master' into update/setup-wizard-activate-step-when-jetpack-connected 2018-03-14 12:49:44 +00:00
Mike Jolley f771e323d9 Set opt-in/out based on geolocation data and DNT headers 2018-03-14 12:32:40 +00:00
Roy Lindauer 33cfed8e47 ensure that cache is deleted 2018-03-13 15:37:09 -07:00
Roy Lindauer b151480e6b fix indentation issues 2018-03-13 15:34:47 -07:00
Mike Jolley e03bc3d447
Merge pull request #19381 from woocommerce/fix/phpcs-violations-includes
Fix PHPCS violations in a few includes/ files
2018-03-13 19:36:53 +00:00
Mike Jolley d052b2ee46 cache per parent to avoid large caches 2018-03-13 19:00:08 +00:00
Claudio Sanches 6fdc1a547d Download new GeoLite2 and deprecated legacy GeoLite 2018-03-13 15:57:32 -03:00
Mike Jolley cb3c4849b4 Merge branch 'master' into fix/19175 2018-03-13 18:14:36 +00:00
Claudio Sanches 39c702403a Updated system status message about MaxMind GeoIP database 2018-03-13 14:54:56 -03:00
Claudio Sanches f24fe25c7d Included new GeoLite2 DB reader library 2018-03-13 14:50:01 -03:00
Claudiu Lodromanean 05b4bf7a55
Merge pull request #19382 from woocommerce/fix/19370
Variations errors
2018-03-13 10:42:49 -07:00
Claudiu Lodromanean c38e0e69e9
Merge pull request #19376 from woocommerce/fix/19362
Correctly handle default ordering on the search page
2018-03-13 10:39:59 -07:00
Claudio Sanches c2966805c8
Merge pull request #19386 from woocommerce/fix/insert-term-fatal-error
Check if wp_insert_term() returned a term before using it
2018-03-13 14:33:17 -03:00
Claudio Sanches 941d2a7bfe
Merge pull request #19384 from woocommerce/fix/default-product-category-check
Fix default product category check
2018-03-13 14:31:16 -03:00
Claudiu Lodromanean 3a5644ddce
Merge pull request #19338 from woocommerce/fix/19222
Fix JS state/country inputs
2018-03-13 10:10:24 -07:00
Mike Jolley 1dbf1bc1d8 add general woocommerce_form_field filter 2018-03-13 14:30:19 +00:00
Mike Jolley 5d6b43dbc8 Update nonce handling 2018-03-13 14:16:56 +00:00
Rodrigo Primo d603ba0b68 Check if wp_insert_term() returned a term before using it
This commit adds a check to make sure wp_insert_term() returned a term and not an instance of WP_Error before trying to access it. Without this change, the old code could produce the following fatal error:

Uncaught Error: Cannot use object of type WP_Error as array in includes/class-wc-install.php:478

Fixes #19377
2018-03-13 11:02:55 -03:00
Rodrigo Primo 40c56d8ee3 Fix default product category check
This commit casts the 'default_product_cat' option to integer before passing it to `term_exists()`. If we don't do this, `get_option( 'default_product_cat' )` return a string that is passed to `term_exists( $woocommerce_default_category, 'product_cat' )`. `term_exists()` assumes that strings are term names or slugs and search only for this fields to check if the given term exist. So it will return false (unless the term name equals to the term ID which is unlikely) even though the term exists. To make it search for terms IDs to check if the given term exists, it is necessary to pass an integer.
2018-03-13 10:19:35 -03:00
Mike Jolley a5a6d02f86 Fix null check introduced by phpcs changes 2018-03-13 11:57:51 +00:00
Rodrigo Primo 4229b3c5b2 Rename WC_Validation::is_GB_postcode() to WC_Validation::is_gb_postcode()
To follow WP coding standards
2018-03-13 08:49:40 -03:00
Rodrigo Primo 850bbc1c40 PHPCS fixes in includes/class-wc-validation.php 2018-03-13 08:49:34 -03:00
Rodrigo Primo c2c1501acc PHPCS fixes in includes/class-wc-webhook.php 2018-03-13 08:35:25 -03:00
Mike Jolley 291de9c1fb Override supports for PayPal to see if credentials exist 2018-03-13 11:35:20 +00:00
Rodrigo Primo 52e067eeef PHPCS fixes in includes/wc-conditional-functions.php 2018-03-13 08:33:48 -03:00
Mike Jolley d910f11b49 Delete orphans after import 2018-03-13 11:14:24 +00:00
Mike Jolley 387ea23d39 phpcs 2018-03-13 11:11:11 +00:00
Mike Jolley e4e581c2ef Correctly handle default ordering on the search page
Fixes woocommerce_catalog_ordering function and closes #19362.
2018-03-13 10:43:58 +00:00
Torre Lasley 64f85346c0 Add filter to allow plugins to override the default coupon apply order. (#19339)
* Fix for Issue #10523 - Variations ID lookup by SKU

I copied the code from the bulk() function to look up the Variation ID by the Variation SKU if the Variation ID is missing.

* Added new filter woocommerce_coupon_sort to allow plugins to override the default coupon apply order.
2018-03-13 10:26:22 +00:00
Mike Jolley 200f2371fd
Merge pull request #19342 from woocommerce/update/walkers-phpcs
Fixed walkers PHPCS violations
2018-03-13 10:17:27 +00:00
Mike Jolley 1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Mike Jolley b875299b65
Merge pull request #19372 from woocommerce/fix/broke-shipping-zones
Fixed missing shipping zones on settings
2018-03-13 10:02:30 +00:00
Mike Jolley 923bb58f9d
Merge pull request #19369 from woocommerce/fix/19247
Properly check for old and new slug while updating attributes
2018-03-13 10:01:43 +00:00
Mike Jolley 48303278f6
Merge pull request #19373 from nishitlangaliya/issue-19323
missing single quote added
2018-03-13 09:59:55 +00:00
Mike Jolley 272c43f0d8 Just ENT_QUOTES is enough in https://github.com/woocommerce/woocommerce/pull/19349 2018-03-13 09:58:38 +00:00
Anders Skouboe 363fb54a2d Decode single quotes in short description editor 2018-03-13 09:58:38 +00:00
nishitlangaliya 4b4fd3931e missing single quote added 2018-03-13 11:15:43 +05:30
Gerhard Potgieter 01775a4443 Missing space 2018-03-13 07:34:47 +02:00
Claudio Sanches 988e5e576e Fixed spacing 2018-03-12 17:40:13 -03:00
Claudio Sanches 03c98e7ae7 Fixed missing shipping zones on settings
Fixed empty wp_localize_script() when WC_Shipping_Zone->get_shipping_methods() loads as admin data instead of json.
2018-03-12 17:37:45 -03:00
Mike Jolley a6b6685353
Merge pull request #19335 from woocommerce/fix/19244
Use gallery thumbnail size for variation image switcher.
2018-03-12 20:09:03 +00:00
Mike Jolley e936cbdf9c todo note for #19293 2018-03-12 19:53:14 +00:00
Mike Jolley 895df71b9e
Merge pull request #19310 from woocommerce/fix/19294
Only add schema for ratings when enabled.
2018-03-12 19:37:24 +00:00
Mike Jolley 906aa97aea Merge branch 'master' into update/19061 2018-03-12 19:28:53 +00:00
Claudio Sanches 54a0e01b8a
Merge branch 'master' into patch-2 2018-03-12 16:28:00 -03:00
Mike Jolley f0aa07fbf7 Case insensitive or handling 2018-03-12 19:18:13 +00:00
Mike Jolley b0a4502e0f Unslash quotes 2018-03-12 19:11:48 +00:00
Claudio Sanches 6130a222cc Properly check for old and new slug while updating attributes
Closes #19247
2018-03-12 15:52:26 -03:00
Roy Lindauer 7016762dd5 Merge branch '17355-SplitAndFilter' of github.com:roylindauer/woocommerce into 17355-SplitAndFilter 2018-03-12 10:58:31 -07:00
Claudiu Lodromanean 0cc1b78341
Merge pull request #19296 from woocommerce/fix/hash-function
Hash may not exist
2018-03-12 10:58:31 -07:00
Roy Lindauer 6fba320040 Delete tax specific transients 2018-03-12 10:57:14 -07:00
Claudiu Lodromanean 4fbd01f003
Merge pull request #19288 from woocommerce/fix/19210
Introduce woocommerce_product_loop helper for loops
2018-03-12 10:50:25 -07:00
Mike Jolley 2b7be75b44
Merge pull request #19366 from woocommerce/fix/19347
Check if product has weight before calculate weigth total in cart
2018-03-12 16:55:22 +00:00
Claudio Sanches 768a21e788 Check if product has weight before calculate weigth total in cart
Closes #19347
2018-03-12 12:54:00 -03:00
Claudiu Lodromanean 1b3e0b39b1
Merge pull request #19363 from nishitlangaliya/issue-19323
Add Filter to woocommerce_output_product_categories
2018-03-12 08:50:22 -07:00
Claudio Sanches 82fec65fa0 Merge branch 'master' into update/walkers-phpcs 2018-03-12 12:31:57 -03:00
nishitlangaliya 8fa7a7695a Add Filter to woocommerce_output_product_categories 2018-03-12 16:09:00 +05:30
Boro Sitnikovski d01ab9b24f Remove unnecessary string 2018-03-12 09:07:51 +01:00
Mike Jolley 8b06e0e432
Merge pull request #19341 from woocommerce/fix/phpcs-includes-gateways
PHPCS fixes for includes/gateways directory
2018-03-10 20:17:24 +00:00
Mike Jolley d724f50b1c
Merge pull request #19343 from woocommerce/fix/php-includes-admin-importers
PHPCS fixes for includes/admin/importers directory
2018-03-10 11:57:46 +00:00
Claudio Sanches 18a44172a2 Fixed class-wc-widget-top-rated-products.php PHPCS violations 2018-03-09 17:50:02 -03:00
Claudio Sanches b329d81279 Fixed class-wc-widget-recently-viewed.php PHPCS violations 2018-03-09 17:48:28 -03:00
Claudio Sanches d3b81b17a8 Fixed class-wc-widget-recent-reviews.php PHPCS violations 2018-03-09 17:45:45 -03:00
Claudio Sanches f9eed130ec Fixed class-wc-widget-rating-filter.php PHPCS violations 2018-03-09 17:43:52 -03:00
Claudio Sanches dfe3965fbb Fixed class-wc-widget-products.php PHPCS violations 2018-03-09 17:41:07 -03:00
Claudio Sanches 85aba0221a Fixed class-wc-widget-product-tag-cloud.php PHPCS violations 2018-03-09 17:37:23 -03:00
Claudio Sanches 74b5e3f8fa Fixed class-wc-widget-product-search.php PHPCS violations 2018-03-09 17:29:16 -03:00
Claudio Sanches cbb1271b2c Fixed class-wc-widget-product-categories.php PHPCS violations 2018-03-09 17:28:08 -03:00
Rodrigo Primo a0db877e24 phpcs fixes in includes/admin/importers/views/html-product-csv-import-form.php 2018-03-09 17:26:49 -03:00
Claudio Sanches 341dddc3ae Fixed class-wc-widget-price-filter.php PHPCS violations 2018-03-09 17:26:40 -03:00
Rodrigo Primo 9b03fff8b8 phpcs fixes in includes/admin/importers/views/html-csv-import-steps.php 2018-03-09 17:26:40 -03:00
Rodrigo Primo 924a7a5cc3 phpcs fixes in includes/admin/importers/views/html-csv-import-progress.php 2018-03-09 17:26:26 -03:00
Rodrigo Primo 56b82815a9 phpcs fixes in includes/admin/importers/views/html-csv-import-mapping.php 2018-03-09 17:26:16 -03:00
Rodrigo Primo 703627365a phpcs fixes in includes/admin/importers/views/html-csv-import-header.php 2018-03-09 17:26:05 -03:00
Rodrigo Primo 8c54884118 phpcs fixes in includes/admin/importers/views/html-csv-import-footer.php 2018-03-09 17:25:55 -03:00
Rodrigo Primo b67e839dbb phpcs fixes in includes/admin/importers/views/html-csv-import-done.php 2018-03-09 17:25:45 -03:00
Rodrigo Primo 5b425402c2 phpcs fixes in includes/admin/importers/mappings/wordpress.php 2018-03-09 17:25:36 -03:00
Rodrigo Primo 20650248ae phpcs fixes in includes/admin/importers/mappings/mappings.php 2018-03-09 17:25:24 -03:00
Rodrigo Primo c7d13ddab6 phpcs fixes in includes/admin/importers/mappings/generic.php 2018-03-09 17:25:15 -03:00
Rodrigo Primo c18cfd779d phpcs fixes in includes/admin/importers/mappings/default.php 2018-03-09 17:25:05 -03:00
Rodrigo Primo 1dc2511c2c phpcs fixes in includes/admin/importers/class-wc-tax-rate-importer.php 2018-03-09 17:24:55 -03:00
Rodrigo Primo 73cb1663ec phpcs fixes in includes/admin/importers/class-wc-product-csv-importer-controller.php 2018-03-09 17:24:44 -03:00
Claudio Sanches c317dd01e8 Restored old walkers files to keep backwards compatibility 2018-03-09 17:14:02 -03:00
Claudio Sanches e87c309b01 Fixed class-wc-widget-layered-nav.php PHPCS violations 2018-03-09 17:10:03 -03:00
Claudio Sanches 84b0446736 Fixed class-wc-widget-layered-nav-filters.php PHPCS violations 2018-03-09 16:56:15 -03:00
Claudio Sanches 5cf942c22b Fixed class-wc-widget-cart.php PHPCS violations 2018-03-09 16:37:52 -03:00
Claudio Sanches 0643991a80 Updated file versions from walkers 2018-03-09 16:34:28 -03:00
Claudio Sanches 4daf256c32 Fixed path of walker classes 2018-03-09 16:31:00 -03:00
Claudio Sanches c5ace252e5 Fixed class-wc-product-cat-list-walker.php PHPCS violations 2018-03-09 16:30:13 -03:00
Claudio Sanches 73c924e2be Fixed class-wc-product-cat-dropdown-walker.php PHPCS violations 2018-03-09 16:10:45 -03:00
Rodrigo Primo 4e3ba1b73b phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php 2018-03-09 15:45:47 -03:00
Rodrigo Primo cf5ce33e29 phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php 2018-03-09 15:45:35 -03:00
Rodrigo Primo 128c4398a5 phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php 2018-03-09 15:45:22 -03:00
Rodrigo Primo 06af993595 phpcs fixes in includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php 2018-03-09 15:45:13 -03:00
Rodrigo Primo 93a50caa42 phpcs fixes in includes/gateways/paypal/class-wc-gateway-paypal.php 2018-03-09 15:45:00 -03:00
Rodrigo Primo cdf8b483a1 phpcs fixes in includes/gateways/cod/class-wc-gateway-cod.php 2018-03-09 15:44:48 -03:00
Rodrigo Primo 4989e0ff2b phpcs fixes in includes/gateways/class-wc-payment-gateway-echeck.php 2018-03-09 15:44:37 -03:00
Rodrigo Primo 609bc3bf71 phpcs fixes in includes/gateways/class-wc-payment-gateway-cc.php 2018-03-09 15:44:24 -03:00
Rodrigo Primo 3451dae895 phpcs fixes in includes/gateways/cheque/class-wc-gateway-cheque.php 2018-03-09 15:44:14 -03:00
Rodrigo Primo 701320ad32 phpcs fixes in includes/gateways/bacs/class-wc-gateway-bacs.php 2018-03-09 15:43:56 -03:00
Mike Jolley 64bcabf0af
Merge pull request #19295 from woocommerce/update/cart-functions-phpcs
Fixed includes/wc-cart-functions.php PHPCS violations
2018-03-09 16:31:50 +00:00
Mike Jolley 1fa36b5f15 Fix JS state/country inputs 2018-03-09 16:25:42 +00:00
Claudio Sanches 397f440233 Fixed class-wc-shortcode-checkout.php PHPCS violations 2018-03-09 13:25:29 -03:00
Claudio Sanches 505d906c66 Fixed class-wc-shortcode-order-tracking.php PHPCS violations 2018-03-09 13:15:53 -03:00
Claudio Sanches af8c59de94 Fixed class-wc-shortcode-my-account.php PHPCS violations 2018-03-09 13:11:52 -03:00
Claudio Sanches 64d93eafc0 Fixed class-wc-shortcode-cart.php PHPCS violations 2018-03-09 12:59:01 -03:00
Claudio Sanches 92c4ea7a49 Fixed class-wc-shortcode-products.php PHPCS violations 2018-03-09 12:55:37 -03:00
Claudio Sanches 53cde6f317 Fixed conflicts in cart functions and fixed PHPCS violations on core funcitons 2018-03-09 12:46:20 -03:00
Mike Jolley 0d624862c2 Use gallery thumbnail size for variation image switcher. 2018-03-09 14:36:14 +00:00
Rodrigo Primo df249d3b76 Rename class WC_Payment_Gateway_eCheck to WC_Payment_Gateway_ECheck
To match WP coding standards.
2018-03-09 09:57:59 -03:00
Rodrigo Primo 8678ed8685 Fix phpcs violations using phpcbf 2018-03-09 09:53:10 -03:00
Mike Jolley 00b4e1ed44
Merge pull request #19319 from woocommerce/fix/phpcs-includes-data-stores
PHPCS fixes for includes/data-stores directory
2018-03-09 12:36:31 +00:00
Rodrigo Primo 37ca7faf2e Check if there is a customer ID set before calling get_user_by() 2018-03-09 09:34:26 -03:00
Gerhard Potgieter e08b447c14 Add both order id and order number to export 2018-03-09 14:13:16 +02:00
Gerhard Potgieter 3910fbc270 Update method name 2018-03-09 11:00:57 +02:00
Gerhard Potgieter 1840d594ee Add wildcard email support for coupons.
Co-authored-by: l4ll3x
2018-03-09 10:57:12 +02:00
Mike Jolley 9aab5a723e
Merge pull request #19299 from woocommerce/fix/phpcs-includes/emails
PHPCS fixes for includes/emails directory
2018-03-09 08:51:18 +00:00
Mike Jolley 900ae28b04
Merge pull request #19304 from woocommerce/update/core-functions-phpcs
Fixed includes/wc-core-functions.php PHPCS violations
2018-03-09 08:31:12 +00:00
Mike Jolley 01720924a4
Merge pull request #19325 from woocommerce/update/user-functions-phpcs
Fixed includes/wc-user-functions.php PHPCS violations
2018-03-09 08:26:30 +00:00
Gerhard Potgieter 2571eb7cae
Merge pull request #19292 from woocommerce/update/attribute-functions-phpcs
Fixed includes/wc-attribute-functions.php PHPCS violations
2018-03-09 09:26:48 +02:00
Gerhard Potgieter 9ea4f66584
Merge pull request #19326 from woocommerce/update/widget-functions-phpcs
Fixed includes/wc-widget-functions.php PHPCS violations
2018-03-09 09:18:32 +02:00
Gerhard Potgieter 8ce660e731 Add note about pining tracker to anonomize/delete on that side as well. 2018-03-09 07:14:21 +02:00
Claudiu Lodromanean 624b4c47ac
Merge pull request #19321 from woocommerce/update/stock-functions-phpcs
Fixed includes/wc-stock-functions.php PHPCS violations
2018-03-08 15:33:03 -08:00
Claudio Sanches 435caeadae Fixed wc_attribute_label() logic 2018-03-08 18:41:39 -03:00
Claudio Sanches a9c1c2b096
Merge branch 'master' into update/core-functions-phpcs 2018-03-08 18:35:41 -03:00
Claudio Sanches d20f348d3c Check if $product exists 2018-03-08 18:33:16 -03:00
Claudio Sanches 75fce4a5fa Merge branch 'master' of github.com:woocommerce/woocommerce 2018-03-08 18:31:59 -03:00
Claudio Sanches a597ba3b84 Use short ABSPATH check 2018-03-08 18:31:01 -03:00
Claudio Sanches e3cd635eb0 Fixed includes/wc-widget-functions.php PHPCS violations 2018-03-08 18:29:54 -03:00
Claudiu Lodromanean bdace4694b
Merge pull request #19324 from woocommerce/update/term-functions-phpcs
Fixed includes/wc-term-functions.php PHPCS violations
2018-03-08 13:29:03 -08:00
Claudio Sanches 9d42c323bf Fixed includes/wc-user-functions.php PHPCS violations 2018-03-08 18:26:56 -03:00
Claudiu Lodromanean 1bb88d0a50
Merge pull request #19322 from woocommerce/update/template-hooks-phpcs
Fixed includes/wc-template-hooks.php PHPCS violations
2018-03-08 13:25:01 -08:00
Claudiu Lodromanean cff8a0bacc
Merge pull request #19320 from woocommerce/update/rest-functions-phpcs
Fixed includes/wc-rest-functions.php PHPCS violations
2018-03-08 13:21:24 -08:00
Claudio Sanches 072115853c Fixed includes/wc-term-functions.php PHPCS violations 2018-03-08 18:06:53 -03:00
Claudio Sanches 8bdb70bcca Fixed includes/wc-template-hooks.php PHPCS violations 2018-03-08 16:48:20 -03:00
Claudio Sanches cf9ce1add8 Fixed includes/wc-stock-functions.php PHPCS violations 2018-03-08 16:44:52 -03:00
Rodrigo Primo 860a575f94
Merge pull request #19318 from woocommerce/update/page-functions-phpcs
Fixed includes/wc-page-functions.php PHPCS violations
2018-03-08 16:40:47 -03:00
Rodrigo Primo b0f475867a
Merge pull request #19317 from woocommerce/update/order-items-functions-phpcs
Fixed update/order-items-functions-phpcs PHPCS violations
2018-03-08 16:40:17 -03:00
Rodrigo Primo 71c7e85c2b
Merge pull request #19315 from woocommerce/update/order-functions-phpcs
Fixed includes/wc-order-functions.php PHPCS violations
2018-03-08 16:39:08 -03:00
Claudio Sanches f26922ce1c Fixed includes/wc-rest-functions.php PHPCS violations 2018-03-08 16:34:25 -03:00
Rodrigo Primo 818819d0ff Rename class-wc-order-item-product-store.php to class-wc-order-item-product-data-store.php
To match WP coding standards
2018-03-08 16:30:33 -03:00
Rodrigo Primo 9765733597 phpcs fixes in includes/data-stores/class-wc-webhook-data-store.php 2018-03-08 16:29:22 -03:00
Rodrigo Primo 0ebf90b50e phpcs fixes in includes/data-stores/class-wc-order-item-product-store.php 2018-03-08 16:29:11 -03:00
Rodrigo Primo db26ae5fa0 phpcs fixes in includes/data-stores/class-wc-order-item-fee-data-store.php 2018-03-08 16:28:49 -03:00
Rodrigo Primo 67ab320a90 phpcs fixes in includes/data-stores/class-wc-order-item-data-store.php 2018-03-08 16:28:40 -03:00
Rodrigo Primo 1e32f09560 phpcs fixes in includes/data-stores/class-wc-order-item-coupon-data-store.php 2018-03-08 16:28:31 -03:00
Rodrigo Primo 231328e112 phpcs fixes in includes/data-stores/class-wc-order-data-store-cpt.php 2018-03-08 16:28:16 -03:00
Rodrigo Primo 6e2dfbf56c phpcs fixes in includes/data-stores/class-wc-customer-download-log-data-store.php 2018-03-08 16:28:05 -03:00
Rodrigo Primo 74879abeb3 phpcs fixes in includes/data-stores/class-wc-customer-data-store.php 2018-03-08 16:27:54 -03:00
Rodrigo Primo e3175a2e02 phpcs fixes in includes/data-stores/class-wc-customer-data-store-session.php 2018-03-08 16:27:42 -03:00
Rodrigo Primo 5eda520170 phpcs fixes in includes/data-stores/class-wc-coupon-data-store-cpt.php 2018-03-08 16:27:31 -03:00
Rodrigo Primo 2b84b7c38d phpcs fixes in includes/data-stores/abstract-wc-order-item-type-data-store.php 2018-03-08 16:27:17 -03:00
Rodrigo Primo 03c202f1f5 phpcs fixes in includes/data-stores/abstract-wc-order-data-store-cpt.php 2018-03-08 16:27:03 -03:00
Claudio Sanches da23b0399e Short ABSPATH check 2018-03-08 16:26:01 -03:00
Claudio Sanches 84f3947eb8 Fixed includes/wc-page-functions.php PHPCS violations 2018-03-08 16:15:31 -03:00
Claudio Sanches 3e07abb219 Fixed update/order-items-functions-phpcs PHPCS violations 2018-03-08 16:13:51 -03:00
Claudio Sanches 73de7414e2 Fixed includes/wc-order-functions.php PHPCS violations 2018-03-08 15:47:54 -03:00
Rodrigo Primo 4ef9e8d725 PHPCS fixes includes/data-stores/class-wc-shipping-zone-data-store.php 2018-03-08 15:33:27 -03:00
Rodrigo Primo 26b5524df1 PHPCS fixes in includes/data-stores/class-wc-product-variation-data-store-cpt.php 2018-03-08 15:33:15 -03:00
Rodrigo Primo 71043bdc0e PHPCS fixes in includes/data-stores/class-wc-product-variable-data-store-cpt.php 2018-03-08 15:33:02 -03:00
Rodrigo Primo 74f2810cf6 PHPCS fixes in includes/data-stores/class-wc-product-grouped-data-store-cpt.php 2018-03-08 15:32:48 -03:00
Rodrigo Primo efccead01e PHPCS fixes in includes/data-stores/class-wc-payment-token-data-store.php 2018-03-08 15:32:36 -03:00
Rodrigo Primo 0572ab5e7a PHPCS fixes in includes/data-stores/class-wc-order-refund-data-store-cpt.php 2018-03-08 15:32:23 -03:00
Rodrigo Primo ff1e23e660 PHPCS fixes in includes/data-stores/class-wc-order-item-tax-data-store.php 2018-03-08 15:31:55 -03:00
Rodrigo Primo e7cfddad35 PHPCS fixes in includes/data-stores/class-wc-order-item-shipping-data-store.php 2018-03-08 15:31:43 -03:00
Rodrigo Primo d945ece8fa PHPCS fixes in includes/data-stores/class-wc-data-store-wp.php 2018-03-08 15:31:19 -03:00
Rodrigo Primo fee648f696 Fix phpcs violations in includes/data-stores/class-wc-product-data-store-cpt.php 2018-03-08 14:30:48 -03:00
Rodrigo Primo 2b5103c849 Fix phpcs violations using phpcbf 2018-03-08 14:30:43 -03:00
Mike Jolley c7e9c11dd7
Merge pull request #19313 from woocommerce/update/formatting-functions-phpcs
Fixed includes/wc-formatting-functions.php PHPCS violations
2018-03-08 16:00:23 +00:00
Claudio Sanches b008e4b5cf Fixed includes/wc-formatting-functions.php PHPCS violations 2018-03-08 12:22:58 -03:00
mweimerskirch 28df2ce3e0
Added a filter allowing to change the order status to the BACS gateway
The structure is the same as for the COD gateway (there, the filter is called "woocommerce_cod_process_payment_order_status").
2018-03-08 16:11:54 +01:00
Mike Jolley 43655f349e
Merge pull request #19305 from woocommerce/update/coupon-functions-phpcs
Fixed includes/wc-coupon-functions.php PHPCS violations
2018-03-08 15:06:07 +00:00
Mike Jolley a7c745a520
Merge pull request #19301 from woocommerce/fix/phpcs-includes-shipping
PHPCS fixes for includes/shipping directory
2018-03-08 15:05:40 +00:00
Mike Jolley e4afb25931
Merge pull request #19300 from woocommerce/fix/phpcs-includes-payment-tokens
PHPCS fixes for includes/payment-tokens directory
2018-03-08 15:03:39 +00:00
Mike Jolley 8a11a13b70
Merge pull request #19289 from woocommerce/fix/phpcs-includes-log-handler
PHPCS fixes for includes/log-handlers directory
2018-03-08 15:02:47 +00:00
Mike Jolley d289be327b Merge branch 'master' 2018-03-08 13:24:01 +00:00
Mike Jolley 0c10c28cd3
Merge pull request #18175 from woocommerce/update/17252
Rollback if payment complete or update status fails
2018-03-08 13:12:34 +00:00
Mike Jolley 04eadf13ac Merge branch 'master' into update/18894 2018-03-08 13:08:40 +00:00
Mike Jolley 3265f594d8 Only add schema for ratings when enabled. 2018-03-08 13:03:58 +00:00
Gerhard Potgieter f1107e94e2 Basic personal info lookup and dump 2018-03-08 14:49:02 +02:00
Mike Jolley bd2188e87c
Merge pull request #19291 from Chunkford/patch-1
Moving cart rounding discount function to core functions
2018-03-08 12:27:03 +00:00
Claudio Sanches 731f2a238e Fixed includes/wc-coupon-functions.php PHPCS violations 2018-03-07 18:40:48 -03:00
Claudio Sanches 2b0a87b80f Fixed includes/wc-core-functions.php PHPCS violations 2018-03-07 18:37:32 -03:00
Rodrigo Primo 6938f2ecc9
Merge pull request #19290 from woocommerce/update/account-functions-phpcs
Fixed includes/wc-account-functions.php PHPCS violations
2018-03-07 15:56:52 -03:00
Rodrigo Primo 85436b1c56 Fix phpcs violations in includes/shipping/local-pickup/class-wc-shipping-local-pickup.php 2018-03-07 15:30:26 -03:00
Rodrigo Primo 9492d28bf5 Fix phpcs violations in includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php 2018-03-07 15:30:15 -03:00
Rodrigo Primo 9c23fd85d6 Fix phpcs violations in includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php 2018-03-07 15:30:00 -03:00
Rodrigo Primo 1088d45c80 Fix phpcs violations in includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php 2018-03-07 15:29:48 -03:00
Rodrigo Primo 90d27c65da Fix phpcs violations in includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php 2018-03-07 15:29:36 -03:00
Rodrigo Primo 16510b0e73 Fix phpcs violations in includes/shipping/legacy-flat-rate/includes/settings-flat-rate.php 2018-03-07 15:29:23 -03:00
Rodrigo Primo 3d1c6b1f7d Fix phpcs violations in includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php 2018-03-07 15:29:10 -03:00
Rodrigo Primo 09c42033a0 Fix phpcs violations in includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 2018-03-07 15:28:57 -03:00
Rodrigo Primo a4bdfddaa5 Fix phpcs violations in includes/shipping using phpcbf 2018-03-07 15:04:56 -03:00
Rodrigo Primo a8e03a1c4a Fix phpcs violations in includes/payment-tokens/class-wc-payment-token-echeck.php 2018-03-07 14:55:04 -03:00
Rodrigo Primo 799863ea71 Fix phpcs violations in includes/payment-tokens/class-wc-payment-token-cc.php 2018-03-07 14:54:49 -03:00
Rodrigo Primo 273ac18087 Rename class WC_Payment_Token_eCheck to WC_Payment_Token_ECheck
Doing this change to make the class name compatible with WP coding standards.
2018-03-07 14:50:21 -03:00
Rodrigo Primo bcfd0b77d6 Fix PHPCS violations in includes/paymentt-tokens automatically using phpcbf 2018-03-07 14:37:08 -03:00
Rodrigo Primo 6f7d34d11e Fix phpcs violations in includes/emails/class-wc-email.php 2018-03-07 14:27:56 -03:00
Rodrigo Primo 476c2de322 Fix phpcs violations in includes/emails/class-wc-email-new-order.php 2018-03-07 14:27:43 -03:00
Rodrigo Primo 3503336979 Fix phpcs violations in includes/emails/class-wc-email-failed-order.php 2018-03-07 14:27:32 -03:00
Rodrigo Primo 3fc20c31be Fix phpcs violations in includes/emails/class-wc-email-customer-reset-password.php 2018-03-07 14:27:17 -03:00
Rodrigo Primo 432e237870 Fix phpcs violations in includes/emails/class-wc-email-customer-refunded-order.php 2018-03-07 14:27:04 -03:00
Rodrigo Primo 6190b52857 Fix phpcs violations in includes/emails/class-wc-email-customer-processing-order.php 2018-03-07 14:26:51 -03:00
Rodrigo Primo 7cd8fb5e8b Fix phpcs violations in includes/emails/class-wc-email-customer-on-hold-order.php 2018-03-07 14:26:34 -03:00
Rodrigo Primo 036a88afae Fix phpcs violations in includes/emails/class-wc-email-customer-note.php 2018-03-07 14:26:23 -03:00
Rodrigo Primo 8da42648d2 Fix phpcs violations in includes/emails/class-wc-email-customer-new-account.php 2018-03-07 14:26:11 -03:00
Rodrigo Primo 4d2c3a324b Fix phpcs violations in includes/emails/class-wc-email-customer-invoice.php 2018-03-07 14:25:55 -03:00
Rodrigo Primo 925ee1a526 Fix PHPCS violations in includes/emails/class-wc-email-customer-completed-order.php 2018-03-07 14:25:37 -03:00
Rodrigo Primo 07fd8b8049 Fix PHPCS violations in includes/emails/class-wc-email-cancelled-order.php 2018-03-07 14:25:19 -03:00
Mike Jolley b727f4ce64 Hash may not exist 2018-03-07 15:13:40 +00:00
Claudio Sanches bea2ec7fba Fixed includes/wc-cart-functions.php PHPCS violations 2018-03-07 12:12:27 -03:00
Rodrigo Primo 575e095190 Fix PHPCS violations in includes/emails automatically using phpcbf 2018-03-07 11:15:17 -03:00
Claudio Sanches be12e37e34 Fixed includes/wc-attribute-functions.php PHPCS violations 2018-03-07 10:58:37 -03:00
Mike Jolley 765ed9ccf0 notes 2018-03-07 13:57:33 +00:00
Claudio Sanches b17440623e Fixed includes/wc-account-functions.php PHPCS violations 2018-03-07 10:55:46 -03:00
Rodrigo Primo 3a76769859 PHPCS fixes in includes/log-handlers/class-wc-log-handler-file.php 2018-03-07 10:49:45 -03:00
Rodrigo Primo 3d93e5d545 PHPCS fixes in includes/log-handlers/class-wc-log-handler-email.php 2018-03-07 10:49:32 -03:00
Rodrigo Primo 2d4afdc1d8 PHPCS fixes in includes/log-handlers/class-wc-log-handler-db.php 2018-03-07 10:49:17 -03:00
Mike Jolley e8e5b40ba8 Just a basic class 2018-03-07 13:45:25 +00:00
Chunkford 5416c58f4e
Update class-wc-discounts.php 2018-03-07 13:36:43 +00:00
Rodrigo Primo ea93fca4ff Fix PHPCS violations in includes/log-handlers/ using phpcbf 2018-03-07 10:30:00 -03:00
Chunkford 732416ff34
Update wc-cart-functions.php 2018-03-07 13:21:23 +00:00
Chunkford c411c43fdf
Update wc-core-functions.php 2018-03-07 13:14:59 +00:00
Mike Jolley 6d76cb71fd Introduce woocommerce_product_loop helper 2018-03-07 12:54:00 +00:00
Mike Jolley fdab6665c0
Merge pull request #19200 from woocommerce/fix/installed-plugin-not-activated-if-directory-not-matching-slug
Activate plugins during installation process even if directory doesn't match slug
2018-03-07 12:00:14 +00:00
Mike Jolley 7c2ed135d5
Merge pull request #19255 from woocommerce/update/16779
Invalidate cart items when important props are updated
2018-03-07 11:48:11 +00:00
Mike Jolley 07e17aafd5 typo 2018-03-07 11:47:42 +00:00
Mike Jolley 823332b5db
Merge pull request #19267 from xlplugins/master
PHP Fatal Error when invalid variation ID provided in WC_Product_Variable::get_available_variation()
2018-03-07 11:45:56 +00:00
Mike Jolley b34e163bd5 No js for all the themes. 2018-03-07 11:44:41 +00:00
Amritansh_tact9 10e80c83d1 Applied array_filter() to the $avaiable_variations in WC_Product_Variable::get_available_variations() to ensure only array type values get returned.
Added docbock in favor of boolean false for WC_Product_Variable::get_available_variation()
2018-03-07 17:07:42 +05:30
Mike Jolley 4e262a81c1
Merge pull request #19261 from woocommerce/fix/phpcs-customizer
PHPCS fixes for customizer and export directories
2018-03-07 11:26:45 +00:00
Mike Jolley 7cb2e11c01 Merge branch 'pr/19257' 2018-03-07 11:18:53 +00:00
Mike Jolley cc08eff0b0 Standards 2018-03-07 11:18:42 +00:00
Mike Jolley 2334ef1f65
Merge pull request #19268 from woocommerce/remove-unused-methods
Remove unused code from WC_CLI_REST_Command class
2018-03-07 11:16:51 +00:00
Mike Jolley 7255e4a371
Merge pull request #19281 from woocommerce/fix/19279-db-version-fatal-system-status
Dont use mysql functions directly on system status page
2018-03-07 11:10:36 +00:00
Mike Jolley bb94d2467f
Merge pull request #19160 from woocommerce/fix/19112
Set is_tax to true when on unsupported theme taxonomy archive
2018-03-07 10:39:39 +00:00
Mike Jolley 69b09af0f0 Merge branch 'master' into fix/19175 2018-03-07 10:33:24 +00:00
Mike Jolley 696c1186f0 Update text and opt-in 2018-03-07 10:32:47 +00:00
Amritansh_tact9 7e05af1296 Replaced `WC_Product` with `WC_Product_Variation` for a more specific check in WC_Product_Variable::get_available_variation(). 2018-03-07 15:59:21 +05:30
Rodrigo Primo cc67dc9f74 Merge branch 'master' into remove-unused-methods 2018-03-07 07:27:43 -03:00
Rodrigo Primo 266b362d7e
Merge pull request #19271 from woocommerce/fix/includes-admin-plugin-updates-phpcs-violations
PHPCS fixes for includes/admin/plugin-updates directory
2018-03-07 07:17:54 -03:00
Rodrigo Primo 3d99fecc6b
Merge pull request #19269 from woocommerce/fix/includes-cli-phpcs-violations
PHPCS fixes for includes/cli directory
2018-03-07 07:17:35 -03:00
Mike Jolley 9f918cacc6
Merge pull request #19274 from woocommerce/update/api-phpcs
Fixed PHPCS violations on includes/api
2018-03-07 10:16:30 +00:00
Gerhard Potgieter 4b8a82093d Make system status DB version display compatible with rest system status controller data. Closes #19279 2018-03-07 08:18:23 +02:00
Rodrigo Primo af47f7b0b2 Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-products.php 2018-03-06 15:08:46 -03:00
Rodrigo Primo 2ec74d2e15 Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-orders.php 2018-03-06 15:08:30 -03:00
Rodrigo Primo d2bfa5e6c5 Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-coupons.php 2018-03-06 15:08:16 -03:00
Rodrigo Primo f4c17e20c7 Fix PHPCS violations in includes/admin/list-tables/abstract-class-wc-admin-list-table.php 2018-03-06 15:08:00 -03:00
Claudio Sanches f0d37ff4f5 Fixed PHPCS violations on REST API 2018-03-06 15:04:58 -03:00
Roy Lindauer bb9afb29be
cached_counts would not be defined if cache is false 2018-03-06 07:32:12 -08:00
Rodrigo Primo 2169f1f567 Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-inline.php 2018-03-06 10:58:45 -03:00
Rodrigo Primo f38e76421a Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-modal.php 2018-03-06 10:58:03 -03:00
Rodrigo Primo 3932710136 Fix PHPCS violations in includes/admin/plugin-updates/class-wc-plugin-updates.php 2018-03-06 10:50:06 -03:00
Rodrigo Primo ba563b8ec0 Fix PHPCS violations in includes/admin/plugin-updates/class-wc-plugins-screen-updates.php 2018-03-06 10:44:35 -03:00
Rodrigo Primo 85e01565e0 Fix PHPCS violations in includes/admin/plugin-updates/class-wc-updates-screen-updates.php 2018-03-06 10:34:18 -03:00
Rodrigo Primo 95b14b3674 Merge branch 'master' into fix/includes-cli-phpcs-violations 2018-03-06 10:32:56 -03:00
Rodrigo Primo cd90c9bbc8 Fix PHPCS violations in includes/cli/class-wc-cli-update-command.php 2018-03-06 09:28:29 -03:00
Rodrigo Primo 8eb32d2c8c Fix PHPCS violations in includes/cli/class-wc-cli-tool-command.php 2018-03-06 09:24:47 -03:00
Rodrigo Primo 66911be455 Fix PHPCS violations in includes/cli/class-wc-cli-runner.php 2018-03-06 09:20:58 -03:00
Rodrigo Primo 70a03e6dfa Fix PHPCS violations in includes/cli/class-wc-cli-rest-command.php 2018-03-06 09:07:33 -03:00
Rodrigo Primo 4f18567e74 Remove unused code from WC_CLI_REST_Command class
This commit removes three unused methods and one unused property from the WC_CLI_REST_Command class that I found while fixing PHPCS violations in the includes/cli directory.
2018-03-06 08:58:32 -03:00
Rodrigo Primo b6674b3a8f Replace calls to json_decode() with wp_json_decode() 2018-03-06 08:18:31 -03:00
Amritansh_tact9 da5e31ce2c Updated WC_Product_Variable::get_available_variation() to handle cases when variation ID provided is deleted/invalid. Throwing PHP fatal error on the next line where $variation->get_price() 2018-03-06 16:10:49 +05:30
Gerhard Potgieter 87c30fd228 PHPCS passing for class-wc-webhook-data-store-interface.php 2018-03-06 12:00:33 +02:00
Gerhard Potgieter 754df69994 PHPCS passing for class-wc-shipping-zone-data-store-interface.php 2018-03-06 11:59:23 +02:00
Gerhard Potgieter 4c6e954c8e PHPCS passing for class-wc-product-variable-data-store-interface.php 2018-03-06 11:56:07 +02:00
Gerhard Potgieter 936df3e1bb PHPCS passing for class-wc-product-data-store-interface.php 2018-03-06 11:53:40 +02:00
Gerhard Potgieter e933b8cfd0 PHPCS passing for class-wc-payment-token-data-store-interface.php 2018-03-06 11:49:02 +02:00
Gerhard Potgieter 00193f5ee4 PHPCS passing for class-wc-order-refund-data-store-interface.php 2018-03-06 11:46:27 +02:00
Gerhard Potgieter 7cd7b18bb3 PHPCS passing for class-wc-order-item-type-data-store-interface.php 2018-03-06 11:45:29 +02:00
Gerhard Potgieter 1a2b44f2d3 PHPCS passing for class-wc-order-item-product-data-store-interface.php 2018-03-06 11:43:37 +02:00
Gerhard Potgieter c354b93091 PHPCS passing for class-wc-order-item-data-store-interface.php 2018-03-06 11:42:03 +02:00
Gerhard Potgieter e504022c72 PHPCS passing for class-wc-order-data-store-interface.php 2018-03-06 11:38:03 +02:00
Gerhard Potgieter 42c5e183cd PHPCS passing for class-wc-object-data-store-interface.php 2018-03-06 11:34:16 +02:00
Gerhard Potgieter 96cbebb06b PHPCS passing for class-wc-logger-interface.php 2018-03-06 10:23:28 +02:00
Gerhard Potgieter 1ba9f86001 PHPCS passing for class-wc-log-handler-interface.php 2018-03-06 10:21:27 +02:00
Gerhard Potgieter 8d2cb4850b PHPCS passing for class-wc-importer-interface.php 2018-03-06 10:19:31 +02:00
Gerhard Potgieter 37eacc2585 PHPCS passing for class-wc-customer-download-log-data-store-interface.php 2018-03-06 10:18:33 +02:00
Gerhard Potgieter 2ed9993599 PHPCS passing for class-wc-customer-download-data-store-interface.php 2018-03-06 10:17:25 +02:00
Gerhard Potgieter 993d9cd232 PHPCS passing for class-wc-customer-data-store-interface.php 2018-03-06 10:14:45 +02:00
Gerhard Potgieter 17b6c78d00 PHPCS passing for class-wc-coupon-data-store-interface.php 2018-03-06 10:13:06 +02:00
Gerhard Potgieter 10d1c7f623 PHPCS passing for class-wc-abstract-order-data-store-interface.php 2018-03-06 10:08:42 +02:00
Gerhard Potgieter 85636f8fe7 PHPCS passing for abstract-wc-product-importer.php 2018-03-06 10:04:37 +02:00
Gerhard Potgieter 38892f3067 PHPCS passing for abstract-wc-csv-exporter.php 2018-03-06 07:55:15 +02:00
Gerhard Potgieter 1c191688f8 PHPCS passing for abstract-wc-batch-exporter.php 2018-03-06 07:52:03 +02:00
Gerhard Potgieter b4ec1d372c PHPCS passing for class-wc-customizer-controll-cropping.php 2018-03-06 07:31:20 +02:00
Mike Jolley 88c7c1333b No back links, better link styling 2018-03-05 21:59:32 +00:00
Jon Brown e6f2126b11
opps... not DRY
Photon check should probably should be abstracted, but this works for now
2018-03-05 11:08:40 -10:00
Claudio Sanches e8017e985b Fixed coding standards issues with PHPCBF 2018-03-05 17:53:06 -03:00
Jon Brown 87695bddb7
Checking class exists is insufficient allows for a fatal error when Jetpack class is defined without specific method
There are a half dozen stripped-down versions of JetPack's modules like JP Custom CSS, JP Widget visibility, etc... these all define a class called "Jetpack" but don't define all the methods.
2018-03-05 10:30:05 -10:00
Mike Jolley 1536d50824 Merge branch 'master' into update/18389-wizard-steps-improvements 2018-03-05 20:24:26 +00:00
Mike Jolley 46862deb17 wc_get_cart_item_data_hash function 2018-03-05 19:57:57 +00:00
Rodrigo Primo 44a5903ce6 Fix PHPCS violations in includes/cli using phpcbf
Fix all violations that phpcbf can fix automatically.
2018-03-05 16:46:54 -03:00
Sofyan Sitorus 7d04431571 Add contional check to compare cart item date_modified with product date_modified 2018-03-05 19:42:11 +00:00
Rodrigo Primo 45a404cc3b Merge branch 'master' into includes-admin-phpcs-fixes 2018-03-05 16:40:39 -03:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley 58c87e3fcd
Merge pull request #19148 from woocommerce/tweak/post-processing-custom-coupons
Add filter to allow post processing on custom coupons
2018-03-05 19:18:04 +00:00
Mike Jolley d5a6b4fec1
Merge pull request #19228 from Chunkford/patch-5
Add filter to a coupon's expiry date check
2018-03-05 19:07:01 +00:00
Mike Jolley 66ad22e3fa
Merge pull request #19128 from woocommerce/fix/19123-cli-term-ids
Use correct arg when making rest request in cli
2018-03-05 18:39:48 +00:00
Mike Jolley 73c85ec38d
Merge pull request #19173 from woocommerce/update/19154
Move jquery ui styles to assets
2018-03-05 18:35:46 +00:00
Mike Jolley 838a4bbea3 Remove unused variable 2018-03-05 18:35:07 +00:00
Claudiu Lodromanean b6c1a9d2c1
Merge pull request #19220 from woocommerce/fix/19218
Only append tax label if taxes are enabled
2018-03-05 09:26:10 -08:00
Gerhard Potgieter 5075fb4964 PHPCS passing for abstract-wc-widget.php 2018-03-05 15:21:04 +02:00
Gerhard Potgieter 17f013b5b1 PHPCS passing for abstract-wc-shipping-method.php 2018-03-05 15:08:55 +02:00
Gerhard Potgieter f56c6366c1 PHPCS passing for abstract-wc-settings-api.php 2018-03-05 15:01:21 +02:00
Gerhard Potgieter d968621afb PHPCS passing for abstract-wc-session.php 2018-03-05 15:00:52 +02:00
Gerhard Potgieter ba1e7d1e99 PHPCS passing for abstract-wc-rest-shipping-zones-controller.php 2018-03-05 14:59:35 +02:00
Gerhard Potgieter 74ec8a4a14 PHPCS passing for abstract-wc-rest-posts-controller.php 2018-03-05 14:58:28 +02:00
Gerhard Potgieter fb3afa672d PHPCS passing for abstract-wc-rest-crud-controller.php 2018-03-05 14:55:17 +02:00
Gerhard Potgieter 5dcfeac7c1 PHPCS passing abstract-wc-rest-controller.php 2018-03-05 14:52:49 +02:00
Gerhard Potgieter 7f2362aab1 PHPCS passing abstract-wc-product.php 2018-03-05 14:46:34 +02:00
Gerhard Potgieter cb87a0ee54 PHPCS passing for abstract-wc-payment-token.php 2018-03-05 13:54:54 +02:00
Gerhard Potgieter 940ab475d4 PHPCS passing for abstract-wc-payment-gateway.php 2018-03-05 13:48:54 +02:00
Gerhard Potgieter 440358a4f2 PHPCS passing for abstract-wc-order.php 2018-03-05 13:41:04 +02:00
Gerhard Potgieter 9fd043eaea PHPCS passing for abstract-wc-object-query.php 2018-03-05 13:39:05 +02:00
Gerhard Potgieter b3c998b0cd PHPCS passing for abstract-wc-long-handler 2018-03-05 13:36:56 +02:00
Gerhard Potgieter 41958de93d PHPCS passing for abstract-wc-integration.php 2018-03-05 13:34:38 +02:00
Gerhard Potgieter 42978bb031 PHPCS passing for abstract-wc-data.php 2018-03-05 13:29:18 +02:00
Mike Jolley ab9389ec83
Merge pull request #19110 from woocommerce/feature/18056
Remember importer mappings
2018-03-03 17:22:48 +00:00
Mike Jolley 46ab27e4e8
Merge pull request #18820 from alexmacarthur/pii-removal
PII Issue Prevention - Remove user login from reset password link.
2018-03-03 17:19:55 +00:00
Chunkford dce96daa84
Add filter to a coupon's expiry date check
I need the ability (and hopefully others now or in the future) to intercept the expiry date check for a coupon.
This pull request offers that ability.
2018-03-03 11:46:14 +00:00
Roy Lindauer 4147038e93 Add filter to control caching of layered nav counts. Split cached layered nav counts by taxonomy 2018-03-02 22:14:20 -08:00
Mike Jolley 85450f60ec Merge branch 'master' into pr/18596 2018-03-02 19:31:37 +00:00
Mike Jolley a869f896bf
Merge pull request #19166 from woocommerce/tweak/coupon-price-ui
Improve UI on Coupon amount in cart
2018-03-02 19:26:48 +00:00
Claudio Sanches d822076115
Merge pull request #19201 from danielshields/patch-1
Fix the PayPal API URL
2018-03-02 16:02:48 -03:00
Mike Jolley f0fc684704 Wording update 2018-03-02 16:44:26 +00:00
Mike Jolley 57cfa72d99 Only append tax label if taxes are enabled 2018-03-02 16:22:54 +00:00
Claudiu Lodromanean 079edc9ca6
Merge pull request #19204 from woocommerce/update/prodshortcod
New shortcode features for products block
2018-03-01 15:05:04 -08:00
Mike Jolley bd91ea27ab Update tracker to be opt-in and contain proper instructions
Fixes #19175
2018-03-01 19:31:30 +00:00
claudiulodro 383317c256 Layered nav support on unsupported theme archives 2018-03-01 11:28:00 -08:00
Claudiu Lodromanean 62a823dadf
Merge pull request #19171 from woocommerce/update/19145
Improve store notice customizer handling
2018-03-01 10:54:11 -08:00
claudiulodro 8cf36aa0d2 New shortcode features for products block 2018-03-01 10:05:22 -08:00
danielshields e2da7fd277
Fix the PayPal API URL
Assuming they changed the section title, as the permalink is now "create" vs "creating"
2018-03-01 12:30:38 -05:00
Mike Jolley 418ee11839 This tracking notice is not used. 2018-03-01 17:01:55 +00:00
Paul Dechov 08e8ca7823 Activate plugins during installation process even if directory doesn't match slug 2018-03-01 11:50:54 -05:00
Mike Jolley b4579bb502 Merge branch 'master' into update/16912 2018-03-01 16:38:04 +00:00
Mike Jolley 3d4b1e6d4c Return new logger instance if class changes. 2018-03-01 16:24:53 +00:00
Mike Jolley 21d7dbc612 Merge branch 'master' into update/17252 2018-03-01 15:58:17 +00:00
Mike Jolley f162fdb9d1 Merge branch 'master' into update/17795 2018-03-01 12:13:14 +00:00
nishitlangaliya 11f329b500 Fixes- Admin - removed product type column 2018-03-01 16:43:13 +05:30
Rodrigo Primo 3a480e5d80 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-01 08:02:08 -03:00
Caleb Burks 0568470bb8 Only show T&C's notice if there is a valid T&Cs page 2018-02-28 21:58:34 -05:00
Claudio Sanches ffd7915d49 Make sure that option is an array 2018-02-28 16:46:52 -03:00
Claudio Sanches de804dbe7b Make sure that user saved mapping preferences are applied after all filters 2018-02-28 16:40:26 -03:00
Claudio Sanches 3ca1139cf9 Sanitize mapping before save 2018-02-28 16:36:35 -03:00
Claudio Sanches 8500000da7 Updated user option key 2018-02-28 16:04:20 -03:00
Mike Jolley 49c2f2b28e Also during clean_term_cache 2018-02-28 18:35:58 +00:00
Mike Jolley 4bce7b0223 Use single cache for hierarchy 2018-02-28 18:24:03 +00:00
Rodrigo Primo 56cb3d2d4f Check if download ID is valid before running query 2018-02-28 13:41:11 -03:00
Rodrigo Primo 0f79567d06 Merge branch 'master' into update/improve-get-downloads 2018-02-28 13:34:11 -03:00
Mike Jolley b44183b4cb Move jquery ui styles to assets 2018-02-28 13:02:41 +00:00
Boro Sitnikovski 1a1f62c952 Separate coupon custom logic into its own method 2018-02-28 13:42:52 +01:00
Boro Sitnikovski b2e9fbb22d Add filter to allow post processing on custom coupons 2018-02-28 13:41:18 +01:00
Mike Jolley 74f9e16ac3 Unbind on display 2018-02-28 11:58:04 +00:00
Boro Sitnikovski 328dad7659 Improve UI on Coupon amount in cart 2018-02-28 09:47:59 +01:00
Frédéric Demarle ac199889f2 Fix fatal error in PHP < 5.5 2018-02-27 20:55:40 +01:00
Tiago Noronha 28b99e6970 Prevent full refresh when editing store notice and checkbox is off 2018-02-27 19:52:31 +00:00
claudiulodro 3e114799ca Set is_tax true when on unsupported theme 2018-02-27 11:45:56 -08:00
Mike Jolley 391e5df40c Support for OR operator 2018-02-27 19:45:45 +00:00
Claudiu Lodromanean 5346f63abc
Merge pull request #19159 from woocommerce/fix/19124
Use subtotal for discounts in admin/orders
2018-02-27 11:27:01 -08:00
Mike Jolley c0c4348123 Use wp_search_stopwords filter 2018-02-27 19:22:15 +00:00
Mike Jolley 728e6dc58d
Merge pull request #19109 from woocommerce/fix/19083
wc_get_price_excluding_tax handling for woocommerce_adjust_non_base_location_prices
2018-02-27 19:20:20 +00:00
Mike Jolley de5b60a7e6
Merge pull request #18817 from shivapoudel/feature/screen-option
Add support screen options for core list tables
2018-02-27 19:19:45 +00:00
Mike Jolley f28a3dd35d
Merge pull request #19156 from woocommerce/fix/19120
Only trim strings in multiselect display options
2018-02-27 19:18:09 +00:00
Mike Jolley c2c0aeefb8
Merge pull request #19002 from helgatheviking/exclude-products-from-coupon-validation
Exclude products from coupon validation
2018-02-27 19:14:22 +00:00
Mike Jolley e4403b87ea
Merge pull request #19091 from woocommerce/update/18852
Include priceSpecification with valueAddedTaxIncluded
2018-02-27 19:13:10 +00:00
Mike Jolley c389f4017e Merge branch 'master' into update/19136 2018-02-27 19:11:52 +00:00
Mike Jolley f3ab50d962
Merge pull request #19135 from Chouby/ajax_wp_die
Replace exit by calls to wp_die() in ajax responses
2018-02-27 19:09:41 +00:00
Mike Jolley a6431c86d3 Use subtotals when applying discount logic to match cart. 2018-02-27 18:48:05 +00:00
Mike Jolley cceec55714 Fix error in unit tests due to missing object check 2018-02-27 16:32:59 +00:00
claudiulodro c8f418fd45 Only trim strings in multiselect display options 2018-02-27 07:50:33 -08:00
Mike Jolley 00ed016bf1 Implement selective_refresh for store notice 2018-02-27 12:46:36 +00:00
Mike Jolley 4b2642c757 phpcs 2018-02-26 19:18:38 +00:00
Mike Jolley 997b852a43 clean_term_cache callback to flush subcategory cache 2018-02-26 19:15:42 +00:00
Mike Jolley e1beda3eb0 Use relative scheme for ajax endpoint 2018-02-26 18:51:46 +00:00
Mike Jolley fc9fe996d8 Add profile link to order screen 2018-02-26 18:19:03 +00:00
Frédéric Demarle b2f59b0da5 Replace exit by calls to wp_die() in ajax responses 2018-02-26 18:27:25 +01:00
Mike Jolley 0784e9ede6
Merge pull request #19126 from obiPlabon/master
Fixed #19125 - added spinner markup
2018-02-26 16:08:01 +00:00
Caleb Burks 828141c407 CLI ID argument should come after parent ID args 2018-02-25 14:59:23 -05:00
Caleb Burks e365d1e01a Use correct arg when making rest request in cli 2018-02-25 14:18:22 -05:00
obiPlabon 5b8721519b Fixed #19125 - added spinner markup 2018-02-25 17:33:29 +06:00
Hardip Parmar 632da6779e fixed spelling for calculate. 2018-02-24 16:53:27 +05:30
Kathy Darling d494daf3cd Merge branch 'master' of github.com:woocommerce/woocommerce into exclude-products-from-coupon-validation 2018-02-23 22:09:06 -06:00
Claudio Sanches 9db8a434b5
Merge pull request #18082 from WPprodigy/remember-importer-mappings
Remember importer mappings
2018-02-23 11:05:24 -03:00
Mike Jolley 39c6c9c72c wc_get_price_excluding_tax handling for woocommerce_adjust_non_base_location_prices 2018-02-23 11:53:05 +00:00
Mike Jolley dc4212cc15
Merge pull request #19098 from woocommerce/fix/19095-coupon-empty-cost
Ensure coupon amount is not empty
2018-02-23 10:58:29 +00:00
Mike Jolley bb497f213d
Merge pull request #19104 from woocommerce/fix/19102-exlude-page-1-from-shop-page-content-check
Include page 1 on shop archive content check
2018-02-23 10:56:27 +00:00
Gerhard Potgieter c8642f0da7 PHPCS fixes 2018-02-23 10:16:22 +02:00
Gerhard Potgieter c13dee6fb3 Add page 1 to check when displaying shop page content. 2018-02-23 10:14:59 +02:00
Shiva Poudel e4bcc1d285 Rename the prefix for per page options 2018-02-23 10:03:56 +05:45
Shiva Poudel c2c97855be Merge branch 'master' into feature/screen-option 2018-02-23 09:49:19 +05:45
Caleb Burks 9ba4ae7ad7 Remove unnecessary conditional 2018-02-22 14:39:37 -05:00
Caleb Burks ae0f5fc76d Ensure coupon amount is not empty 2018-02-22 14:33:06 -05:00
Claudio Sanches 69044423d2 [REST API] Do not allow updating parent ID from variations after created
Closes #18933
2018-02-22 16:22:42 -03:00
Claudio Sanches b64b2a8680 Fixed coding standards 2018-02-22 16:00:21 -03:00
Mike Jolley a1ea88ffb0 Fix comparison 2018-02-22 18:46:34 +00:00
Mike Jolley 93d36814e2 phpcs 2018-02-22 18:30:49 +00:00
Mike Jolley a15c1611e0 Stopword support 2018-02-22 18:22:55 +00:00
Mike Jolley 964afd3882 Include priceSpecification with valueAddedTaxIncluded
Closes #18852
2018-02-22 16:34:54 +00:00
Mike Jolley 3353d80ecd wc_get_loop_class; force columns to be a minimum of 1 2018-02-22 15:44:28 +00:00
Mike Jolley f8edd02285 phpcbf auto fixes 2018-02-22 15:37:01 +00:00
Mike Jolley 9571a90c9f phpcs 2018-02-22 14:30:13 +00:00
Mike Jolley 0f85e00af1 Product search functions should check for read access, not edit access 2018-02-22 14:11:27 +00:00
Alex MacArthur 870338ee5d Make compliant w/ coding standards, sanitize ID. 2018-02-22 07:01:49 -06:00
Alex MacArthur 08982af65c Set to empty string in case invalid ID is passed. 2018-02-22 06:58:18 -06:00
Alex MacArthur c87c5627bb Add fallback support for passing user_login in password reset link. 2018-02-22 06:58:18 -06:00
Alex MacArthur e01385d2b4 Remove user login from reset password link. 2018-02-22 06:58:18 -06:00
Mike Jolley f49491809f
Merge pull request #19078 from woocommerce/fix/17606
Display name input on My Account page
2018-02-22 12:29:58 +00:00
Mike Jolley 23eccd4b14
Merge pull request #18957 from alexmacarthur/pii-downloads
Hash customer email address in download URLs.
2018-02-22 12:27:33 +00:00
Mike Jolley 304922087d
Merge pull request #18984 from woocommerce/update/18981
Made get_on_sale_products respect the setting to hide outofstock products
2018-02-22 12:23:57 +00:00
Mike Jolley 64c6dd9e8b
Merge pull request #18779 from jeffikus/master
Updates Flexslider to version 2.7.0
2018-02-22 12:23:32 +00:00
Mike Jolley b93f719b36
Merge pull request #18624 from Chunkford/patch-4
Display zero value when using shipping classes
2018-02-22 12:22:58 +00:00
Mike Jolley 58796bf981
Merge pull request #18554 from woocommerce/fix/18545
Flat rate: remove currency symbols
2018-02-22 12:21:49 +00:00
Mike Jolley 69816b9854
Merge pull request #18538 from woocommerce/update/16366
Optimise saving of orders
2018-02-22 12:20:14 +00:00
Mike Jolley 380ee9a13f
Merge pull request #18536 from woocommerce/update/17908
Refactor woocommerce_wp_select so it could be used for a multiselect
2018-02-22 12:19:11 +00:00
Shiva Poudel f1e2c0cf83 Merge remote-tracking branch 'upstream/master' into feature/screen-option 2018-02-22 09:52:59 +05:45
Claudio Sanches 0f797714f1 Tweaks on account display name 2018-02-21 21:52:45 -03:00
Claudio Sanches c0e29d0cbe
Merge branch 'fix/17606' into add/17606 2018-02-21 21:34:38 -03:00
Claudio Sanches fe83dfdba7 Merge branch 'master' into fix/18545 2018-02-21 19:15:45 -03:00
Alex MacArthur bc41fb0ba9 Use wc_get_order(), handle failure in case WC_Order not returned. 2018-02-21 15:39:43 -06:00
Claudio Sanches 7da77237a2 Fixed coding standards 2018-02-21 18:19:38 -03:00
Claudio Sanches 2f6795a2c8 Fixed undefined index after running setup wizard two times on fresh install 2018-02-21 18:15:50 -03:00
Mike Jolley 03a1906706 Post image is enough 2018-02-21 17:21:02 +00:00
Mike Jolley 8d1408fa04 Add WP classes to image gallery 2018-02-21 17:21:02 +00:00
Mike Jolley e614c9ce22
Merge pull request #19069 from woocommerce/fix/19064
Numeric check needs to come after formatting the decimal
2018-02-21 15:08:30 +00:00
Mike Jolley 700246345b Numeric check needs to come after formatting the decimal 2018-02-21 14:02:44 +00:00
Alex MacArthur 931bf27511 Fix spacing, use hash_equals to verify uid. 2018-02-21 07:45:07 -06:00
Alex MacArthur 3e0e75ebc3 Fix spacing issues. 2018-02-21 07:34:56 -06:00
Alex MacArthur 00e71b304d Hash customer email address in download URLs. 2018-02-21 07:34:56 -06:00
Claudio Sanches f60cd7cca4 [REST API] Fixed products shipping_class_id type 2018-02-20 17:16:26 -03:00
Claudio Sanches ef393b8405
Merge pull request #18918 from woocommerce/fix/order-item-meta-key-maxlength
Set maxlength for order item meta key
2018-02-20 16:52:35 -03:00
Claudio Sanches cf934cf45f
Merge pull request #18961 from woocommerce/fix/18958-remove-hardcoded-wp-content
Remove hardcoded /wp-content check for downloads.
2018-02-20 16:17:27 -03:00
Claudio Sanches c80372ad5c
Merge pull request #19027 from woocommerce/update/persistent-cart-filter
Added woocommerce_persistent_cart_enabled filter
2018-02-20 13:57:27 -03:00
Claudio Sanches 44c1de45eb
Merge pull request #19043 from woocommerce/fix/19032
Prevent shortcode [product_page] redirecting to the actual product's page after add to cart
2018-02-20 13:20:08 -03:00
Claudio Sanches 99a72a6929
Merge pull request #19044 from woocommerce/fix/19030
Make terms logic match for breadcrumb and widget
2018-02-20 13:18:11 -03:00
Mike Jolley 7a68cb9c12 Update regex 2018-02-20 16:04:42 +00:00
Mike Jolley 0cda2dba82 Convert more dollar entries for plain text emails 2018-02-20 16:04:42 +00:00
Mike Jolley 472e64270a Check parent status when seeing if variation is purchasable. 2018-02-20 12:34:33 +00:00
Mike Jolley 5330d0b860 Make terms logic match for breadcrumb and widget 2018-02-20 11:49:06 +00:00
Mike Jolley 2a7b09cb52
Merge pull request #19037 from woocommerce/fix/19036-order-date
Show full date for future orders
2018-02-20 11:21:31 +00:00
Mike Jolley c66d676680 Simplify date check 2018-02-20 11:21:00 +00:00
Mike Jolley 86132346df remove action when rendering shortcode 2018-02-20 11:15:09 +00:00
Mike Jolley adde0d6d29
Merge pull request #19042 from woocommerce/fix/shipping-zones-wizard-notice
Prevent shipping zones PHP notice during setup wizard
2018-02-20 10:40:54 +00:00
Caleb Burks 3469d47947 Prevent shipping zones PHP notice in wizard 2018-02-20 02:33:06 -05:00
Caleb Burks 634bee567e Ensure item totals are not empty 2018-02-20 02:19:12 -05:00
Caleb Burks 3d7f674c54 Show full date for future orders 2018-02-19 21:25:03 -05:00
claudiulodro af5cb5df93 Resolve merge conflicts 2018-02-19 10:45:06 -08:00
Mike Jolley 0df57524a7 Added woocommerce_persistent_cart_enabled filter 2018-02-19 16:36:26 +00:00
Mike Jolley 6f855c781f Fix response/ajax handling for #18080 2018-02-19 14:56:30 +00:00
Mike Jolley 5fce9152bd
Merge pull request #18080 from WPprodigy/fix-stock-update-order-notes
Enhancements for stock updates
2018-02-19 14:51:05 +00:00
Mike Jolley 7c61f05bb1
Merge pull request #18620 from woocommerce/fix/get-downloads-order-by
Fix: properly set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
2018-02-19 14:44:21 +00:00
Mike Jolley 0996264e7a
Merge pull request #18609 from woocommerce/fix/18608-add-missing-action-settings-save
Add missing action for settings pages that override save method
2018-02-19 14:43:58 +00:00
Mike Jolley b6ae08a72a Duplicate action 2018-02-19 14:43:28 +00:00
Mike Jolley d5a1463e3e
Merge pull request #18595 from woocommerce/update/add-ext-object-cache-to-system-status
Display whether or not external object cache is enabled
2018-02-19 14:40:14 +00:00
Mike Jolley 5feed3e0cc Merge branch 'master' into update/add-ext-object-cache-to-system-status 2018-02-19 14:39:31 +00:00
Mike Jolley d26c20c0a9
Merge pull request #18831 from woocommerce/fix/list-of-wc-tables
Remove all WC tables when uninstalling the plugin
2018-02-19 14:31:19 +00:00
Claudio Sanches 2aa74a6f66
Merge pull request #19020 from woocommerce/fix/19015
Adds back get_item so you can get a single Webhook
2018-02-19 10:45:33 -03:00
Mike Jolley f1a69688fa
Merge pull request #18982 from woocommerce/tweak/get-image-filter
Pass image to get_image_filter as well
2018-02-19 13:15:55 +00:00
Mike Jolley 594b3773cd
Merge pull request #19025 from woocommerce/fix/18999
Fix double slash and logout link nonce
2018-02-19 13:15:14 +00:00
Mike Jolley 17c28fc8f9 Prevent double slash 2018-02-19 13:14:07 +00:00
Mike Jolley b3d051565f code standards 2018-02-19 13:10:36 +00:00
Mike Jolley a7bff8f1aa
Merge pull request #19024 from woocommerce/pr/19003
Fix check for external resources
2018-02-19 13:07:53 +00:00
Mike Jolley 48e1894258 code standards 2018-02-19 13:06:04 +00:00
Mike Jolley e9bc9d3b1f Indentation 2018-02-19 12:41:55 +00:00
Mike Jolley 68238938e4 Adds back get_item so you can get a single Webhook
Closes #19015
2018-02-19 11:56:57 +00:00
Paul Dechov d35f76136e Only show the Activate step if Jetpack isn't connected or WCS features were chosen 2018-02-16 23:23:41 -05:00
Paul Dechov b8c57576e6 Update graphic to WCS banner design 2018-02-16 18:07:04 -05:00
Kathy Darling caf03064ac add getter for class' object property 2018-02-16 15:52:04 -06:00
Kathy Darling 8dc3d689c6 Follow up to #18971. Pass cart/order items through a filter. 2018-02-16 15:51:35 -06:00
Patrick Mladensich 1b290eae6d
Fix check for external resource 2018-02-16 22:51:06 +01:00
Remi Corson ad240278bd Do not display H2 note if no note
This will make the note title not appear if no note is defined. However, some CSS styling is needed as padding was originally added via .wc-order-preview-address wichi was containing the note section.
2018-02-16 15:24:31 +01:00
Jonathan MacGregor c82297ca10
Update wc-account-functions.php 2018-02-16 13:19:50 +00:00
Jonathan MacGregor 29d53969c4 Logout from My Account Menu now appends the nonce 2018-02-16 13:10:17 +00:00
Remi Corson 94802c7a8b Fix #18995
Fixes #18995 by moving the note section outside the addresses container and unlink it from the shipping method conditional statement.
2018-02-16 12:12:15 +01:00
Paul Dechov 5d71521d6a Omit 'Reasons you\'ll love Jetpack' if Jetpack is already connected 2018-02-15 17:49:18 -05:00
Paul Dechov 16649fa7d9 Show 'Activate' step even when Jetpack is connected, to accept WCS terms of service 2018-02-15 17:48:37 -05:00
Mike Jolley 49a74b95db Made get_on_sale_products respect the setting to hide outofstock products
Closes #18981
2018-02-15 16:35:29 +00:00
Boro Sitnikovski 927576edb2 Pass image to get_image_filter as well 2018-02-15 16:22:30 +01:00
Mike Jolley 65278efd44 Allow modal to be wider and fix button wrapping 2018-02-15 12:46:47 +00:00
Mike Jolley 654e7db840 Use empty check for search 2018-02-14 18:09:47 +00:00
Mike Jolley d841cf3f27 Conditionally add messages in customiser 2018-02-14 17:25:52 +00:00
Mike Jolley 7ae0f6c274 Hide status button when disabled via filter 2018-02-14 17:00:43 +00:00
Mike Jolley ebc8ff0737 Fallback to closest match if size changes. 2018-02-14 13:43:52 +00:00
Mike Jolley 2f0e88f7ba Improved photon handling 2018-02-14 13:20:34 +00:00
Mike Jolley 66e65cf7bf Disable image regen if photon is being used. 2018-02-14 11:38:18 +00:00
Gerhard Potgieter f3974efb6b Fetch size dynamically 2018-02-14 11:35:16 +02:00
Gerhard Potgieter 0dce1a485c Remove hardcoded check, use dynamic values based on WP_CONTENT_DIR and ABSPATH 2018-02-14 11:29:44 +02:00
Gerhard Potgieter 1961076bf7 Update tools message for image reneneration. 2018-02-14 10:38:59 +02:00
Mike Jolley 0672afdc9f Log cancel event 2018-02-13 19:22:01 +00:00
Mike Jolley 1631c8a09f Cancel button text 2018-02-13 19:21:52 +00:00
Mike Jolley 280ca3757e wc_get_gallery_image_html checks 2018-02-13 19:18:13 +00:00
Mike Jolley 67bef92657 static function 2018-02-13 17:57:45 +00:00
Mike Jolley 154898dec2 make customizer preview temporary 2018-02-13 14:33:45 +00:00
Mike Jolley 52853e9c23 typo 2018-02-13 13:59:54 +00:00
Mike Jolley 755f535f69 Return, to avoid multiple resizes 2018-02-13 13:58:27 +00:00
Mike Jolley 9f9e4027e9 Thumbnail mapping 2018-02-13 12:51:55 +00:00
Mike Jolley e39b6950a8 Notice when regeneration is happening 2018-02-13 12:02:24 +00:00
Mike Jolley 3c7262112e Merge branch 'fix/18842-external-images-fix' into update/3.3-image-handling 2018-02-13 11:18:43 +00:00
Mike Jolley c29da59edf Merge branch 'fix/18842-external-images-fix' into update/3.3-image-handling 2018-02-13 11:17:43 +00:00
Mike Jolley 2b36b5f49f Main image should be larger. 2018-02-13 11:16:42 +00:00
Mike Jolley ebb246d9d3 wc_get_gallery_image_html helper function 2018-02-13 11:16:42 +00:00
Mike Jolley 9499b63e01 Register gallery_thumbnail size 2018-02-13 11:16:42 +00:00
Gerhard Potgieter 794272a732 Do not auto generate images on setting changes or theme switches. Introduce a regenerate button under tools. Only resize images on the fly when using the customizer to preview changes. 2018-02-13 09:55:50 +02:00
Shiva Poudel a283da9a53 Since already initialized on load no need of this 2018-02-13 08:31:11 +05:45
Caleb Burks ea9f799ec6 Remove strlen() condition
Did some tests, substr() is actually faster than the strlen() check.
2018-02-12 17:39:33 -05:00
Claudiu Lodromanean c9bbbf7c5a
Merge pull request #18944 from suifengtec/master
fix: show Maximum size with the size unit on the importer screen
2018-02-12 11:26:55 -08:00
Claudiu Lodromanean 86790b43da
Merge pull request #18941 from woocommerce/update/18929
Allow changing the default product category
2018-02-12 10:07:09 -08:00
Claudiu Lodromanean b5e0450ef3
Merge pull request #18939 from woocommerce/fix/18923
Set status after order is created/updated.
2018-02-12 10:02:50 -08:00
Claudiu Lodromanean c98e0ac43b
Merge pull request #18934 from woocommerce/update/18932
Remove isle of man state
2018-02-12 09:18:13 -08:00
Claudiu Lodromanean 334b543c77
Merge pull request #18908 from woocommerce/fix/18864
Set woocommerce_hide_invisible_variations to true.
2018-02-12 08:50:54 -08:00
Claudiu Lodromanean 3fd4c365b1
Merge pull request #18905 from woocommerce/fix/18891
Use verbose page rules when shop is in the URL, including shop base with category
2018-02-12 08:46:41 -08:00
suifengtec 6aab570544 fix: show Maximum size with the size unit on the importer screen 2018-02-12 23:18:24 +08:00
Mike Jolley 2c45696498 Add a 'make default' button to change the default product category 2018-02-12 13:17:47 +00:00
Mike Jolley e903027c2f
Merge pull request #18895 from woocommerce/fix/remove-attribute-type-column
Remove "Type" column on attributes table by default.
2018-02-12 12:14:54 +00:00
Mike Jolley d5d4f4199e
Merge pull request #18917 from shivapoudel/fix-status
Fix - Help tip for webhook status
2018-02-12 12:09:03 +00:00
Mike Jolley bdd4898946 Set status after order is created/updated. 2018-02-12 11:56:48 +00:00
Tareq Hasan b5ea65b604 Shipping zone documentation help link was printing wrong 2018-02-12 17:17:23 +06:00
Mike Jolley da32586251 Remove isle of man state
Fixes #18932
2018-02-12 10:34:40 +00:00
Caleb Burks 19e3126e54 Add additional wizard next steps 2018-02-10 18:51:25 -05:00
Caleb Burks 0b228c4fda Add ability to go back to prev steps during setup 2018-02-10 18:28:07 -05:00
Shiva Poudel 3ea8629b6e Check admin referer instead of nonce, just like webhooks
CC @claudiosanches
2018-02-10 13:03:22 +05:45
Shiva Poudel 5e7b0e2925 Tweaks and PHPCS fixes 2018-02-10 12:23:33 +05:45
Shiva Poudel 939d8043ec PHPCS fix 2018-02-10 10:41:06 +05:45
Shiva Poudel 25d77e3ddc Use of title for description so screen option will not show for it 2018-02-10 10:17:02 +05:45
Shiva Poudel 14da53001f Tweak - No items found text 2018-02-10 10:14:06 +05:45
Shiva Poudel c35fb04455 Seperate the {create|edit}-key isset check, as it won't work 2018-02-10 10:07:06 +05:45
Caleb Burks 4f447ea48d Sanitize order item meta key w/ max characters 2018-02-09 22:52:36 -05:00
Caleb Burks c278bffa78 Set maxlength for order item meta key 2018-02-09 22:33:35 -05:00
Caleb Burks 221b4672d9 Use wc_has_custom_attribute_types() 2018-02-09 17:31:56 -05:00
Shiva Poudel 71495cef69 Fix - Help tip for webhook status 2018-02-10 02:33:00 +05:45
Mike Jolley 80c07d530d Set woocommerce_hide_invisible_variations to true. 2018-02-09 16:44:41 +00:00
Mike Jolley 6af5bc3d19
Merge pull request #18863 from woocommerce/fix/gallery-array-to-string-conversion
Fix array to string conversion error
2018-02-09 16:42:11 +00:00
Mike Jolley 129134a30f Use verbose page rules when shop is in the URL, including shop base with category 2018-02-09 15:25:33 +00:00
Mike Jolley 7339511495 Height must be int 2018-02-09 14:12:19 +00:00
Mike Jolley 9d898bbf6e Return the resized image after regen, or if regen is not needed 2018-02-09 14:06:00 +00:00
Mike Jolley 961cd6dfa6 Copy sizes to legacy sizes 2018-02-09 14:04:43 +00:00
Caleb Burks 7eae986643 Remove “Type” column on attributes table 2018-02-08 21:36:27 -05:00
Claudiu Lodromanean 170cf2d361
Merge pull request #18888 from woocommerce/fix/18859
Don't prepend cats for regular shortcodes
2018-02-08 10:41:43 -08:00
Claudiu Lodromanean 59b61ab744
Merge pull request #18408 from macbookandrew/downloadable_items_filter
add file array key similar to other functions
2018-02-08 10:38:12 -08:00
Mike Jolley 830a2cb5a5 Don't prepend cats for regular shortcodes 2018-02-08 17:37:56 +00:00
Claudiu Lodromanean 2b96d68047
Merge pull request #18883 from woocommerce/fix/18881
If using get_catalog_ordering_args. remove the args when finsihed
2018-02-08 09:31:11 -08:00
Claudiu Lodromanean becd77ae93
Merge pull request #18880 from woocommerce/fix/18856
Added ability to search for all post statuses
2018-02-08 09:27:01 -08:00
Claudiu Lodromanean b47e264cb3
Merge pull request #18879 from woocommerce/update/category-help-text-polish
Add help text for the default category 2
2018-02-08 09:16:19 -08:00
Caleb Burks 210c22e57c Update docs 2018-02-08 11:58:20 -05:00
Caleb Burks 454c226778 Use wc_help_tip() 2018-02-08 11:52:32 -05:00
Mike Jolley b379e213c8 Allow search_products to find parent ids 2018-02-08 16:36:24 +00:00
Mike Jolley f56e40363b If using get_catalog_ordering_args. remove the args when finsihed 2018-02-08 13:59:03 +00:00
Gerhard Potgieter 2280cabb94 Change on-the-fly image regenration to use same process as backrgound resizing, ensures CDN images are updated and show. 2018-02-08 15:36:50 +02:00
Mike Jolley 7dd9c7fb0e Added ability to search for all post statuses 2018-02-08 12:53:39 +00:00
Mike Jolley b95812d563 Handle quick edit 2018-02-08 12:35:57 +00:00
Rodrigo Primo 3290094ca0 Merge branch 'master' into update/avoid-extra-unneeded-query 2018-02-08 10:00:32 -02:00
Rodrigo Primo b4f6dc45e6 Update option instead of adding it
Doing this since on commit 57ae11c4c6, we stopped deleting the option and thus adding it won't do anything as it will be already present.
2018-02-08 09:54:39 -02:00
Gerhard Potgieter 780905cd0e Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-02-08 10:11:27 +02:00
Caleb Burks bee4a57403 Fix array to string conversion error 2018-02-07 20:30:37 -05:00
Caleb Burks 4ca94e8f21 Add tooltip for default category 2018-02-07 19:24:43 -05:00
Caleb Burks c8a888acba Add note underneath product categories in admin 2018-02-07 18:12:31 -05:00
Caleb Burks c21cc2e8fe Replace “Cheatin’ uh?” with friendlier messages 2018-02-07 17:01:12 -05:00
Claudiu Lodromanean d6262e0b0e
Merge pull request #18849 from woocommerce/fix/wp-option-updates-spike
Fix spike in update queries on the wp_options table
2018-02-07 13:09:55 -08:00
Claudio Sanches 94318762cc
Merge pull request #18855 from woocommerce/fix/at
Only do unsupported template rendering in the loop
2018-02-07 18:18:46 -02:00
Mike Jolley 35265cdf08 Prevent warning when height is empty 2018-02-07 12:14:07 -08:00
claudiulodro e67634c45f Only do unsupported template rendering in the loop 2018-02-07 11:56:41 -08:00
Rodrigo Primo 57ae11c4c6 Avoid unneeded query to wp_options on every request
This commit changes the value of the option 'woocommerce_queue_flush_rewrite_rules' to 'no' instead of deleting it when rewrite rules are flushed. This way this option is autoloaded and the `get_option()` call below doesn't trigger a select query to the database on every request.

61f037060b/includes/class-wc-post-types.php (L514)
2018-02-07 10:59:06 -02:00
Rodrigo Primo 61f037060b Use 'yes' instead of 'true' as the value of the option woocommerce_queue_flush_rewrite_rules
WC seems to use 'yes' and 'no' instead of 'true' and 'false' as the values of boolean options, so this commit changes the value of the option woocommerce_queue_flush_rewrite_rules to follow this pattern. Also, the string 'false' can induce bugs as it is truthy.
2018-02-07 10:54:01 -02:00
Gerhard Potgieter 8ae28cfe63 Add extra checks before processing on-the-fly regenration images to catch remote files. 2018-02-07 14:52:23 +02:00
Rodrigo Primo f2e7eb98df Fix spike in update queries on the wp_options table
Since WC 3.3.1, the following query is executed on every page load:

```
UPDATE `wp_options` SET `option_value` = '1' WHERE `option_name` = 'current_theme_supports_woocommerce'
```

This is happening because of the following call to `update_option()`:

```
update_option( 'current_theme_supports_woocommerce', current_theme_supports( 'woocommerce' ) ? 1 : 0 )
```

(02cac7d637/includes/class-wc-post-types.php (L268))

`update_option()` shouldn't update the option when the value hasn't changed, but in this case it is updating on every request because, when the current theme supports WC, `1` (integer) is passed to `update_option()` and this function internally compares it against the old value stored in the database which is `"1"` (string). A strict comparison (`===`) is used (f3eaddd2dc/wp-includes/option.php (L343)), so the function assumes that the value changed and proceeds with the update.

This PR fixes this problem by using the values `"yes"` and `"no"` instead of `1` and `0`.
2018-02-07 10:20:33 -02:00
Gerhard Potgieter df0970dd07 Add search label when searching via product crud helper. 2018-02-07 11:02:50 +02:00
Gerhard Potgieter f4acfc9999 Unset the s param when doing a datastore search as it will cause a double search. 2018-02-07 10:44:49 +02:00
Claudiu Lodromanean bc5faec5c0
Merge pull request #18829 from woocommerce/fix/18819
Fix partial refund handling in taxes by date report
2018-02-06 06:30:05 -08:00
Rodrigo Primo 5be9d1b118 Remove all WC tables when uninstalling the plugin
There were two outdated lists of WC tables. One used to drop tables when WC is uninstalled and another one to drop tables when a site is deleted in a multi site environment. This commit creates a new unified list of WC tables, adds the missing tables to this list and introduces a unit test that will fail if the list gets outdated.
2018-02-06 11:19:40 -02:00
Mike Jolley 8fb8039b23
Merge pull request #18818 from woocommerce/fix/prevent-unsupported-downgrade
Don't call WC_Install::install() on downgrades
2018-02-06 12:46:42 +00:00
Mike Jolley a0252af0af
Merge pull request #18511 from woocommerce/update/make-image-gallary-save-crud
Image Gallery missing CRUD calls
2018-02-06 11:38:38 +00:00
Mike Jolley bd72bf89f2 Fix partial refund handling in taxes by date report 2018-02-06 11:31:40 +00:00
Mike Jolley 815e0d14fd
Merge pull request #18816 from woocommerce/fix/18815
Use add query arg in customizer links
2018-02-06 11:10:53 +00:00
Mike Jolley 9ff0a9717f Adjust query arg 2018-02-06 11:10:28 +00:00
Mike Jolley efc698ece1
Merge pull request #18823 from nishitlangaliya/Issue-18785
rephrasing create a first product to as per suggestion ref #18785
2018-02-06 11:05:26 +00:00
Mike Jolley 0282b9a30b
Merge pull request #18825 from hoangkianh/patch-1
Catalog rows: cast min, max, and value to int
2018-02-06 11:03:00 +00:00
Anh Hoang Nguyen 0ec546427e
Catalog rows: cast min, max, and value to int 2018-02-06 14:50:23 +07:00
nishitlangaliya 70ea46d573 rephrasing create a first product to as per suggestion ref #18785 2018-02-06 06:35:15 +05:30
claudiulodro 0c98f5d874 Remove extra ?> 2018-02-05 13:10:50 -08:00
Shiva Poudel 0f8f33b645 Renamed per page option 2018-02-06 01:54:12 +05:45
Shiva Poudel cbe190172b On reload hidden columns should not be rendered 2018-02-06 01:40:45 +05:45
Shiva Poudel 5c991a6929 Load list tables before columns are rendered in screen option 2018-02-06 01:35:16 +05:45
Shiva Poudel 018da951ce Save and use the per page screen option value for API Keys 2018-02-06 01:30:12 +05:45
Shiva Poudel ccc10083fe Save and use the per page screen option value in webhook 2018-02-06 01:22:09 +05:45
Shiva Poudel 8a35c8fc23 Fix - Incorrect action as it was filter hook 2018-02-06 01:15:47 +05:45
Shiva Poudel 750e0e78e4 PHPCS fixes 2018-02-06 01:13:26 +05:45
Shiva Poudel 29ce5bf3c3 Action to load stuffs into memory for use 2018-02-06 01:11:38 +05:45
Mike Jolley 0ad37a6426 Use add query arg in customizer links 2018-02-05 17:10:39 +00:00
Rodrigo Primo 13f703fd32 Don't call WC_Install::install() on downgrades
WC doesn't support downgrades but the if condition that decides whether or not to call WC_Install::install() and apply database schema changes was checking if the WC version stored in the database is equal to the WC version in the code. This commit changes the check performed inside the if condition to verify if the WC version stored in the database is smaller than the version in the code. This way `dbDelta()` won't be called automatically by WC and revert database schema changes. This is particulary important for clustered providers where the version of the WC code running in one of the containers could be outdated and trigger a database downgrade.
2018-02-05 14:40:51 -02:00
Rodrigo Primo 13351b3d75 phpcs fixes
Removed the print_r() call as phpcs was complaining about it and there is no need to output the version values as phpunit will do that if the test fails.
2018-02-05 14:40:36 -02:00
Claudio Sanches 67e56a7243
Merge pull request #18813 from woocommerce/fix/18796-textdomains
Fix esc_attr/esc_html usage
2018-02-05 13:18:00 -02:00
Claudio Sanches f0b99b3f0d
Merge pull request #18812 from woocommerce/update/18802
Tweak customer text
2018-02-05 13:14:16 -02:00
Mike Jolley e36c05b1d5 Fix esc_attr/esc_html usage 2018-02-05 14:54:18 +00:00
Mike Jolley 00c43e76c1 Tweak customer text 2018-02-05 14:47:12 +00:00
Mike Jolley d674aa71aa Fix import placeholder lookup 2018-02-05 14:33:34 +00:00
Mike Jolley b46ce1c366
Merge pull request #18796 from woocommerce/fix/18795-coupon-editing
Allow removing coupons on editable orders only
2018-02-05 11:23:03 +00:00
Mike Jolley eb7f1f1daf
Merge pull request #18794 from woocommerce/fix/18791-store-notice-alert
Add notice for moved store notice setting
2018-02-05 11:18:02 +00:00
Caleb Burks 9c3611624c Remove extra CSS padding 2018-02-02 22:19:07 -05:00
Caleb Burks 02952bd0a3 Allow removing coupons on editable orders only 2018-02-02 21:59:09 -05:00
claudiulodro 56230e9189 Refactor to handle percents with comma separators 2018-02-02 11:45:23 -08:00
Caleb Burks 9d062f8d82 Add notice for moved store notice setting 2018-02-02 14:32:37 -05:00
claudiulodro 680b8b6b01 Fix bulk sale/regular price percentage handling 2018-02-02 10:52:24 -08:00
Claudiu Lodromanean 8579c1fecc
Merge pull request #18782 from woocommerce/update/18757
Use CRUD search helper in admin products table
2018-02-02 09:59:49 -08:00
Claudio Sanches 6fc707bacc Merge branch 'cmmarslender-feature/network-order-widget' 2018-02-02 14:47:16 -02:00
Claudio Sanches 9c39dd34cc Merge branch 'feature/network-order-widget' of https://github.com/cmmarslender/woocommerce into cmmarslender-feature/network-order-widget 2018-02-02 14:46:51 -02:00
Claudio Sanches 9c6141b6f6
Merge pull request #18066 from woocommerce/fix/legacy-api-notice
Updated API settings making clear that is from our legacy REST API
2018-02-02 14:42:32 -02:00
Claudio Sanches 2321e8bdc1 Properly deprecated WC_Admin_List_Table_Products->sku_search() 2018-02-02 14:24:18 -02:00
Claudiu Lodromanean ea11ed8b10
Merge pull request #18767 from woocommerce/fix/18738
Make "ID: " translatable
2018-02-02 08:20:10 -08:00
Claudio Sanches 0755038e8d
Merge pull request #18505 from liquidweb/feature/post-system-status-tool-hook
Add a hook after executing a REST system status tool
2018-02-02 14:19:03 -02:00
Claudio Sanches fceca66770 Fixed coding standards 2018-02-02 14:09:47 -02:00
Claudio Sanches bb8f4f0139 Fixed translators notation 2018-02-02 14:05:49 -02:00
Mike Jolley 59d38b5a85 Handle no results 2018-02-02 15:13:37 +00:00
Mike Jolley 6047322c52 Rather than query products by a SKU, use the CRUD search helper. 2018-02-02 15:11:23 +00:00
Jeffrey Pearce 4d2846ebdf Updates Flexslider to version 2.7.0
- Fixes RTL logic.
2018-02-02 13:56:02 +02:00
Gerhard Potgieter 94640ef5af Add back wc_get_product 2018-02-02 12:58:05 +02:00
Gerhard Potgieter fa7fd2228c Add check that product is not false before calling methods in if. 2018-02-02 12:56:24 +02:00
Claudio Sanches 36963afe99 Make "ID: " translatable
Ref #18738
2018-02-01 19:09:04 -02:00
Mike Jolley 98b24fdc31 Include parent ID when searching for SKUs 2018-02-01 17:31:40 +00:00
Mike Jolley 997e8aefde Typecast sizes to int and avoid 9999999999 2018-02-01 17:13:05 +00:00
Mike Jolley 40098feb3c Prevent regen if not cropping and height mismatches 2018-02-01 17:13:05 +00:00
Mike Jolley c9789a4743 Default should be 1:1 2018-02-01 17:13:05 +00:00
Mike Jolley db54911443
Merge pull request #18752 from woocommerce/refactor/background-processing
Introduced new WC_Background_Process abstract class
2018-02-01 16:18:56 +00:00
Claudio Sanches c4da47f8ad Fixed coding standards 2018-02-01 13:53:29 -02:00
Claudio Sanches 1dc56f5ef9 Fixed missing default value #18753 2018-02-01 13:52:05 -02:00
Claudio Sanches 9a202f93c1
Merge pull request #18756 from Drivingralle/patch-5
Pass on default single_select_page setting field value into output
2018-02-01 13:51:13 -02:00
Ralf Wiechers f098f4edb8
Pass on default single_select_page setting field value into output
Addition to #18753
2018-02-01 15:52:32 +01:00
Ralf Wiechers c6839e7962
Default value for single_select_country and multi_select_countries settings field not passed into output
Fix #18753
2018-02-01 15:45:38 +01:00
Mike Jolley 974ff71129
Merge pull request #18747 from woocommerce/fix/woocommerce_content
Was missing  wc_get_loop_prop check like the main archive
2018-02-01 14:34:25 +00:00
Mike Jolley add3ca3bea This removes pagination and products from display for themes not using wc_get_loop_prop in their product loops. 2018-02-01 14:31:00 +00:00
Mike Jolley 8bd5d908b0
Merge pull request #18744 from woocommerce/fix/18733
Show category description on supported theme archives.
2018-02-01 14:17:20 +00:00
Claudio Sanches 6ce1bb36b0 Applied new kill_process() method into WC_Regenerate_Images 2018-02-01 12:03:28 -02:00
Claudio Sanches 7615783980 Introduced new methods into WC_Background_Process to complete clean process 2018-02-01 12:02:03 -02:00
Claudio Sanches d74d664f79 Fixed includes 2018-02-01 11:52:14 -02:00
Claudio Sanches b811dbbaec Applied new WC_Background_Process class 2018-02-01 11:42:34 -02:00
Claudio Sanches 37d25dfaec Introduced new WC_Background_Process abstract class 2018-02-01 11:42:13 -02:00
Claudio Sanches e57e38508b Restored background processing library classes 2018-02-01 11:34:03 -02:00
Mike Jolley 00d16dce0e Was missing wc_get_loop_prop check like the main archive 2018-02-01 13:22:50 +00:00
Mike Jolley 5bea7de93c
Merge pull request #18743 from woocommerce/fix/unsupported-theme-homepage-pagination
Fix shop on homepage with unsupported themes
2018-02-01 12:45:17 +00:00
Mike Jolley b499148a35
Merge pull request #18729 from woocommerce/fix/customizerrows
Dont show row settings if something is managing products per page
2018-02-01 12:42:14 +00:00
Mike Jolley e787a0bf99 Show category description on supported theme archives. 2018-02-01 11:49:19 +00:00
Mike Jolley 2ed9691c14 Fix shop on homepage with unsupported themes 2018-02-01 11:15:46 +00:00
Caleb Burks 9aa4d81084 Add product ID to row actions 2018-02-01 01:01:49 -05:00
claudiulodro 14fa87ab1f Dont show row settings if something is managing the number of products per page 2018-01-31 15:50:48 -08:00
Mike Jolley 9b22357d26 Prevent regular pagination showing on archives for unsupported themes. 2018-01-31 23:42:08 +00:00
Mike Jolley 2d8d5f3fdb
Merge pull request #18726 from woocommerce/fix/theme-compat
Theme compat updates
2018-01-31 22:29:08 +00:00
Mike Jolley b9b07faa77
Merge pull request #18724 from woocommerce/fix/18722
Move filter for image resize to allow preventing regeneration better
2018-01-31 22:04:37 +00:00
Mike Jolley 5d11f660fe Fire hooks for pagination etc only when pagination is enabled 2018-01-31 21:46:52 +00:00
Mike Jolley fc3bf3edf2 Moved this below query to prevent subcategories display mode also showing products. 2018-01-31 21:24:14 +00:00
Mike Jolley 02cac7d637 If theme support changes, we may need to flush permalinks since some are changed based on this flag. 2018-01-31 21:23:32 +00:00
claudiulodro 67a8113f59 Move filter for image resize to allow preventing regeneration betterr 2018-01-31 13:10:56 -08:00
Mike Jolley ca4f0cf0c8 Merge branch 'master' into update/uncategorized-improvements 2018-01-31 20:28:37 +00:00
Mike Jolley 29fda455aa Remove exclude code - show it, now it's sortable 2018-01-31 20:27:15 +00:00
Mike Jolley 832d767a83 Full support for sorting 2018-01-31 20:17:06 +00:00
Claudiu Lodromanean fa7fb6061f
Merge pull request #18720 from woocommerce/fix/18683
Protect against theme support being defined too late
2018-01-31 11:33:33 -08:00
claudiulodro cbaa8831d5 Merge master and resolve conflicts 2018-01-31 11:24:21 -08:00
Mike Jolley 9648a72c1b Protect against theme support being defined too late 2018-01-31 19:09:26 +00:00
Claudiu Lodromanean 062bc4b1b5
Merge pull request #18701 from woocommerce/fix/18680
Revert default columns to 4
2018-01-31 11:01:22 -08:00
Claudiu Lodromanean 0886e5eab7
Merge pull request #18716 from woocommerce/fix/missing-image-size-18690
Fix product image on-the-fly generation
2018-01-31 10:50:07 -08:00
Mike Jolley e6f54912ee Merge branch 'master' into fix/18680 2018-01-31 17:56:46 +00:00
Mike Jolley 1f2046a3e3 Revert columns to 4 2018-01-31 17:55:17 +00:00
Mike Jolley 79dba98b3f maybe_resize_image fix 2018-01-31 17:43:39 +00:00
Claudiu Lodromanean de6e8135d0
Merge pull request #18713 from woocommerce/fix/18695
Fixed missing user_id in webhook migration script
2018-01-31 09:42:18 -08:00
Claudio Sanches da8fdc0c91 Include "translators" notation #18671 2018-01-31 15:25:38 -02:00
Claudio Sanches 18b91a041d
Merge pull request #18671 from shoheitanaka/patch-11
Fix : Argument swapping at sprintf
2018-01-31 15:23:37 -02:00
Chunkford af01745787
Update wc-cart-functions.php 2018-01-31 17:11:21 +00:00
Claudio Sanches 5533f85450 Fixed missing user_id in webhook migration script
Closes #18695
2018-01-31 15:09:21 -02:00
Mike Jolley 586619b136 merge the loop, don't bail 2018-01-31 16:44:50 +00:00
Mike Jolley 40c59d31f2 Merge branch 'master' into fix/18674 2018-01-31 16:29:08 +00:00
Claudiu Lodromanean c28e2e2de5
Merge pull request #18706 from woocommerce/update/uncategorized
Uncategorized tweaks
2018-01-31 08:16:51 -08:00
Claudiu Lodromanean 2936daaf89
Merge pull request #18700 from woocommerce/update/18687
Before getting wc_get_loop_prop, setup the loop.
2018-01-31 07:53:47 -08:00
Claudiu Lodromanean c7c4ec93d9
Merge pull request #18698 from woocommerce/fix/order-screen-ajax-referer
Ensure the table handler is only loaded once. Prevents multiple loads if a plugin calls check_ajax_referer many times.
2018-01-31 07:47:27 -08:00
Mike Jolley a8cc6c8871 Remove deprecation notice 2018-01-31 15:46:47 +00:00
Mike Jolley 5a4cc2d46c Update comment. 2018-01-31 15:35:25 +00:00
Mike Jolley a370a4c12a
Merge pull request #18693 from woocommerce/fix/18692
Webhooks API error checking
2018-01-31 14:53:49 +00:00
Mike Jolley b8df0ea474 Hide uncategorized from store by default. 2018-01-31 13:37:23 +00:00
Mike Jolley 6f6ddf2eeb Prevent uncategorized from being sorted. it's always top of the list. 2018-01-31 13:34:55 +00:00
Rodrigo Primo 211ec9b896 phpcs fixes 2018-01-31 11:22:33 -02:00
Jason Kytros 55c664d2d7 Remove filter 'woocommerce_order_item_product' from class-wc-structured-data.php 2018-01-31 14:53:44 +02:00
Mike Jolley 33ec416214 On update, set woocommerce_catalog_columns to old default of 4 2018-01-31 12:33:30 +00:00
Chunkford afb21dda06
Update wc-cart-functions.php 2018-01-31 12:02:59 +00:00
Mike Jolley 0f33d446e3 Before getting wc_get_loop_prop, setup the loop.
Closes #18687
2018-01-31 11:59:40 +00:00
Chunkford 4af291c38c
Update wc-cart-functions.php
Alteration to the proposed changes to take into account free shipping so the price isn't displayed
2018-01-31 11:58:37 +00:00
Mike Jolley 57c00701e6 Ensure the table handler is only loaded once. Prevents multiple loads if a plugin calls check_ajax_referer many times. 2018-01-31 11:30:10 +00:00
Mike Jolley b230d6be4c Error checking 2018-01-31 10:40:06 +00:00
Gerhard Potgieter a0b89fdda3 PHPCS fixes 2018-01-31 08:07:27 +02:00
Gerhard Potgieter 6a7f00ce89 Fix grammer 2018-01-31 08:06:51 +02:00
Claudiu Lodromanean de4cd97b00
Merge pull request #18659 from woocommerce/fix/rest-api-typos
[REST API] Fixed typos in products schema
2018-01-30 17:37:31 -08:00
Mike Jolley 96982cd318 Min columns must be 1, not 0 2018-01-30 23:32:52 +00:00
Mike Jolley 81c8aba8c9 Add woocommerce_output_product_categories so we can handle legacy templates. 2018-01-30 23:24:26 +00:00
Shohei Tanaka 78e41d225a
Fix : Argument swapping at sprintf
change the arguments from %s to %1$s and %2$s.
2018-01-31 05:50:56 +09:00
Rodrigo Primo 538ee2097c
Merge pull request #18594 from alexminza/master
Added support for additional HTML5 input types for settings/checkout forms
2018-01-30 17:33:13 -02:00
Rodrigo Primo 7255855789
Merge pull request #18655 from woocommerce/fix/17761-tables
Fix table styling in mobile
2018-01-30 17:08:13 -02:00
Claudio Sanches e6597cd351 Fixed coding standards 2018-01-30 15:05:25 -02:00
Claudio Sanches 05a80e2d4f [REST API] Fixed typos on products schema 2018-01-30 15:03:01 -02:00
Claudiu Lodromanean 30c612643c
Merge pull request #18656 from woocommerce/fix/18653
Increase precision from 4 to 6
2018-01-30 07:32:56 -08:00
Mike Jolley c8b14b6f76 Increase precision from 4 to 6 2018-01-30 15:00:53 +00:00
Claudiu Lodromanean 94caad1af3
Merge pull request #18651 from woocommerce/fix/18645-cast-multiselect-values
Cast multiselect keys as strings
2018-01-30 06:16:47 -08:00
claudiulodro 141aeaa1b3 Fix spacing 2018-01-30 06:15:30 -08:00
Claudiu Lodromanean 85d9631714
Merge pull request #18649 from woocommerce/fix/18643
Remove kses from before/after attribute
2018-01-30 06:13:27 -08:00
Mike Jolley 341dfe1e7b Fix table styling in mobile 2018-01-30 13:24:59 +00:00
Gerhard Potgieter e041136974 Cast multiselect keys as strings since html does not know anything about integers. 2018-01-30 14:03:28 +02:00
Mike Jolley 057b40e044 Remove kses from before/after attribute
Closes #18643
2018-01-30 11:45:00 +00:00
Rodrigo Primo 2feacfb47a Display whether or not external object cache is enabled
This commit adds a new line to the section "WordPress environment" of the system status page to indicate whether or not WP external object cache is enabled.
2018-01-29 15:56:01 -02:00
Rodrigo Primo 75fc594013 Manually fix coding standard violations that can't be fixed with phpcbf 2018-01-29 15:55:43 -02:00
Rodrigo Primo a15ecc1601 Automatically fix coding standard violations using phpcbf 2018-01-29 15:53:54 -02:00
Mike Jolley 2563728edd Store attachment ID 2018-01-29 17:15:14 +00:00
Boro Sitnikovski a03bdc27ed Bail out earlier 2018-01-29 17:03:34 +00:00
Boro Sitnikovski 906084d2e9 Make param 3 optional and skip if it's not available for WP compat 2018-01-29 17:03:34 +00:00
Claudiu Lodromanean 183a00503a
Merge pull request #18639 from woocommerce/update/shipping-method-wildcard-wording
Update help text for shipping wildcards. Update to #18611
2018-01-29 08:17:36 -08:00
Claudiu Lodromanean 1fc3a71e76
Merge pull request #18625 from pmgarman/patch-3
Return amount refunded as a float
2018-01-29 08:01:43 -08:00
Claudiu Lodromanean 2cdffd538c
Merge pull request #18636 from MechielCouvaras/patch-2
Update Klarna URLs to relevant versions
2018-01-29 07:45:38 -08:00
Gerhard Potgieter 3e14fd41c4 Update help text for shipping wildcards. Update to #18611 2018-01-29 17:32:55 +02:00
Claudio Sanches b1b12fc50b
Merge pull request #18606 from woocommerce/update/dont-use-wccom-hosted-image
Serve WC core copy of the WC logo instead of WC.com copy
2018-01-29 13:20:24 -02:00
Mike Jolley 46f9e00497 Tweak paypal seller protection text
Closes #18632
2018-01-29 14:43:25 +00:00
Mechiel Couvaras 8d6f434ba0
Update Klarna URL to relevant versions
Updating Klarna URL to point to the relevant product page (region specific) on WooCommerce.com
2018-01-29 15:40:53 +02:00
Patrick Garman fd3a39345f
Return amount refunded as a float
An amount refunded should be numeric, I was receiving pHP notices that a non numeric value was encountered. Seems this is something potentially new as of PHP 7.1? Is there any reason we should **not** return a float here? Any null or empty response from the SQL query would be 0, which would still be accurate for the total that was refunded for that order.

```2018/01/27 16:50:50 [error] 46797#0: *2930 FastCGI sent in stderr: "PHP message: PHP Warning:  A non-numeric value encountered in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php on line 212
PHP message: PHP Stack trace:
PHP message: PHP   1. include() /cms/wp-admin/post.php:174
PHP message: PHP   2. do_meta_boxes() /cms/wp-admin/edit-form-advanced.php:714
PHP message: PHP   3. WC_Meta_Box_Order_Items::output() /cms/wp-admin/includes/template.php:1063
PHP message: PHP   4. include() /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:41```
2018-01-27 17:07:20 -06:00
Chunkford e831406d9f
Display zero value when using shipping classes
When offering free shipping on certain products via a shipping class, the price (albeit zero value) isn't shown to the end user.
https://www.screencast.com/t/8oT7maIftTZo

It makes for a better user experience to actually show the 0.00 price to ensure there isn't any doubt.
https://www.screencast.com/t/mkrKWNItrI5r
2018-01-27 13:25:24 +00:00
Rodrigo Primo 9c4c006baa Fix: set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
This commit fixes a bug in WC_Customer_Download_Data_Store::get_downloads() that made impossible to change the order in which the query returned the results. This method accepts the arguments `order_by` and `order` but it was ignoring them and always using the default values ('permission_id' and 'ASC' respectively).

One of the assertions of the WC_Customer_Download_Data_Store::get_downloads() test method was modified to make sure the code now works.

This bug was introduced by commit a443419.
2018-01-26 15:55:13 -02:00
Claudiu Lodromanean 021734d97b
Merge pull request #18619 from woocommerce/fix/18607
Correctly sanitize posted attributes when JS is off.
2018-01-26 08:24:21 -08:00
Mike Jolley e56b007af1 Correctly sanitize posted attributes when JS is off. 2018-01-26 16:11:53 +00:00
Claudiu Lodromanean 1627cbd8eb
Merge pull request #18618 from woocommerce/fix/18613
Cast min, max, and value to int
2018-01-26 07:58:30 -08:00
Claudiu Lodromanean 3f5d82b4c4
Merge pull request #18617 from woocommerce/fix/18615
Enforce columns in shortcodes
2018-01-26 07:56:32 -08:00
Mike Jolley 2d952b1597 base 10 2018-01-26 15:54:34 +00:00
Mike Jolley 36bce5f939 Cast min, max, and value to int
Fixes #18613
2018-01-26 15:53:23 +00:00
Claudiu Lodromanean 18f9bb408f
Merge pull request #18604 from woocommerce/update/thumbnails
Tweak thumbnails + intermediate sizes
2018-01-26 07:47:56 -08:00
Mike Jolley 4378bd6df1 Enforce columns in shortcodes 2018-01-26 15:15:06 +00:00
Mike Jolley a5a3f2149b Regen missing images 2018-01-26 14:54:26 +00:00
Mike Jolley 4edd65c124 1 resize per batch 2018-01-26 14:31:27 +00:00
Mike Jolley 06e84b7af3 Merge image meta data 2018-01-26 13:35:11 +00:00
Mike Jolley 4a3124ba46 Update batch per task 2018-01-26 12:36:07 +00:00
Mike Jolley 626b8baebc MAGICK_THREAD_LIMIT fix for timeouts 2018-01-26 12:17:41 +00:00
Gerhard Potgieter 97ca671efa Validating user usage limit should check that of customer and not logged in user when applying coupons in admin area. 2018-01-26 12:37:23 +02:00
Gerhard Potgieter 057c87c457 Add missing woocommerce_update_options_ action for settings classes save methods overridden from parent. 2018-01-26 11:22:09 +02:00
Claudiu Lodromanean be7ad7f234
Merge pull request #18599 from woocommerce/fix/18573
[REST API] Refund line items are read-only
2018-01-25 11:34:30 -08:00
Rodrigo Primo 52eb803e81 Serve WC core copy of the WC logo instead of WC.com copy
This commit changes the URL of the WC logo displayed in the WooCommerce.com Subscriptions page inside WooCommerce admin to use an image served from WC core instead of WC.com.
2018-01-25 16:46:31 -02:00
Rodrigo Primo 526db5faf8 PHPCS fixes 2018-01-25 16:43:07 -02:00
Mike Jolley 674145a2e7 Tweak intermediate sizes 2018-01-25 17:27:50 +00:00
Mike Jolley ebde2d64fb phpcs 2018-01-25 17:03:54 +00:00
Mike Jolley 6e83fcec50 Sizes for 3 cols default 2018-01-25 17:03:01 +00:00
Claudio Sanches 47883d89ab Coding standards 2018-01-25 14:04:11 -02:00
Claudio Sanches e8b8e87cae [REST API] Refund line items are read-only
Closes #18573
2018-01-25 14:02:31 -02:00
Claudiu Lodromanean eade481164
Merge pull request #18592 from woocommerce/update/18586
Customizer tweaks
2018-01-25 07:54:38 -08:00
Mike Jolley 76a37fa0d2 Feedback 2018-01-25 15:14:02 +00:00
Mike Jolley de4ff9742c Revert debug code 2018-01-25 15:06:12 +00:00
Mike Jolley e0f8ff8f39 Revert "Prevent timeouts with option + reduce number of thumbnails generated by script"
This reverts commit a4b6110990.
2018-01-25 15:05:04 +00:00
Mike Jolley a4b6110990 Prevent timeouts with option + reduce number of thumbnails generated by script 2018-01-25 15:04:55 +00:00
Mike Jolley c7ccc93a69 Prevent timeouts with option + reduce number of thumbnails generated by script 2018-01-25 15:02:33 +00:00
Manos Psychogyiopoulos e5fe92778c Close optgroup :) 2018-01-25 16:56:16 +02:00
Manos Psychogyiopoulos 690c7a9753 Check if paying for an existing order before looking at cart contents
Resolves a bug causing this logic to ignore the `order-pay` query var presence if the cart is populated with items.
2018-01-25 16:42:54 +02:00
Manos Psychogyiopoulos d10987d813 Match saved (canonical) rate IDs against chosen rates
Generates canonical rate IDs (`method_id:instance_id`) from package rates and order shipping line items.

Requires https://github.com/woocommerce/woocommerce/pull/18483
2018-01-25 16:40:31 +02:00
Manos Psychogyiopoulos d86a948f04 Add method instances in COD, grouped by method 2018-01-25 16:37:10 +02:00
Manos Psychogyiopoulos 3dc5f2a277 Allow optgroup in settings multiselect fields 2018-01-25 16:35:30 +02:00
Alexander Minza 519bfadc63 Added support for additional HTML5 input types 2018-01-25 15:14:30 +02:00
Mike Jolley e2d553fb61
Merge pull request #18588 from woocommerce/fix/setup-wizard-copy-and-style-tweaks-for-wc-3-3
Setup wizard: various style and copy tweaks
2018-01-25 12:59:52 +00:00
Mike Jolley e85338d8d3 Import ratio from old settings 2018-01-25 12:34:28 +00:00
Mike Jolley 9b155d53d4 Feedback; show panels at all times and redirect to store. 2018-01-25 11:48:45 +00:00
Mike Jolley 845c667e77 phpcs 2018-01-25 11:38:05 +00:00
Gerhard Potgieter 18600e1d2f Add limit and expiry to get_downloads, cater for empty strings expiry and limit setters 2018-01-25 11:28:12 +02:00
Gerhard Potgieter 5ef6766654 Add limit and expiry to data array. 2018-01-25 11:04:45 +02:00
Gerhard Potgieter 2b44ddffc6 PHPCS fixes for WC_Product_Download class. 2018-01-25 11:03:02 +02:00
Gerhard Potgieter bdda142d24 expiry and limit getters and setters for WC_Product_Download 2018-01-25 10:57:12 +02:00
Paul Dechov 25373cadee Tweak spacing of store setup step towards original static design 2018-01-24 17:21:04 -05:00
Claudiu Lodromanean b20f9e4985
Merge pull request #18585 from woocommerce/update/18561
Ensure customer id is not empty in cookie
2018-01-24 11:54:46 -08:00
Claudiu Lodromanean 1d3a642d59
Merge pull request #18584 from woocommerce/fix/18574
Add notice for moved product display settings
2018-01-24 09:29:13 -08:00
Mike Jolley db49d9acbc
Merge pull request #18577 from woocommerce/fix/note-metadata-keys
Order: Make note of two more meta keys that we store for an order.
2018-01-24 17:28:19 +00:00
Mike Jolley 03098e7435
Merge pull request #18583 from woocommerce/fix/18567
[REST API] Prevent errors when taxonomy is unregistered
2018-01-24 17:26:50 +00:00
Mike Jolley db73de335a Add notice for moved settings 2018-01-24 17:18:28 +00:00
Claudio Sanches 1cf8dc4232 Fixed coding standards warnings with PHPCBF 2018-01-24 15:09:50 -02:00
Claudio Sanches 75de578d38 Fixed coding standards errors 2018-01-24 15:07:51 -02:00
Claudio Sanches 4536afb47c [REST API] Prevent errors when taxonomy is unregistered
Closes #18567
2018-01-24 15:04:32 -02:00
Mike Jolley f91b733a0f Make compound rates stack 2018-01-24 16:26:44 +00:00
Paul Dechov 98fe2c7c3e Remove newline and whitespace from dropdown option tooltips 2018-01-24 10:31:16 -05:00
Mike Jolley c27df5833f
Merge pull request #18556 from woocommerce/tweak/hook-on-order-recalculation
Add action to hook onto for order recalculation
2018-01-24 09:06:39 +00:00
Boro Sitnikovski e684afc5e6 Update name 2018-01-24 08:46:26 +01:00
Peter Westwood 0b19427d1d Order: Make note of two more meta keys that we store for an order. 2018-01-23 19:27:20 -07:00
Steve Grunwell 16b59b60a0 Merge branch 'master' into feature/post-system-status-tool-hook 2018-01-24 01:45:44 +00:00
Paul Dechov e5d00fa98e Fix payment addons link again 2018-01-23 18:25:44 -05:00
Paul Dechov 7f973c2c79 Tweak Activate step lower heading to reflect listing of features of above 2018-01-23 18:20:47 -05:00
Paul Dechov 591dd9ec2d Clarify 'payments' (in WCS feature list) to 'payment setup' 2018-01-23 18:19:12 -05:00
Paul Dechov 4eb1c182b2 Point PPEC extension link to woocommerce.com instead of wordpress.org 2018-01-23 18:16:33 -05:00
Claudiu Lodromanean 5f613656af
Merge pull request #18564 from woocommerce/fix/18501
Move custom image sizes registration to the init hook
2018-01-23 08:17:20 -08:00
Mike Jolley 42b1ab50c0 Ensure customer id is not empty in cookie 2018-01-23 13:36:53 +00:00
Mike Jolley 1c92b970a9 Use only review count
Closes #18558
2018-01-23 11:03:30 +00:00
Tiago Noronha 149ff95e8a Move custom image sizes registration to the init hook 2018-01-23 12:56:37 +02:00
James Allan b2510773b1 On 3.3 upgrade set PayPal sandbox API credentials 2018-01-23 12:53:17 +10:00
Rodrigo Primo 1195cf9eee Improve WC_Customer_Download_Data_Store::get_downloads() performance
This commit improves WC_Customer_Download_Data_Store::get_downloads() performance by changing the way the SQL query is built. Before this change, this method would get all table fields even when just the permission_id field is returned. Now the method will get from the database only the fields that will be returned. The fields retrieved from the database can be controlled using the parameter `$args['return']`:

- 'objects' (default): all fields are retrieved from the database and an array of WC_Customer_Download objects is returned.
- 'ids': gets and return only permision_ids
- comma separated list of fields (new option added by this commit): gets and return only the required fields. Examples: 'user_email,download_id,order_id' or 'order_id,download_count'.
2018-01-22 17:25:26 -02:00
Claudiu Lodromanean 1e2cdb67ad
Merge pull request #18535 from woocommerce/update/disable-all-payment-gateways-by-default
Disable all payment gateways by default
2018-01-22 11:04:21 -08:00
Claudiu Lodromanean 34710ba5f1
Merge pull request #18534 from woocommerce/fix/children-when-swapping-type
Prevent grouped products showing when the type is variable
2018-01-22 11:03:30 -08:00
Rodrigo Primo 16c9bc9694 Fix PHPCS violations in class-wc-customer-download-data-store.php 2018-01-22 15:16:59 -02:00
Mike Jolley 6389f1af9a Merge branch 'fix-18452' 2018-01-22 15:43:32 +00:00
Mike Jolley 02ebd8f2ee Coding standards 2018-01-22 15:43:23 +00:00
Boro Sitnikovski af9441fea5 Add action to hook onto for order recalculation 2018-01-22 15:53:42 +01:00
Mike Jolley a8957bd7a3 Strip currency 2018-01-22 14:13:08 +00:00
Mike Jolley 3ce51d9791 JSON context 2018-01-22 14:11:43 +00:00
Mike Jolley 5bd786703e Run sanitize_callback 2018-01-22 14:09:56 +00:00
Mike Jolley 304ece0a9b phpcs 2018-01-22 12:06:31 +00:00
Mike Jolley 2298f491d1 phpcs 2018-01-22 11:33:15 +00:00
Mike Jolley 96db283ae3 phpcs 2018-01-22 11:03:13 +00:00
Mike Jolley a205eadb7e sanitize_callback 2018-01-22 10:59:25 +00:00
Mike Jolley 1ab8d795f6 phpcs 2018-01-22 10:57:55 +00:00
Konstantin Kovshenin 9a496e5d88 Helper: Fix some code problems in the connection prompt.
* Use `wc_get_screen_ids()` instead of hard-coding a list.
* Use the `$strict` param in `in_array()`
* Run the WooCommerce string through l10n to make sure we target the correct screen in non-English installs
2018-01-19 20:58:36 +03:00
Rodrigo Primo 1f39f7d633 Add filter to list of post_types used to build the query to copy _customer_user to post_author 2018-01-19 13:45:30 -02:00
Mike Jolley aa87aa0fbd phpcs 2018-01-19 15:42:48 +00:00
Mike Jolley d1269ce74f Add transient cache so we know if an order needs processing. 2018-01-19 15:14:00 +00:00
Mike Jolley 24efb439fb Order items should only save changes. 2018-01-19 14:36:08 +00:00
Mike Jolley 70e92302f5 Refactor woocommerce_wp_select so it could be used for a multiselect 2018-01-19 13:36:14 +00:00
Mike Jolley f6e0593d47 Prevent grouped products showing when the type is variable 2018-01-19 12:20:27 +00:00
Mike Jolley ff7716509e
Merge pull request #18532 from woocommerce/fix/18527-numeric-username-lookup
Ajax customer search to cater for numeric usernames
2018-01-19 10:36:26 +00:00
Gerhard Potgieter 15e77b30a1
Merge pull request #18500 from woocommerce/tweak/pay-order-stock-filter
Allow stock to be overriden by filter when paying for orders
2018-01-19 10:15:58 +02:00
Gerhard Potgieter 4ef8251750
Merge pull request #18491 from woocommerce/update/helper-text
Updates Helper text to be correct
2018-01-19 10:13:15 +02:00
Gerhard Potgieter 8e6afdfdc7 Fix indentation 2018-01-19 09:57:27 +02:00
Gerhard Potgieter b495e803e8 Reworks the ajax user lookup so it caters for numeric usernames without affecting performance of lookups by ID. 2018-01-19 09:52:05 +02:00
Paul Dechov 54fa85f388 Disable all payment gateways by default
Switches defaults for Check payments and PayPal Standard to 'no', so that no payment gateways are enabled by default before running through setup wizard.
2018-01-19 02:23:55 -05:00
Steve Grunwell 4d6a0ecb82 Merge branch 'master' into feature/post-system-status-tool-hook 2018-01-18 21:54:47 +00:00
Rodrigo Primo 250b94b0ce
Merge pull request #18524 from woocommerce/fix/18510
Saving taxes should invalidate caches.
2018-01-18 16:55:55 -02:00
Rodrigo Primo 257feb63bd Fix doc typo 2018-01-18 16:50:27 -02:00
Rodrigo Primo 54e013d5ca
Merge pull request #18492 from woocommerce/update/18447
Clear persistent cart with system status tool
2018-01-18 16:25:02 -02:00
Claudiu Lodromanean ee2a562cf0
Merge pull request #18517 from woocommerce/fix/18499
Fix undefined var.
2018-01-18 09:50:53 -08:00
Claudiu Lodromanean b6204fb7aa
Merge pull request #18518 from tyrann0us/patch-1
Remove legacy "view" key from register_post_type()
2018-01-18 09:48:31 -08:00
Mike Jolley a110180643 Saving taxes should invalidate caches. 2018-01-18 17:47:26 +00:00
Steve Grunwell 90c1a310f1 For consistency with the other endpoints, rename the 'woocommerce_rest_system_status_tool_executed' hook to 'woocommerce_rest_insert_system_status_tool'.
Reference: https://github.com/woocommerce/woocommerce/pull/18505#pullrequestreview-89828432
2018-01-18 16:59:47 +00:00
Philipp Bammes fecc0d00fd
Remove legacy "view" key from register_post_type() 2018-01-18 16:59:53 +01:00
Mike Jolley c618895ece Fix undefined var. Closes #18499 2018-01-18 15:25:27 +00:00
Manos Psychogyiopoulos e77ec2444e Add woocommerce_admin_html_order_preview_item_class filter
For parity with woocommerce_admin_html_order_item_class filter in html-order-item.php view.
2018-01-18 16:57:51 +02:00
Gerhard Potgieter 711bcf1cd7 Merge branch 'feature/product-custom-tables-supporting-changes' of github.com:woocommerce/woocommerce into feature/product-custom-tables-supporting-changes 2018-01-18 11:39:10 +02:00
Gerhard Potgieter 14af98e9c9 Add image gallery crud functionality for saving and reading using already defined crud helpers 2018-01-18 11:37:03 +02:00
Konstantin Kovshenin 3c3077d305 Helper: Prompt a Helper connection only on relevant screens.
Fixes #18452
2018-01-18 12:28:00 +03:00
Gerhard Potgieter f48985095b Update image galery to use CRUD and not directly meta_data calls 2018-01-18 11:10:26 +02:00
Steve Grunwell cc91fba4f8 *WHITESPACE ONLY* Clean up whitespace in the WC_REST_System_Status_Tools_Controller file, according to WordPress coding standards 2018-01-17 22:33:58 +00:00
Steve Grunwell ff0e200ae5 Introduce the woocommerce_rest_system_status_tool_executed action, which fires after one of the WooCommerce REST system status tools is executed. 2018-01-17 21:48:23 +00:00
Paul Dechov 3dee78ea54 Tweak variable name 2018-01-17 12:43:44 -05:00
Jonathan Belcher 77578c5509
Corrects string to use sprintf properly 2018-01-17 10:35:43 -05:00
Boro Sitnikovski 7b52082dc3 Allow stock to be overriden by filter when paying for orders 2018-01-17 14:31:56 +01:00
Paul Dechov dc884c5e2f Refactor so as to leave 'enabled' setting alone in case gateway was already enabled 2018-01-16 16:15:30 -05:00
Paul Dechov fcf3d368f2 Setup wizard: if selected, activate but disable PPEC gateway by default 2018-01-16 16:14:35 -05:00
Jonathan Belcher dbb0f6f1ef Add links to Sharing and Transferring string 2018-01-16 14:35:30 -05:00
Mike Jolley 672a31e7c6 Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-01-16 10:40:19 +00:00
Claudiu Lodromanean 3b895bd0a9
Merge pull request #18490 from woocommerce/fix/cart-hash-naming
cart_hash_key param
2018-01-15 10:13:55 -08:00
Mike Jolley 270f4c3608 Update text and clear cart meta data. 2018-01-15 17:04:50 +00:00
Jonathan Belcher 535e1c5b58
Updates Helper text to be correct 2018-01-15 11:41:32 -05:00
Claudiu Lodromanean 99f58c4c56
Merge pull request #18488 from woocommerce/fix/18474
Protocol-relative paths are absolute.
2018-01-15 08:28:42 -08:00
Mike Jolley 431b95dade cart_hash_key param 2018-01-15 16:03:27 +00:00
Mike Jolley 9a2b051d74 Relative paths are absolute. 2018-01-15 15:41:31 +00:00
Mike Jolley 93bac7ce04 Adding view_items string 2018-01-15 14:53:26 +00:00
Mike Jolley c64c726da9 Set instance id 2018-01-15 14:49:55 +00:00
Mike Jolley 054e68a047 Instance ID methods 2018-01-15 14:31:05 +00:00
Mike Jolley ad18445eeb phpcs 2018-01-15 14:28:08 +00:00
Mike Jolley 58efd51a9c phpcs 2018-01-15 12:24:05 +00:00
Shiva Poudel e17d2819ea Use dirname rather than __DIR__ and use parenthesis for WC_CLI 2018-01-15 11:06:53 +05:45
Claudio Sanches dff5fefe73
Merge pull request #18460 from woocommerce/fix/18448
Revert RTL changes in price formatting
2018-01-12 14:28:36 -02:00
Claudiu Lodromanean 544d181538
Merge pull request #18458 from woocommerce/update/storefront-wizard
Update wizard wording
2018-01-12 07:24:42 -08:00
Mike Jolley dbdc3af9e5 Tests 2018-01-12 14:20:39 +00:00
Mike Jolley 7a7995f697 Revert price formatting changes which break in RTL 2018-01-12 14:16:18 +00:00
Mike Jolley 243c664030 Wording update 2018-01-12 12:29:22 +00:00
Mike Jolley 89c888d654 phpcs 2018-01-12 11:33:26 +00:00
Claudiu Lodromanean c51f199c22
Merge pull request #18439 from ryanr14/master
Updates & renames all dummy data to sample data.
2018-01-11 08:56:11 -08:00
Ryan Ray b3af5c808d Updates & renames all dummy data to sample data. 2018-01-11 11:39:51 -05:00
Claudio Sanches c96b5e77f1
Merge pull request #18435 from shivapoudel/cli/format
Fix undefined format in WC CLI
2018-01-11 14:23:49 -02:00
Claudiu Lodromanean 466cf64db8
Merge pull request #18436 from woocommerce/fix/18288
[REST API] Handle unicode in variation attributes
2018-01-11 07:58:49 -08:00
Claudio Sanches 9ed1681f39 [REST API] Handle unicode in variation attributes
Closes #18288
2018-01-11 13:11:36 -02:00
Shiva Poudel 0856ba6376 Fix undefined format, closes #18418 2018-01-11 20:47:54 +05:45
Mike Jolley 438778f5d6 Merge remote-tracking branch 'origin/master' 2018-01-11 15:01:26 +00:00
Mike Jolley 9ac5a44d3e Merge branch 'pr/18432' 2018-01-11 15:01:18 +00:00
Mike Jolley 0363312084 spacing 2018-01-11 15:01:07 +00:00
Claudio Sanches a887b49bb4
Merge pull request #18430 from woocommerce/update/18405
Add new `$order->get_edit_order_url()` method.
2018-01-11 12:34:41 -02:00
Claudio Sanches 45dfb7d015
Merge pull request #18427 from woocommerce/fix/18426
Correct bulk edit price formatting.
2018-01-11 12:31:45 -02:00
Claudio Sanches 4586eadcd7
Merge pull request #18420 from tiagohillebrandt/master
Use table format as default.
2018-01-11 12:29:29 -02:00
Mikalai Okun 2e2e5d60e5
Updated strval() to round() 2018-01-11 08:49:54 -05:00
Mike Jolley fbbbc7a8df
Merge pull request #18406 from woocommerce/update/themenotice
Remove unsupported theme notice
2018-01-11 13:46:09 +00:00
Mike Jolley 7f626926b8
Merge pull request #18417 from liquidweb/fix/get-customer-last-order
Rewrite wc_get_customer_last_order() to leverage the customer data store
2018-01-11 13:45:11 +00:00
Mike Jolley 405c2614a8 Use new methods 2018-01-11 12:54:48 +00:00
Mike Jolley c7a3fd266c phpcs 2018-01-11 12:53:47 +00:00
Mike Jolley 16870a30e7 phpcs 2018-01-11 12:32:58 +00:00
Mike Jolley 7a50512e16 Structured data 2018-01-11 12:29:12 +00:00
Mike Jolley f1e0d4929b Implement get_edit_order_url method. 2018-01-11 12:04:39 +00:00
Mike Jolley be8bc99796
Merge pull request #18421 from shivapoudel/notice-logic
Notice logic
2018-01-11 11:32:58 +00:00
Mike Jolley c1fc8c241a Correct bulk edit price formatting. 2018-01-11 11:21:37 +00:00
Mikalai Okun cd8c09769d
Workaround for precision on floating values. 2018-01-11 01:38:36 -05:00
Shiva Poudel 7e731fa4c6 PHPCS fixes 2018-01-11 10:39:30 +05:45
Shiva Poudel 4e3317bbe6 Fix - wc_notice_count logic cont... 2018-01-11 10:32:41 +05:45
Tiago Hillebrandt 84aeb00754 Use table format as default. 2018-01-11 02:41:41 -02:00
Tiago Hillebrandt 8c4a0dfefe Use table format as default. 2018-01-10 22:32:40 -02:00
Manos Psychogyiopoulos 009a21af15 Fix exception handling in v2 update_additional_fields_for_object REST API calls 2018-01-10 20:46:02 +00:00
Steve Grunwell 493298504d Rewrite wc_get_customer_last_order() to leverage the customer data store.
The wc_get_customer_last_order() function (used by the v1 API) was performing a hard-coded SQL query against the postmeta table, regardless of the data store used by the WC_Customer class. This commit effectively makes the function act as a wrapper around WC_Customer::get_last_order().
2018-01-10 18:39:35 +00:00
claudiulodro a3d0d71cdf Deprecate theme notice 2018-01-10 09:52:52 -08:00
claudiulodro d87497962b Revert "Remove unsupported theme notice"
This reverts commit aad3792817.
2018-01-10 09:45:16 -08:00
Claudiu Lodromanean a94ef8dcdc
Merge pull request #18398 from woocommerce/fix/18360
Use intval for download limit and expiry
2018-01-10 09:42:15 -08:00
Mike Jolley fd6002511e
Merge pull request #18404 from woocommerce/fix/18362
Update billing if account form changes.
2018-01-10 17:29:58 +00:00
Mike Jolley 4ffff150b5 fix while loop 2018-01-10 17:28:26 +00:00
Claudio Sanches 8a7066e319
Merge pull request #18414 from woocommerce/fix/18412
Fix wc_notice_count logic and add test
2018-01-10 11:39:08 -02:00
Claudio Sanches 501f03e306
Merge pull request #18411 from MechielCouvaras/patch-1
Update Klarna copy in Setup Wizard
2018-01-10 11:11:41 -02:00
Claudio Sanches 76f66fdbab
Merge pull request #18413 from woocommerce/fix/18377
Rest API - Orders should be created for users who exist on the site only.
2018-01-10 11:10:24 -02:00
Mike Jolley 97673e2de8 Fix wc_notice_count logic and add test 2018-01-10 12:43:48 +00:00
Mike Jolley ee6794fb0c Orders should be created for users who exist on the site only. 2018-01-10 12:32:58 +00:00
Mechiel Couvaras 294b2cca74
Update class-wc-admin-setup-wizard.php
Update to Klarna copy as per their specification.
2018-01-10 12:42:47 +02:00
Shiva Poudel 8232d0ba74 Storefront theme as official theme 2018-01-10 15:30:03 +05:45
Andrew Minion 0b2fbe906b add file array key similar to other functions
See also https://github.com/woocommerce/woocommerce/blob/master/includes/wc-user-functions.php#L458-L461
2018-01-09 20:41:35 -05:00
claudiulodro aad3792817 Remove unsupported theme notice 2018-01-09 13:51:12 -08:00
Mike Jolley 2ca2cc0f6c Update billing if account form changes. 2018-01-09 17:50:43 +00:00
Rodrigo Primo 7f43c39f2f Bump WC version to 3.4.0 2018-01-09 15:42:13 -02:00
Rodrigo Primo bf5c6f17a7 phpcs fixes 2018-01-09 15:42:08 -02:00
Rodrigo Primo 9de8478b42 Merge branch 'master' into update/use-post-author-for-customer-id 2018-01-09 15:21:12 -02:00
Mike Jolley 2b2b73b4b7 Pass through zoom options 2018-01-09 15:44:54 +00:00
Mike Jolley fd2b830a9f Use intval for download limit and expiry 2018-01-09 10:56:57 +00:00
Mike Jolley d13dfa65c6 Remove unused code
Closes #18390
2018-01-09 09:33:16 +00:00
claudiulodro 4d370309be Change transient name 2018-01-08 13:09:50 -08:00
Claudiu Lodromanean 8f878a30ed
Merge pull request #18383 from woocommerce/update/18364
Customizer visual feedback for columns and rows
2018-01-08 12:02:43 -08:00
Shiva Poudel 3c659a44fc Include background process library (#18380)
* Include background process library

* PHPCS fixes
2018-01-08 18:57:50 +00:00
Mike Jolley 371f504964 Helpers for theme support vars and error messages. 2018-01-08 18:48:57 +00:00
claudiulodro 00372e9bb0 Remove videos from help sections 2018-01-08 10:48:25 -08:00
claudiulodro a0be4eace9 Merge remote-tracking branch 'origin/square-3.3' into HEAD 2018-01-05 11:44:45 -08:00
Paul Maiorana 00da05c437
Update description for Square per their feedback. 2018-01-05 14:31:37 -05:00
Claudiu Lodromanean 1ae74a56f8
Merge pull request #18372 from woocommerce/fix/17996
Round correctly when removing taxes from prices.
2018-01-05 11:14:30 -08:00
Claudiu Lodromanean 70294e977b
Merge pull request #18371 from woocommerce/fix/18314
Preserve seconds when saving order date.
2018-01-05 11:09:22 -08:00
Claudiu Lodromanean fe4727b593
Merge pull request #18367 from woocommerce/fix/18357
Allow quantities less than 1, but not 0.
2018-01-05 10:55:05 -08:00
claudiulodro b5271064c2 Resolve conflicts 2018-01-05 10:47:27 -08:00
Mike Jolley 856528d529
Merge pull request #18277 from woocommerce/fix/18276
Change sanitize function in product sales report filter box
2018-01-05 14:59:40 +00:00
Mike Jolley a44e4f64ac Round correctly when removing taxes from prices. 2018-01-05 14:56:33 +00:00
Mike Jolley ae723d83fd Preserve seconds when saving order date. 2018-01-05 14:44:36 +00:00
Mike Jolley 2c915ba961 Allow quantities less than 1, but not 0. 2018-01-05 12:48:24 +00:00
Mike Jolley 14afff129c Add appropriate column widths and fix up price method for consistentcy. 2018-01-05 12:23:08 +00:00
Claudiu Lodromanean ae9a98b0a0
Merge pull request #18356 from woocommerce/fix/archive-links
Post types with no archives should not show in breadcrumb.
2018-01-04 08:17:30 -08:00
Mike Jolley 613adb0c07 Post types with no archives should not show in breadcrumb. 2018-01-04 12:09:11 +00:00
claudiulodro cdad70a6b1 Safety first 2018-01-03 13:40:51 -08:00
claudiulodro afdc737ec5 Ajax add to cart button shortcode fix for variations 2018-01-03 13:38:06 -08:00
Claudiu Lodromanean 06a4bfe2af
Merge pull request #18347 from woocommerce/update/remove-unused-variable
Remove two unused variables
2018-01-03 11:13:38 -08:00
claudiulodro d2618c2330 Merge remote-tracking branch 'origin/master' into HEAD 2018-01-03 10:13:23 -08:00
claudiulodro 646caf5753 Tweaks for variation reports 2018-01-03 10:09:53 -08:00
Rodrigo Primo aad2c83994 Remove unused variables
This commit removes two unused variables from WC_Product_Data_Store_CPT class.
2018-01-03 16:00:28 -02:00
Rodrigo Primo 22f1e549ef Manually fixes remaining coding standard violations 2018-01-03 15:57:33 -02:00
Claudiu Lodromanean 14c2180928
Merge pull request #18279 from woocommerce/fix/setup-wizard-service-style-tweak
Setup wizard: adjust styling for service child elements
2018-01-03 09:38:28 -08:00
Rodrigo Primo a2b8e38a61 Fix coding standards violations automatically using phpcbf 2018-01-03 15:27:48 -02:00
Claudiu Lodromanean e15f267270
Merge pull request #18335 from woocommerce/fix/18328
Product downloads - API and download check fixes
2018-01-03 09:14:26 -08:00
Mike Jolley 9e4f296983 One save call 2018-01-03 16:15:04 +00:00
Mike Jolley 73d0c1062c Allow transactions to be forced on 2018-01-03 16:13:08 +00:00
Mike Jolley 7f18e15ff6 Transactions break unit tests 2018-01-03 15:47:55 +00:00
Paul Dechov e03f0c201f Align service name logos to top, and adjust padding 2018-01-03 10:43:26 -05:00
Mike Jolley 5eb4ed9b64
Merge pull request #18307 from unfulvio/issue-18223-transient
[#18223] Store related posts query arguments in transient
2018-01-03 11:47:15 +00:00
Mike Jolley 89c1f83f70 Merge branch 'master' into update/17252 2018-01-03 11:44:28 +00:00
Mike Jolley 800b4feba1
Merge pull request #18252 from shivapoudel/frontend-session
Only load session handler class on frontend not during cron
2018-01-03 11:19:23 +00:00
Mike Jolley effbf87e22 API should generate or set file ID when setting downloads. Closes #18330 2018-01-03 11:02:38 +00:00
Mike Jolley 3459f83a9d When serving downloads, ensure order/key are set and valid. Fixes #18328 2018-01-03 10:55:57 +00:00
Mike Jolley e1a82a4127 Add nonce to both panels. Closes #18333 2018-01-03 10:37:07 +00:00
Claudiu Lodromanean 373ff64ff8
Merge pull request #18315 from alexminza/master
Fixed Moldova states, added Moldova information for the installer
2018-01-02 14:31:30 -08:00
Claudiu Lodromanean 09f9d86786
Merge pull request #18327 from woocommerce/fix/default-columns-isset
Fix default columns isset check
2018-01-02 11:51:00 -08:00
Claudiu Lodromanean e17dcdf81f
Merge pull request #18297 from macbookandrew/improve-blank-state
add button for creating coupons to coupon blank state
2018-01-02 11:45:28 -08:00
Tiago Noronha ece1963e66 Fix default columns isset check. 2018-01-02 19:27:28 +00:00
Andrew Minion 785641ef3c update link to match rest of codebase 2018-01-02 14:05:47 -05:00
Claudiu Lodromanean de71c92fa0
Merge pull request #18278 from woocommerce/fix/setup-wizard-ppec-api-subject-set-when-unchecked
Setup wizard: don't set PPEC "API Subject" when WCS rerouting is unchecked
2018-01-02 10:39:35 -08:00
Claudiu Lodromanean 6db59dbc91
Merge pull request #18283 from WPprodigy/fix-set-orderby-default
Set default catalog_orderby in customizer
2018-01-02 10:34:18 -08:00
Claudiu Lodromanean 9937edc292
Merge pull request #18285 from WPprodigy/add-filter-woocommerce_loop_product_link
Add woocommerce_loop_product_link filter
2018-01-02 10:11:18 -08:00
Claudiu Lodromanean c52563f558
Merge pull request #18319 from pathurs/patch-1
Geolocation: Remove port from string before checking IP
2018-01-02 10:06:49 -08:00
Claudiu Lodromanean 8d78287da4
Merge pull request #18284 from WPprodigy/update-docs-for-layerednav-function
Update docs.
2018-01-02 09:33:27 -08:00
Claudiu Lodromanean 5382134041
Merge pull request #18306 from unfulvio/issue-18223-filter-related-products
[#18223] Filter results for related products
2018-01-02 08:58:23 -08:00
Claudiu Lodromanean f56fff18d9
Merge pull request #18322 from woocommerce/fix/importer-file-names
Importer file names
2018-01-02 08:10:20 -08:00
Mike Jolley 4e996ce268 Check for mb_detect_encoding support 2018-01-02 13:55:11 +00:00
Mike Jolley 5aee9f973c Append timestamp to filename 2018-01-02 13:29:23 +00:00
Mike Jolley 46c51bb3a6 Allow filename to be set from javascript 2018-01-02 13:16:43 +00:00
Mike Jolley 1a65aed0d9 Merge branch 'pr/18272' 2018-01-02 11:57:45 +00:00
Mike Jolley da281d21ab Keep product check 2018-01-02 11:57:29 +00:00
Mike Jolley 3defa83a81 Missing spaces between city and state.
Closes #18305
2018-01-02 11:45:56 +00:00
Pathurs 119d3485b1
Remove port from string before checking IP
Fix a bug where if `$_['HTTP_X_FORWARDED_FOR']` contains a port, an `rest_is_ip_address()` returns `bool(false)`.

WooCommerce Version: 3.1.2

Observed results of functions and variables:
```
WC_Geolocation::get_ip_address())	                                  string(0) ""
$_SERVER['X-Real-IP']	                                              string(7) "Not set"
$_SERVER['HTTP_X_FORWARDED_FOR']	                                  string(18) "203.41.99.98:50986"
trim( current( explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) )	  string(18) "203.41.99.98:50986"
$_SERVER['REMOTE_ADDR']	                                              string(12) "203.41.99.98"
```

Old result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(0) "" ["state"]=> string(0) "" }```

New result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(2) "AU" ["state"]=> string(0) "" }```
2018-01-02 11:54:26 +11:00
Alexander Minza 2307febfa1 Fixed Moldova states 2017-12-30 14:34:12 +02:00
Fulvio Notarstefano b8beb703ef [#18223] Filter results for related products 2017-12-29 12:18:50 +08:00
Fulvio Notarstefano 3045e01f4e [#18223] Store related posts query arguments in transient 2017-12-29 12:12:26 +08:00
Andrew Minion 40d9efc4b8 add button for creating coupons to coupon blank state
Makes it more user-friendly for someone unfamiliar with WordPress/WooCommerce, and even for those who are familiar and don’t immediately see the typical “Add Coupon” button in the top left corner by the header.
2017-12-27 11:53:20 -05:00
Caleb Burks 0192fb9ef0 Add woocommerce_loop_product_link filter 2017-12-25 02:20:40 -06:00
Caleb Burks 2b4a756438 Update docs. 2017-12-25 02:16:10 -06:00
Caleb Burks 54fd171f04 Set default catalog_orderby in customizer 2017-12-24 23:39:44 -06:00
Paul Dechov a87183503f Fix api_subject option being set even when reroute_requests unchecked 2017-12-22 14:57:50 -05:00
Claudiu Lodromanean eb60a17818
Merge pull request #18265 from Miller-Media/millermedia/scheduled_sales_actions
Added actions before & after scheduled sales initiation and completion
2017-12-22 10:23:02 -08:00
Matt Miller 69d9f1f6ff Updated spacing 2017-12-22 09:58:05 -08:00
claudiulodro 611ca58d09 Change sanitize function 2017-12-22 09:46:57 -08:00
Claudiu Lodromanean 20f698db2b
Merge pull request #18219 from woocommerce/fix/18197
Compare the date modified when loading session data.
2017-12-22 08:17:14 -08:00
Jason Kytros a21ada68cd Fix coupon 'Excluded Categories' restriction evaluation 2017-12-22 11:21:47 +02:00
Claudio Sanches d69f67bfd5 Auto fixed minor coding standards with PHPCBF 2017-12-21 18:18:04 -02:00
Claudio Sanches 514087e4aa Fixed coding standards 2017-12-21 18:10:55 -02:00
Claudio Sanches 2198eb136c Remove Postcode from Suriname 2017-12-21 17:49:56 -02:00
Claudio Sanches 2f1c00b773
Merge pull request #18256 from woocommerce/fix/18246
Use text color for email links
2017-12-21 17:34:38 -02:00
Claudio Sanches 1d132b8b9d
Merge pull request #18263 from woocommerce/fix/18244
Process embed shortcode in short description
2017-12-21 17:27:34 -02:00
claudiulodro 2d88654a0a Always use contrasting color for links 2017-12-21 11:14:14 -08:00
Mike Jolley e9105bd37d Fix tests 2017-12-21 19:00:55 +00:00
claudiulodro 90dd9179ac Remove duplicate unautop 2017-12-21 10:43:02 -08:00
Matt Miller 4b83514e28 Added actions before and after the scheduled sales initiation and completion 2017-12-21 10:33:08 -08:00
claudiulodro 9dc9fffc3a Process embed shortcode in short description 2017-12-21 10:19:15 -08:00
Claudio Sanches 71a1fd319e Fixed coding standards 2017-12-21 15:53:12 -02:00
Claudio Sanches c18cc47286 Format prices while exporting products 2017-12-21 15:43:45 -02:00
Claudiu Lodromanean 4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
Add product export row action hook
2017-12-21 06:02:56 -08:00
Shiva Poudel 0ec0ca29a2 Only load session handler class on frontend not during cron
Ref: #18193

CC @mikejolley
2017-12-21 10:16:13 +05:45
Luciano Amodio 1b42973b75 Add export ajax query args and filename filter hooks
`woocommerce_export_get_ajax_query_args` let you pass args to ajax actions
`woocommerce_{$this->export_type}_export_get_filename` let you change the filename
2017-12-20 21:20:02 +01:00
Luciano Amodio 865efa3736 Add product export row action hook
having this hook is possible to actually use the woocommerce_product_export_product_query_args filter

```
add_action('woocommerce_product_export_row', 'export_custom_product');
add_filter( 'woocommerce_product_export_product_query_args', 'export_product_query_args');

// https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handle_custom_query_var', 10, 2 );

function export_custom_product() {
  $args = [
    'show_option_all' =>  'Custom',
    'taxonomy'        =>  'pa_custom',
    'name'            =>  'custom',
    'orderby'         =>  'name',
    'order'           => 'ASC',
    'selected'        =>  isset($_REQUEST['custom']) ? $_REQUEST['custom'] : '',
    'show_count'      =>  true,
    'hide_empty'      =>  true,
    'menu_order'      => false
  ];
  ?>
  <tr>
    <th scope="row">
      <label for="custom">Filter by Custom</label>
    </th>
    <td>
      <?php wp_dropdown_categories($args); ?>
    </td>
  </tr>
  <?php
}

function export_product_query_args($args) {
  $args['custom'] = 'default';

  if ( ! empty( $_POST['form'] ) ) {
    $values = explode('=', $_POST['form']);
    if('custom' === $values[0]) {
      $args['custom'] = wp_unslash( $values[1] );
    }
  }

  return $args;
}

function handle_custom_query_var( $query, $query_vars ) {
  if ( ! empty( $query_vars['custom'] ) ) {
    $query['tax_query'][] = array(
      'taxonomy' => 'pa_ custom',
      'field' => 'id',
      'terms' => esc_attr( $query_vars['custom'] )
    );
  }

  return $query;
}
```
2017-12-20 20:13:10 +01:00
Claudiu Lodromanean 59ccb00e49
Merge pull request #18242 from lipemat/fix/date-args-wpcli-wc-product_review
Fix --date_created and --date_created_gmt args for wc product_review
2017-12-20 10:07:18 -08:00
lipemat c4cb7d146a support --date_created and --date_created_gmt via wp-cli wc product_review create 2017-12-20 09:54:42 -05:00
Alexander Minza fca5ef8dd8 Added Moldova states 2017-12-19 23:44:25 +02:00
Claudiu Lodromanean 5349ffbb47
Merge pull request #18233 from woocommerce/fix/18232
Fixed file log dates and implement better date formatting
2017-12-19 11:53:06 -08:00
Claudio Sanches 068418124e
Merge pull request #18203 from AdamQuadmon/wc-exporter-limit-filter
Add WC Product CSV Exporter limit filter
2017-12-19 15:42:38 -02:00
Claudio Sanches f40f3291f8 Fixed file log dates and implement better date formatting
Closes #18232
2017-12-19 15:38:50 -02:00
Luciano Amodio bec2e939b4 change filter name 2017-12-19 18:25:16 +01:00
Luciano Amodio 8983b38598 change filter name and position `woocommerce_product_export_get_limit` 2017-12-19 17:18:55 +01:00
Luciano Amodio f383886fb5 fix not needed double quotes 2017-12-19 14:51:23 +01:00
Luciano Amodio 4d267c0dbb Rename exporter filter to `woocommerce_product_export_init`
moving it in the abstract constructor and let it be more generic now is possible to do:
```
add_filter( 'woocommerce_product_export_init', function ( $exporter ) {
  if( 'product' === $exporter->export_type ) {
    $exporter->set_limit(100);
  }
});
2017-12-19 13:50:37 +01:00
Fulvio Notarstefano e718d7bd40 [#18223] Rename var to a more apt name 2017-12-19 17:19:10 +08:00
Fulvio Notarstefano ee123fb739 [#18223] Add argument to woocommerce_product_related_posts_query filter 2017-12-19 10:18:33 +08:00
Claudiu Lodromanean e898623668
Merge pull request #18174 from woocommerce/fix/18170
Adjusts price filter code to exclude taxes to match how prices are stored in the DB
2017-12-18 11:13:44 -08:00
Claudiu Lodromanean b494e45865
Merge pull request #18193 from woocommerce/fix/16940
Do not load SESSION class during CRON events
2017-12-18 10:47:07 -08:00
Claudiu Lodromanean aa85dd03d6
Merge pull request #18214 from WPprodigy/fix-duplicate-checkout-ids
Prevent duplicate IDs on checkout page
2017-12-18 08:49:40 -08:00
Mike Jolley 6fd3d9c100 Compare the date modified when loading session data. 2017-12-18 16:43:18 +00:00
Claudiu Lodromanean 052fbc73c6
Merge pull request #18212 from WPprodigy/hide-add-coupon
Only show 'Apply coupon' in admin if coupons are enabled
2017-12-18 08:41:12 -08:00
Claudio Sanches d2404a9e63 Fixed chmod 2017-12-18 14:12:53 -02:00
Shiva Poudel 0432b58182 Remove unwanted transient then were not set 2017-12-18 20:03:08 +05:45
Caleb Burks 82c5975b37 Prevent duplicate IDs on checkout page 2017-12-17 22:43:51 -06:00
Caleb Burks 0d9e55d2ec Hide Apply coupon in admin if coupons are disabled 2017-12-17 22:21:08 -06:00
Luciano Amodio 27dd962be7
Add WC Product CSV Exporter limit filter
with tons of products is nice to have an way to change the limit for the exporter (now is set to 50)

'''php
function wc_exporter_set_limit($limit) {
  return 1000;
}
add_filter( 'woocommerce_product_export_product_default_limit', 'wc_exporter_set_limit');
'''
2017-12-16 13:49:21 +01:00
Claudiu Lodromanean 906efe1ffc
Merge pull request #18189 from woocommerce/fix/17897
Add getter for tax_display_cart variable, with filter
2017-12-15 08:44:43 -08:00
Mike Jolley da0bda4a04 Add refunded payment prop after an API refund succeeds. 2017-12-15 16:23:26 +00:00
Mike Jolley 1901493eee Should be pulic. 2017-12-15 15:18:17 +00:00
Mike Jolley 4eaf1afb88 Cleanup session callback. 2017-12-15 15:14:05 +00:00
Mike Jolley df04d0c4a2 phpcs 2017-12-15 15:13:48 +00:00
Mike Jolley 15089fc432 Added init method and phpcs changes. 2017-12-15 15:13:24 +00:00
Mike Jolley b84f9fa112 A session should not be generated on cron requests. 2017-12-15 15:13:06 +00:00
Mike Jolley 01871fd2c8 Add getter for tax_display_cart variable, with filter 2017-12-15 13:39:35 +00:00
Mike Jolley 47b39caf83 phpcs 2017-12-15 13:19:23 +00:00
Mike Jolley ea8681280a Only get ID when it's not empty so 0 and '' is ignored 2017-12-15 12:59:54 +00:00
Mike Jolley fd2c676837
Merge pull request #18184 from woocommerce/fix/18182-storefront-wizard-notice
Storefront in wizard for non WC themes and default themes
2017-12-15 12:51:19 +00:00
Gerhard Potgieter 4ba9af1c2f Change WC::is_active_theme into a global function wc_is_active_theme. Clean up the conditional checks to read better. 2017-12-15 14:32:54 +02:00
Mike Jolley 7c029d18e9
Merge pull request #18186 from woocommerce/fix/no-strict-array-select-settings
Option value comparison when saving select settings
2017-12-15 12:18:26 +00:00
Gerhard Potgieter 89d21a50a4 Convert allowed options to string values for comparison, html options have no data type distiction. 2017-12-15 13:39:05 +02:00
Gerhard Potgieter 30398a65f1 Do not use strict comparison when doing in_array on select settings as wp_unslash on the raw_value will return a string that fails comparison with int values. 2017-12-15 13:21:01 +02:00