Commit Graph

18059 Commits

Author SHA1 Message Date
Justin Stern a3e371e0d7 Make WooCommerce core play nice with Codeception (#11845)
If is_blog_installed() is false then skip some installation steps that
are performed on the 'init' action and which require the database to be
available
2016-11-09 11:53:39 +00:00
Lee Willis 90d8291ace Allow WP_Query to preload post data, and meta in wc_get_products()
Allow WP_Query to bulk query for post data and meta if more than
just IDs are requested from wc_get_products(). Reduces query count
significantly.
2016-11-09 11:44:11 +00:00
Claudio Sanches 49a574e704 Move all JavaScript from system status page to a new file (#12283) 2016-11-09 11:36:14 +00:00
Lee Willis 2c2239a3b0 Use get_the_terms() instead of wp_get_post_terms()
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.

get_the_terms() however can use data from the object cache if present.
2016-11-09 11:27:24 +00:00
Dwain Maralack 5f87161c06 add function arguments to the filter to give more context when filter is applied 2016-11-09 12:49:38 +02:00
Claudio Sanches 3a2ebb854d WC_Object_Data_Store::delete always not force delete 2016-11-09 02:37:50 -02:00
Claudio Sanches 52f09d9fda New system status security section 2016-11-08 21:00:46 -02:00
Claudio Sanches 208fa011b9 Fixed deprecated warnings 2016-11-08 19:00:57 -02:00
Claudio Sanches d0fae22528 Fixed undefined property on admin addons 2016-11-08 18:31:39 -02:00
Claudio Sanches bbced04678 Merge branch 'master' of github.com:woocommerce/woocommerce 2016-11-08 18:27:47 -02:00
Claudio Sanches 8858e74c56 Fixed coding standards and tests 2016-11-08 18:27:21 -02:00
Claudio Sanches dad80ca5ba Merge pull request #12257 from ramiy/a11y-tabs
a11y: make tabs accessible in the single product template
2016-11-08 18:13:06 -02:00
Claudio Sanches b2233982cb Merge pull request #12281 from woocommerce/improve-prevent-caching
Include trailing slash in REQUEST_URI before compare for prevent caching
2016-11-08 17:24:56 -02:00
Claudio Sanches 1481f1f7b4 Include trailing slash in REQUEST_URI before compare for prevent caching 2016-11-08 17:14:31 -02:00
Claudio Sanches f23a529329 [REST API] Throw messages when trying to manipulate variations in products endpoint 2016-11-08 13:55:33 -02:00
Claudio Sanches e1b914d227 Reverted changes that allowed manipulate variations on products endpoint (#12255) 2016-11-08 11:14:01 +00:00
Justin Shreve e53be95019 Merge pull request #12274 from woocommerce/data-store
Implement WC_Data_Store and related code & tests.
2016-11-08 02:28:27 -08:00
Justin Shreve 52aedb5fc4 Remove context param on set_props 2016-11-08 02:28:00 -08:00
Justin Shreve c7fdb061c3 Implement get/set proxy code. 2016-11-08 02:16:16 -08:00
Justin Shreve 1797c76a14 Implement WC_Data_Store and related code & tests. 2016-11-08 01:39:47 -08:00
Justin Shreve cd2a4e89b2 Merge pull request #12256 from woocommerce/rest-api-remove-refund-if-failed
[REST API] Delete refund if payment gateway API fails
2016-11-08 00:49:04 -08:00
Claudio Sanches 24efdf7ec2 Updated tests readme.md example URL #12268 2016-11-07 18:00:00 -02:00
Claudio Sanches 35f8386773 Merge pull request #12268 from renemeye/master
Fixed a referenced line number in Readme.
2016-11-07 16:05:41 -02:00
Claudio Sanches 48013fa2c3 Minify 2016-11-07 15:47:05 -02:00
Claudio Sanches e4775f2acc Merge pull request #12266 from Dev49net/master
Added 3 new price formatting filters
2016-11-07 14:34:50 -02:00
René Meye e2399fde2a Fixed referenced line number in Readme. 2016-11-07 08:31:47 +01:00
Daniel 78b25b205a Added 3 new price formatting filters
Added filters to wc_get_price_thousand_separator(),
wc_get_price_decimal_separator() and wc_get_price_decimals(). Described
in Issue #12265
2016-11-06 21:55:36 +01:00
Claudio Sanches 99bc154400 Merge pull request #12261 from ramiy/a11y-order-notes
a11y: make order notes metabox accessible
2016-11-05 16:33:45 -02:00
Rami Yushuvaev 402216a553 a11y: add `role="button"` to delete note links 2016-11-05 19:12:04 +02:00
Rami Yushuvaev e71cae8d8f a11y: make order notes metabox accessible 2016-11-05 18:56:03 +02:00
Rami Yushuvaev 7447dd4eec Fix tab IDs 2016-11-05 01:56:14 +02:00
Rami Yushuvaev 35c2912fd2 a11y - make tabs accessible using "role" and "aria" tags 2016-11-05 00:44:55 +02:00
Rami Yushuvaev a81a988628 Merge pull request #2 from woocommerce/master
Merge Updates
2016-11-05 00:40:02 +02:00
Claudio Sanches 0c3b0f57e9 [REST API] Delete refund if payment gateway API fails, closes #12248 2016-11-04 18:06:15 -02:00
Claudio Sanches 8adfe15d8f Removed extra quote from variations attribute dropdown, closes #12251 2016-11-04 17:37:54 -02:00
Claudio Sanches 4982e91e2c Fixed hardcoded strings in woocommerce/single-product/photoswipe.php template 2016-11-04 17:31:34 -02:00
Claudio Sanches f7b2af7148 Merge pull request #12252 from ramiy/a11y-aria-label
a11y: Replace "title" attributes with "aria-label" where needed
2016-11-04 17:26:30 -02:00
Rami Yushuvaev d85075dcb0 a11y: replace `title` attributes with `aria-label`, for better accessibility 2016-11-04 17:41:51 +02:00
Rami Yushuvaev 9469673c05 a11y: remove unneeded `title` attributes 2016-11-04 17:40:15 +02:00
Rami Yushuvaev 4f6aff374c Merge pull request #1 from woocommerce/master
Merge Updates
2016-11-04 16:01:49 +02:00
Claudio Sanches fa7775254b REST API - Allow remove product category image (#12247)
* Allow remove product category images

* Allow remove sending an empty array too
2016-11-04 10:19:34 +00:00
Claudio Sanches f85bb56cb1 Less code on the fly inside ld+json 2016-11-03 15:00:57 -02:00
Claudio Sanches ed4e7a9e73 Merge pull request #12215 from shivapoudel/dub-form-row-class
Fix - Duplicate form-row class in woocommerce form field
2016-11-03 14:18:46 -02:00
Claudio Sanches 2de494e105 Merge pull request #12219 from ramiy/i18n-translation-comments
i18n: add translators comments
2016-11-03 13:24:35 -02:00
Claudio Sanches 8db2661c25 Merge pull request #12243 from woocommerce/paid-statuses-12238
Use all paid statuses in $customer->get_total_spent()
2016-11-03 13:22:40 -02:00
Mike Jolley ad37a68ffb [Product CRUD] Getter setter proxy methods (#12236)
* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* get_prop implementation in abstract and data classes

* Implement set_prop

* Change handling

* Array key exists

* set_object_read
2016-11-03 12:03:19 +00:00
Zachary 09f53ce778 Add counties for Republic of Ireland, change Postcode label to Eircode (#12180) 2016-11-03 11:48:14 +00:00
Lee Willis 237ebc0e95 Filter the (JSON+LD) offers separately from the overall product data (#12234)
* Filter the offers separately from the overall product markup

* Rename filter as per feedback on the PR
2016-11-03 11:47:45 +00:00
Ismael Ramon 024947d65b Add 'woocommerce_calc_shipping_tax' filter (#12242)
Filter `calc_shipping_tax` function the same way as `calc_tax`.
2016-11-03 11:47:12 +00:00
Shiva Poudel b32c7b89dc Fix - Photoswipe action button background style (#12209)
* Fix - Photoswipe action button background style

* Fix - Do not scroll to top after closing PhotoSwipe

* Tweak - Move photoswipe style overides to WooCommerce stylesheet

Closes #12200
2016-11-03 11:35:55 +00:00