Commit Graph

19154 Commits

Author SHA1 Message Date
Mike Jolley 6cf98a7e4d Avoid read after updating meta in the database
@justinshreve Was there a reason this was added? I don’t see a reason
why it needs to be re-read if the array is up to date?
2017-02-11 15:45:13 +00:00
Mike Jolley ca1d49b2b6 Conditional visibility and downloads 2017-02-11 15:35:20 +00:00
Mike Jolley 91ac4a2e56 Remove update_term_counts
This does not look to be necessary because we use wp_set_post_terms
which handles this for us. Seems to be inherited from legacy.
2017-02-11 15:27:52 +00:00
Mike Jolley 8494bf7bee Conditonal post data saving 2017-02-11 15:26:13 +00:00
Claudio Sanches 1b1b784cb4 Merge pull request #13158 from woocommerce/fix-13119
Only append tax price suffix if taxable
2017-02-11 12:08:11 -02:00
Mike Jolley eb518ec06d Only append tax price suffix if taxable 2017-02-11 00:08:49 +00:00
Mike Jolley 979e64c242 Merge pull request #13145 from woocommerce/fix/cli-id-docs
Fix CLI documentation for commands with multiple IDs.
2017-02-11 00:05:17 +00:00
Claudio Sanches b5083e7380 Merge pull request #13150 from woocommerce/fix-13148
Don't rtlcss select2.css
2017-02-10 17:45:03 -02:00
Claudiu Lodromanean 8d2fd29396 Don't rtlcss select2.css 2017-02-10 11:39:28 -08:00
Mike Jolley d693863ad2 Merge pull request #13064 from thenbrent/variable_product_sync_filters
Modify variable product sync hooks
2017-02-10 18:40:48 +00:00
Brent Shepherd 5d560f380a Remove 'woocommerce_variable_product_synced' hook
And add additional suggested alternatives to the deprecated
woocommerce_variable_product_sync hook.
2017-02-10 10:36:35 -08:00
Brent Shepherd 5dec55928b Add 'woocommerce_variable_product_sync_data'
Renaming 'woocommerce_variable_product_sync_before_save'
2017-02-10 10:33:48 -08:00
Mike Jolley 82d9abd4c5 Make sure enabled is checked by default
#13147
2017-02-10 17:43:32 +00:00
Claudio Sanches b1b536b5d2 Give REST API authentication a lower priority
Bigger than add_filter( 'determine_current_user', 'wp_validate_auth_cookie' );
Smaller than add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20
);

This solve issues while trying to authenticate in a browser while logged
in.

Closes #13134
2017-02-10 15:35:52 -02:00
Justin Shreve 700026c2ab Separate positional and assoc arguments. 2017-02-10 08:38:43 -08:00
Mike Jolley b58e26b0ab Backwards compatibility for triggers
Closes #13141
2017-02-10 13:09:37 +00:00
Mike Jolley 5349171083 This panel does not show in products anyway
Fixes #13133
2017-02-10 12:51:49 +00:00
Mike Jolley e97d30859c Merge pull request #13135 from woocommerce/fix-email-order
Fix and standardize e-mail sending
2017-02-10 12:02:06 +00:00
Mike Jolley b81e56b597 Escape $args['list_class'] 2017-02-10 11:23:47 +00:00
Claudiu Lodromanean ab8fb48bb4 Fix and standardize e-mail sending 2017-02-09 14:49:39 -08:00
Claudio Sanches feeb98e801 Merge pull request #13131 from woocommerce/cli-attrib
Restructure ID route code for the CLI & fix attribute term.
2017-02-09 18:14:19 -02:00
Claudiu Lodromanean ae0e4e7ac3 Merge pull request #13130 from woocommerce/fix-isset
Switch isset back to array_key_exists to keep null-default props working
2017-02-09 10:42:14 -08:00
Justin Shreve 309d118287 Restructure ID route code for the CLI & make the attribute term command work. 2017-02-09 10:29:24 -08:00
Claudiu Lodromanean 3120a19dae Switch isset back to array_key_exists to keep null-default props working 2017-02-09 10:13:44 -08:00
Justin Shreve 988175b746 Merge pull request #13127 from woocommerce/fix/product-data-store-title
Don't use get_the_title during product read
2017-02-09 10:08:51 -08:00
Claudio Sanches c350ecfb99 Fixed PHP 5.2 fatal error, closes #13128 2017-02-09 15:27:26 -02:00
Claudio Sanches f2767dbf5e 2.7.0-beta-2 2017-02-09 15:08:39 -02:00
Justin Shreve 8a6bae374f Switch from get_the_title to the post objects post_title. 2017-02-09 08:43:48 -08:00
Mike Jolley 962b60c8fe kses/sanitize 2017-02-09 15:43:47 +00:00
Claudio Sanches 2c5f032b0b Merge pull request #13099 from woocommerce/fix-13011
If woocommerce_adjust_non_base_location_prices is false, remove modded tax, not base tax
2017-02-09 13:41:06 -02:00
Claudio Sanches 094b86c92b Merge pull request #13104 from woocommerce/fix-13015
Inherit shipping class id from parent
2017-02-09 13:37:54 -02:00
Claudio Sanches e3b563c518 Merge pull request #13044 from woocommerce/crud-perf-tweaks
[2.7] CRUD performance improvements for emails
2017-02-09 13:25:29 -02:00
Claudio Sanches 9e1e9783d2 Fixed unit tests in PHP 5.2 2017-02-09 11:33:18 -02:00
Mike Jolley dcce2a4190 Change order of execution on checkout so shipping is required.
Closes #12992
2017-02-09 12:59:13 +00:00
Mike Jolley 234b4cfa91 Merge pull request #13009 from woocommerce/gallery-tweaks
Gallery tweaks
2017-02-09 12:34:23 +00:00
Mike Jolley d7e9af3ac8 Use current_theme_supports 2017-02-09 12:34:06 +00:00
Mike Jolley 7ff301e2ca Merge branch 'master' into crud-perf-tweaks
# Conflicts:
#	includes/data-stores/class-wc-order-item-data-store.php
2017-02-09 12:31:25 +00:00
Mike Jolley 16afdeec96 Add prefix 2017-02-09 12:30:33 +00:00
Mike Jolley 1c10ad94cb Remove order item column due to performance issues on orders screen 2017-02-09 12:29:16 +00:00
Mike Jolley b17932f4e3 Fix test due to invalid amount and caching 2017-02-09 12:04:44 +00:00
Mike Jolley 8242e5496d Switch locale only after init 2017-02-09 11:23:44 +00:00
Mike Jolley 8298c83e6f Set all default parent data 2017-02-09 11:07:34 +00:00
Mike Jolley 639b805a24 Merge pull request #13120 from woocommerce/fix/factory-type
Move post type logic from product and order factories.
2017-02-09 11:02:57 +00:00
Mike Jolley a7b2a0ac7c Merge pull request #13107 from woocommerce/fix-12962
Add locale independent wc_get_permalink_structure function
2017-02-08 23:33:56 +00:00
Justin Shreve 65b99bf240 moved order item type check to order item data store 2017-02-08 11:42:36 -08:00
Justin Shreve ae5293aeb9 Move the get type logic out of the product factories and into the data stores. 2017-02-08 11:18:39 -08:00
Mike Jolley c49368f7fc Small id fix for #13118 2017-02-08 18:19:24 +00:00
Claudio Sanches 9b0a4e6c92 Merge pull request #13109 from woocommerce/fix-regressed-tests
Fix failing tests and array_merge error
2017-02-08 16:18:08 -02:00
Claudio Sanches 4e653139b6 Merge pull request #13117 from woocommerce/fix-12973
Moved refund logic
2017-02-08 16:15:54 -02:00
Claudiu Lodromanean 4525f91223 Merge pull request #13112 from woocommerce/fix-13106
Don't round values in get_on_sale_products
2017-02-08 10:14:52 -08:00