Scrutinizer Auto-Fixer
7cef8ae4c9
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 16:50:18 +00:00
Mike Jolley
c0dc352df1
Clear parent transients when clearing own transients
...
Fixes #10996
2016-05-27 11:12:23 +01:00
Mike Jolley
fce8dc0868
Ensure alt text is set for product attachments
...
@claudiosmweb Fixes #10822
2016-05-03 16:41:51 +01:00
Mike Jolley
e2139a5c5e
Clear prices transient for variable products after scheduled sale.
2016-03-31 12:03:03 +01:00
Mike Jolley
83d2f64e9e
Tweak wc_get_product_variation_attributes to ignore non variation attributes
2016-02-25 14:13:56 +00:00
Mike Jolley
5ddc0b1a9a
[2.5] Fix CLI when setting a single category
...
Fixes #10409
2016-02-23 11:32:18 +00:00
Shiva Poudel
db50998f80
Period in comments
2016-02-12 23:58:23 +05:45
Shiva Poudel
70c755c09e
Can remove parent assignment as its not used
2016-02-12 23:50:06 +05:45
Fredrik Forsmo
676525c2b7
Improve docblock comments in various functions
...
* Added missing param tags to functions
* Added comments to `wc_get_attachment_image_attributes` and
`wc_prepare_attachment_for_js`
* Fixed return type value for functions where it says bool but the code
returns array
* Renamed boolean to bool
2016-01-06 17:11:09 +01:00
Mike Jolley
9890c18b5d
Notice if called early.
...
Closes #9923
2016-01-04 10:43:51 +00:00
Mike Jolley
4b87b0fbdc
[2.4] Fix SKU slash madness
...
Fixes #9721
2015-12-02 11:22:11 +00:00
Mike Jolley
3b409f1bbf
For coupons with category restrictions, respect the category hierarchy.
...
Closes #9704
2015-11-30 12:29:16 +00:00
Mike Jolley
3082c5bba6
wc_related_ and get_related method tweaks
...
Remove use of multiple expiring transients. See function docblock for
explanation.
2015-11-13 21:14:42 +00:00
Mike Jolley
70d9f58811
Version not needed for wc_var_prices
...
This transient doesn’t need to expire often because the hashes will be
unique if taxes change.
This change means a variable product will only use 1 transient rather
than many.
2015-11-13 20:01:42 +00:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
52787c282c
[2.3] Prevent "Trying to get property of non-object" in Sensei
2015-09-18 02:18:15 -03:00
Mike Jolley
9330176865
Flush product cache so prices are regenerated
...
Fixes #8851
2015-08-17 14:19:58 +01:00
Mike Jolley
d9f9da955d
empty checking
2015-08-13 16:58:23 +01:00
Mike Jolley
cbb89fa4b9
wc_get_product_variation_attributes should only get parent attributes which are for variations.
...
Closes #8796
2015-08-12 18:02:13 +01:00
George Stephanis
c938fa24da
More missing esc_attr calls, :(
2015-08-05 15:17:52 -04:00
Mike Jolley
060fb16e2e
Move Pre 2.4 handling for attributes - DRY
...
@claudiosmweb @franticpsyx
2015-07-28 16:20:51 +01:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Mike Jolley
5f8a5bcb63
We don't need get_transient_version for children transients because other products do not affect this.
2015-07-09 16:02:26 +01:00
Claudio Sanches
8b681fddf7
Created bulk edit actions for variable sale schedule
2015-07-07 16:39:59 -03:00
Claudio Sanches
11ca22ef1a
Created _wc_save_product_price() private function
2015-07-07 16:06:34 -03:00
Mike Jolley
68974655d6
Tweak visible child product query and cache
2015-06-08 13:18:23 +01:00
Mike Jolley
4a9971193f
Only track product views when widget is active
...
Closes #8212
2015-05-28 11:49:10 +01:00
Claudio Sanches
5a765aa4ef
Merge pull request #7920 from SiR-DanieL/patch-4
...
Remove null parents from the featured IDs array
2015-04-13 12:46:14 -03:00
Nicola Mustone
2fa4333ad7
remove 0 values from featured array
2015-04-09 16:48:26 +02:00
Nicola Mustone
8046aa58a2
missing {}
2015-04-09 16:34:33 +02:00
Mike Jolley
7bbd0261d7
Show full category hierarchy in permalinks.
...
Closes #6158
2015-03-27 13:08:27 +00:00
Claudio Sanches
edcc265fdb
Merge pull request #7350 from forsvunnet/filter-unique-check
...
Added apply_filters to the wc_product_has_unique_sku function #7320
2015-03-18 09:12:48 -03:00
Claudio Sanches
a66d627c70
Improved the wc_get_product_id_by_sku() function for #7695
2015-03-12 17:59:52 -03:00
nils-fredrik@maksimer.no
c0ebb7d0ad
Fix for #7695
...
Will now only return posts of type product and product_variation.
2015-03-12 21:52:22 +01:00
Mike Jolley
fa0be55b01
transient cache dashboard reports
...
Closes #7641
2015-03-09 11:07:49 +00:00
Mike Jolley
d9455994c8
Use 30 days instead of year for transients to avoid bugs in memcache plugins.
...
Closes #7520
2015-02-24 12:02:56 +00:00
Eivin Landa
69aba6055a
Added apply_filters to the wc_product_has_unique_sku function #7320
2015-02-10 19:54:31 +01:00
Mike Jolley
7ef8f4d156
Invalidate unknown product transients Closes #6815
2014-12-30 15:27:08 +00:00
Mike Jolley
95a504cf84
Fix admin term output
...
Resolves an issue decoding foreign chars caused by #6555
Fixes #6550
2014-12-09 09:54:42 +00:00
claudiosmweb
15996a1dee
Created the wc_get_product_id_by_sku() function
2014-11-27 10:31:56 -02:00
Mike Jolley
0718aef09e
wc_update_product_stock should update stock regardless, if the meta data doesn't currently exist
...
Fixes #6553
2014-10-16 17:15:10 +01:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Barry Kooij
7cd2e8c10a
Renamed get_product to wc_get_product
2014-08-19 12:05:02 +02:00
thenbrent
2d47d6b43b
Improve display of multiword product attributes
...
Instead of displaying a variation's custom product attributes like this:
`name-with-dashes: attribute-with-dashes`
Display it like this:
`Name With Dashes: Attribute With Dashes`
2014-07-30 12:41:14 -07:00
Mike Jolley
3974c1028a
Remove wp_cache_flush() Closes #5777
...
Carrying on from previous commits, the need for a wildcard delete for
products is unnecessary. This removes the $wpdb query and
wp_cache_flush()
2014-07-03 12:59:57 +01:00
Mike Jolley
d1dbe4492e
Clear comment transients only on wp_update_comment_count
...
Does not need to be flushed when editing a product. Part of #5777
2014-07-03 12:59:57 +01:00
claudiosmweb
d3dc018ffc
fixed the wc_product_has_unique_sku() function name
2014-06-27 16:03:25 -03:00