Commit Graph

15363 Commits

Author SHA1 Message Date
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