roykho
1df38c2f6b
Refactor and moved filter to _wc_recount_terms function
2021-03-10 12:33:46 -08:00
roykho
cb0b92750b
Extract recount terms logic into own function closes #25375
2021-03-04 09:06:03 -08:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Rodrigo Primo
9bebc4e69e
Simplify and modernize wc_walk_category_dropdown_tree()
...
This commit replaces calls to call_user_func_array() and func_get_args() with the spread operation. Both to make more explicit that this is a variadic function and to do argument unpacking when calling the walker method.
2019-11-22 15:25:44 -03:00
Claudio Sanches
27c3f5c7e5
Always return string
2019-05-06 19:49:02 -03:00
Claudio Sanches
77b96b5972
Get only the first item
2019-05-06 19:46:37 -03:00
Claudio Sanches
36a99e2935
Prevent undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-03 22:21:10 -03:00
Mike Jolley
9bf2081869
Merge pull request #23477 from woocommerce/fix/23466
...
Default category sorting order should be overwritten if defined by get_terms
2019-04-24 16:00:33 +01:00
Mike Jolley
121f06b030
Added way of telling if default is in use or not
2019-04-24 10:39:00 +01:00
Mike Jolley
49f79c9593
Wrap wc_terms_clauses query with brackets
2019-04-23 11:14:50 +01:00
Mike Jolley
2f0b8cced5
Flip logic so counts ignore sorting rules
2019-04-02 11:56:47 +01:00
Iskander (Alex) Sharipov
00f5b24e33
fix strpos arguments order
...
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-03-30 03:39:50 +03:00
Mike Jolley
0d41625ffe
Remove deprecated tag
2019-02-07 13:49:19 +00:00
Mike Jolley
a0d8a17900
fix name fallback
2019-02-01 13:59:09 +00:00
Mike Jolley
b64fad99f5
ordering fallback
2019-02-01 13:13:41 +00:00
Mike Jolley
3697f5104a
fix uncat display
2019-02-01 13:08:04 +00:00
Mike Jolley
32ae0192e5
Use WP term meta functions
2019-01-25 20:47:54 +00:00
Mike Jolley
d8fe798825
Revise meta ordering system to take care of default sorting
2019-01-25 20:39:55 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
claudiulodro
fdef6b4c73
Dont modify attributes orderby when ordering by name
2018-09-20 12:32:06 -07:00
Rodrigo Primo
b7cc3077ca
Remove unneeded usage of @codingStandardsIgnoreStart
2018-09-04 16:03:02 -03:00
Peter Fabian
60cd5caac2
Fixed terms fetching bug introduced in #20079 .
2018-06-23 13:53:50 +02:00
Khan M Rashedun-Naby
5c0d7292f3
wc_get_object_terms refactored
2018-05-15 15:44:32 +06:00
Claudio Sanches
4daf256c32
Fixed path of walker classes
2018-03-09 16:31:00 -03:00
Claudio Sanches
072115853c
Fixed includes/wc-term-functions.php PHPCS violations
2018-03-08 18:06:53 -03:00
Mike Jolley
a467d35acd
Add cache invalidation for wc_get_product_terms
...
Closes #17369
2017-10-25 13:27:18 +01:00
Mike Jolley
1c303c159c
Notes
2017-08-25 12:52:49 +01:00
Mike Jolley
9fa685eb71
wp_dropdown_categories is viable again!
2017-08-25 12:49:51 +01:00
Mike Jolley
253bb0743c
Ensure taxonomy exists in wc_get_product_visibility_term_ids
2017-06-06 13:10:56 +01:00
Mike Jolley
e3a4008d9f
Fix group clause depending on query
...
Fixes #15394
2017-06-01 13:33:30 +01:00
Mike Jolley
532ddfa6b0
Merge conflicts
2017-05-31 12:23:52 +01:00
Boro Sitnikovski
be70a3f95c
Support floats for the custom sort function
2017-05-25 18:05:13 +02:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
eae2fb64c8
Group by term ID to prevent duplicates
...
Fixes #14861
2017-05-19 15:27:57 +01:00
Mike Jolley
6949ee162e
Reduce visual noise
2017-05-16 15:05:11 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
79efb68554
Undo wrong commit
2017-05-09 19:20:36 +01:00
Mike Jolley
19fb7ac079
Fix hardcoded table name
2017-05-09 19:17:24 +01:00
Mike Jolley
61352adbf1
Make query code match and remove unneeded index
2017-05-08 19:09:55 +01:00
Jason Judge
0a5d9f9a3a
Issue #14900 Make INNER select explit.
2017-05-08 17:25:31 +01:00
Jason Judge
9bd56b312f
Issue #14900 Make implicit array cast to boolean an explixit check.
2017-05-08 14:39:08 +01:00
Jason Judge
3dd5acfd47
Issue #14900 Tidy up code (long lines and commented old lines removed).
2017-05-05 22:44:27 +01:00
Jason Judge
980de0cd52
Issue #14900 Some fixes and variable name changes.
2017-05-05 21:54:04 +01:00
Jason Judge
105a77a693
Issue #14900 Restructure _wc_term_recount() query.
...
I will split the super-long lines, and remove the commented old lines,
but just wanted something functional to test in production for tonight.
2017-05-05 21:38:25 +01:00
Mike Jolley
25bca1c218
Merge branch 'pr/13391'
2017-04-28 13:36:10 +01:00
Mike Jolley
6fb644738e
woocommerce_after_set_term_order
2017-04-28 13:36:01 +01:00
Mike Jolley
aacb01d1e7
Merge branch 'pr/13503'
...
# Conflicts:
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
Mike Jolley
48c9a49e2d
table name
2017-04-25 13:06:32 +01:00
Mike Jolley
a8baaf6715
Fix term exclusion in term count queries
...
Closes #14662
2017-04-25 13:05:21 +01:00
Claudio Sanches
078b23a3c2
Revert "Apply distinct to term id only"
2017-04-12 15:54:48 -03:00