Commit Graph

7772 Commits

Author SHA1 Message Date
Mike Jolley 72a5f9a9d1 Maintain method_order sorting for zones in list
Closes #11486
2016-07-21 14:30:05 +01:00
Mike Jolley 08941d41b2 Check is_singular when looking for shortcode content
Closes #11489
2016-07-21 13:17:35 +01:00
Claudio Sanches 56f4efc8e3 Merge pull request #11469 from corsonr/status_report_db_prefix
Add database prefix to status report
2016-07-20 17:09:50 -03:00
Mike Jolley bc80b75540 Merge pull request #11324 from woothemes/out-of-stock-threshold-11322
Out of stock threshold 11322
2016-07-20 14:44:41 +02:00
corsonr b825b0b943 removed un-necessary esc_html 2016-07-20 14:43:41 +02:00
Mike Jolley d17b4de6d5 woocommerce_admin_order_item_bulk_actions
Closes #11099
2016-07-20 13:37:17 +01:00
Mike Jolley fce7771d82 Fix - Shipping method title display in COD settings. 2016-07-20 10:49:27 +01:00
Claudio Sanches 2b6cbc7629 Sanitize image metadata 2016-07-19 14:24:11 -03:00
Claudio Sanches 4ed8d46867 [REST API] Make easy to update order line items #11450 2016-07-19 14:11:44 -03:00
Mike Jolley f69c36729d Merge pull request #11475 from helgatheviking/filter_cart_id
add woocommerce_cart_id filter
2016-07-19 17:47:23 +02:00
Mike Jolley 664597b5c8 Tweak zone text
Closes #11472
2016-07-19 16:45:10 +01:00
Mike Jolley e5634c6946 Do not sanitize passwords
Closes #11473
@claudiosmweb
2016-07-19 16:43:15 +01:00
Kathy Darling cfafff192d add woocommerce_cart_id filter 2016-07-19 10:20:08 -05:00
Mike Jolley bf93f747c2 Handle range conversion during update
Closes #11403
2016-07-19 16:16:32 +01:00
Claudio Sanches 35c5a29cc2 Always remove commas while processing flat rate costs, closes #11346 2016-07-19 11:52:29 -03:00
Mike Jolley 84e883657c Merge pull request #11412 from jlad26/master
Fix layered nav links on product attribute archives
2016-07-19 15:20:47 +02:00
Mike Jolley f9c6764ecd Merge branch 'pr/11431' 2016-07-19 14:10:02 +01:00
Mike Jolley d79f21a501 Better search handling 2016-07-19 14:09:56 +01:00
Mike Jolley d326930d89 Helper to generate search sql 2016-07-19 14:09:31 +01:00
corsonr c2eb7f50ca display error if prefix longer than 20 2016-07-19 14:47:36 +02:00
Claudio Sanches aa367efdf0 Fixed a typo 2016-07-19 09:37:42 -03:00
Claudio Sanches 8d5f0d5c11 Merge pull request #11471 from woothemes/fix-free-shipping
Fix free shipping
2016-07-19 09:36:12 -03:00
Claudio Sanches 70bf9bfcd6 Fixed show/hide free amount in modals 2016-07-19 09:33:56 -03:00
Mike Jolley aab6f86652 Merge pull request #11465 from stratosvetsos/fix-grouped-addtocart-message
closes #11448
2016-07-19 14:17:11 +02:00
corsonr eab45222a4 fixed parse error 2016-07-19 14:13:31 +02:00
corsonr c385e57fbe added esc_html() and conditional statement 2016-07-19 14:11:09 +02:00
Claudio Sanches 19713f8bc7 Improved free shipping method and fixed missing filters 2016-07-19 09:05:25 -03:00
Mike Jolley 0a4f2725de Merge pull request #11449 from rodrigoprimo/improve-wp-count-comments
Cache the result of WC_Comments::wp_count_comments() in a transient
2016-07-19 14:00:34 +02:00
Mike Jolley 183fb46c4d Merge pull request #11447 from jamesckemp/patch-3
Add shortcode name param to shortcode_atts functions
2016-07-19 13:42:48 +02:00
Claudio Sanches a8becb24ba Check if product exists to avoid fatal errors on emails order schema markup, closes #11459 2016-07-19 08:21:06 -03:00
Claudio Sanches 14eeee15ee Welcome to docs.woocommerce.com 2016-07-19 07:30:31 -03:00
corsonr 06e8c7e6de Add database prefix to status report 2016-07-19 09:12:06 +02:00
Stratos Vetsos f4f3b5e364 closes #11448 2016-07-18 20:52:26 +03:00
Rodrigo Primo 7318235f58 Cache the result of WC_Comments::wp_count_comments() in a transient
The query to count comments inside WC_Comments::wp_count_comments() is super slow when the site has a significant number of comments (for example, this query takes about 5s to run on WooCommerce.com with 70k comments) and this is a problem specially considering that this method is called on every admin page.

This commit changes WC_Comments::wp_count_comments() to store the comments count in a transient. With this change, the method will run the query to count comments only if the number of comments or their statuses had changed. Before this commit, WC_Comments::wp_count_comments() would run the database query every time a admin page was requested.
2016-07-15 15:01:21 +02:00
James Kemp f39e338ca2 Add shortcode name param to shortcode_atts functions
Adding this allows plugin/theme authors to easily add additional attributes to the shortcodes using the "shortcode_atts_$shortcode" filter. Please consider!
2016-07-15 08:49:44 +01:00
Mike Jolley 53511e36ec Use permission id to revoke access to downloads to prevent removing wrong rows.
Fixes #11423 @claudiosmweb
2016-07-14 15:54:28 +02:00
Claudio Sanches 09ac79e7e1 Minify files 2016-07-14 15:48:11 +02:00
Claudio Sanches 5016d38941 Merge pull request #11433 from danielhuesken/master
API: Add missing schema and output to visible field in products rest api
2016-07-14 15:34:28 +02:00
Mike Jolley 23c853dc3b When duplicating product variations, set title, name, and guid.
Fixes #11311 @claudiosmweb
2016-07-14 14:54:39 +02:00
Claudio Sanches d7aea130b0 Fixed unformated reviews
cc @mikejolley
2016-07-14 13:52:04 +02:00
Daniel Hüsken 602bd1f0cc API: Add missing schema and output to visible field in products rest api 2016-07-14 08:41:02 +02:00
Leon Francis Shelhamer a9e7c67230 fix search results layered nav counts issue 2016-07-13 21:44:00 -04:00
Leon Francis Shelhamer 20c4a8bf77 Show shipping method titles in Add shipping method modal
The modal was calling shipping method titles with $method->title this resulted in blank select options. I replaced it with $method->method_title to fix this.
2016-07-13 21:16:59 -04:00
Claudio Sanches 6faeb89dd5 [REST API] Fixed variable images and downloads, closes #11420 2016-07-13 10:30:00 +02:00
jlad26 ce0485a97c Fix layered nav links on product attribute archives
If the option 'Enable archives' is selected for a product attribute, then the layered nav widget can also be used to filter that archive.
However the widget then doesn't work correctly in 'List' and 'OR' mode for that archive (although it works fine on the main shop page).

Example:
The attribute "product-type" is created and archives are enabled. It has values like "Courses", "One-to-one-tuition", "Equipment rental" and so on. Another product attribute "teaching-level" is created which uses values of "Beginner", "Intermediate" and "Advanced".
When the archive http://www.domain.com/pa_product-type/courses/ is visited the correct products are displayed. A layered nav widget is added in 'List' and 'OR' mode for the attribute 'teaching-level'. Clicking on any of "Beginner", "Intermediate" and "Advanced" will work fine the first time as the links are correctly generated in the form http://www.domain.com/pa_product-type/courses/?filter_teaching-level=advanced&query_type_teaching-level=or. (Advanced used for the example). However once one has been clicked, the links generated are now incorrect - they are in the form http://www.domain.com/?taxonomy=pa_teaching-level&term=advanced&filter_teaching-level=advanced%2Cbeginner&query_type_teaching-level=or.

Using get_queried_object instead of get_query_var fixes the problem.
2016-07-12 11:46:16 +01:00
Claudio Sanches 7b6bd21810 Updated PayPal credentials docs URL, closes #11406 2016-07-12 09:33:45 +02:00
Claudio Sanches 7778583340 Fixed wrong number of decimal precision, closes #11368 2016-07-11 17:26:54 +02:00
Claudio Sanches 7d9d091767 Fixed mixed tabs and spaces 2016-07-11 16:56:35 +02:00
Claudio Sanches ec1c30283f Make easy to remove meta query items, closes #11339 2016-07-11 15:48:47 +02:00
Claudio Sanches 4c380aaa8d [REST API] Fixed webhook secret format 2016-07-11 15:26:46 +02:00