Mike Jolley
b95812d563
Handle quick edit
2018-02-08 12:35:57 +00: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
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
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
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
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
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