Commit Graph

14655 Commits

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