Gerhard
c4096a1d8f
Cater for blank paths, do not prepend ABSPATH when template path blank.
2019-06-20 15:10:58 +02:00
Gerhard
7f4c0d0334
Store template cache value without ABSPATH to avoid issues with multi container environments.
2019-06-20 14:43:19 +02:00
MD0123-Hardip
715528e58e
changes applied
2019-06-18 12:07:55 +05:30
Gerhard
f6d9faa062
Introducde wc_load_cart to dynamically load the cart, this allows for functionality outside of frontend to initialise the cart.
2019-05-22 12:24:31 +02:00
Gerhard
6eb51a9047
WC_VERSION instead of WC()->version
2019-05-07 08:47:42 +02:00
Gerhard
4c80c6fd3b
Include version in the implode call.
2019-05-06 14:53:03 +02:00
Gerhard
6a6b58daf6
Wrap version appending inside sanitize_key
2019-05-02 14:13:16 +02:00
Gerhard
da00f93869
Make the version part of the cache key and not a value in the cache
2019-05-02 14:10:31 +02:00
Gerhard
cbfea2ec24
Also apply version caching to wc_get_template
2019-04-29 15:37:50 +02:00
Gerhard
8a0cf500d6
Version template caching to avoid issues with symlinked plugins in versioned folders.
2019-04-29 15:04:08 +02:00
Gerhard
f87df5c95a
Swap flag around to ensure it tries TRANSLIT first, also silence notices should they pop up for some reason
2019-04-18 09:51:14 +02:00
Gerhard
bedde9377c
Better iconv support checking
2019-04-18 09:37:01 +02:00
Gerhard
10acd7a290
Use //IGNORE instead of //TRANSLIT due to it relying on server config which would ignore the flag and throw notices.
2019-04-18 09:26:39 +02:00
Mike Jolley
1cd2959087
unset rather than prevent the template being included.
2019-04-03 16:08:12 +01:00
Mike Jolley
5ed25e1734
Notice if args are attempted to replace
2019-04-02 15:17:52 +01:00
Mike Jolley
51b3e4f213
Use action_args rather than $template variable which could have been overwritten
...
Co-Authored-By: dinhtungdu <dinhtungdu@gmail.com>
2019-04-02 14:07:48 +01:00
Mike Jolley
ccc5805632
Use secure and http cookies
2019-03-15 11:34:10 +00:00
Mike Jolley
f8dded8b49
merge refactor/22762 into master
2019-03-12 13:49:10 +00:00
Mike Jolley
c39f447ff4
Merge branch 'fix/22937'
2019-03-12 13:27:13 +00:00
Mike Jolley
574de2e90c
Move helper headers into wc_enable_wc_plugin_headers so they always exist.
2019-03-08 12:44:33 +00:00
Mike Jolley
96efb7a93b
Use wc_sanitize_coupon_code
2019-03-06 11:42:07 +00:00
Mike Jolley
b08842d45c
Update cache key to handle arrays
2019-03-01 10:22:27 +00:00
Mike Jolley
78ebe9496f
Move caching
2019-02-21 17:35:41 +00:00
Mike Jolley
4672a47d67
Update from master
2019-02-18 11:41:05 +00:00
Mike Jolley
0d901a2eca
Merge pull request #22608 from woocommerce/performance/remove-external-ip-lookup
...
Performance: Remove external lookup of ips on localhost
2019-02-08 13:09:31 +00:00
Mike Jolley
1efe7747a8
merge conflict
2019-02-08 13:08:55 +00:00
Mike Jolley
113534a882
Set fallback false
2019-02-07 13:40:50 +00:00
Mike Jolley
00b48febac
Merge branch 'update/versioned-transients-alt'
2019-02-06 13:18:50 +00:00
Mike Jolley
d167cb0a95
Add caching for template names to avoid multiple lookups
2019-01-30 16:09:08 +00:00
Mike Jolley
6fa7995f3a
Only check file exists if filtered
2019-01-30 16:09:01 +00:00
Mike Jolley
35819ccb6e
Small refactor for clarity
2019-01-30 16:08:53 +00:00
Toby Robles
7fa1bd78c9
Updating Peruvian currency
...
Since 2015, the government ordered that the "Nuevo Sol (S /.)" be renamed simply "Sol (S/)", also suppressing the use of the point (S/.) in the monetary sign (S/)
2019-01-29 20:01:04 -05:00
Mike Jolley
9b2866a310
Merge branch 'pr/21722'
2019-01-22 18:20:45 +00:00
Mike Jolley
380201be33
Merge pull request #22417 from woocommerce/fix/21175
...
Sort countries using new ascii comparison function
2019-01-22 14:47:41 +00:00
Gerhard
4fa2856d86
Renamed vars so need to used the new vars.
2019-01-22 15:39:17 +02:00
Gerhard
1664181a63
Wrap iconv usage in function_exists for compatibility.
2019-01-22 15:26:40 +02:00
Mike Jolley
c830d429ef
Merge pull request #22435 from zJesusJavier/patch-2
...
Updating Venezuelan Currency
2019-01-21 15:01:18 +00:00
Mike Jolley
0cf82b8937
Use fixed transient naming in wc_get_shipping_method_count
2019-01-21 12:05:58 +00:00
Claudiu Lodromanean
7f78cc3acc
Merge pull request #22334 from Prospress/fix/22326
...
add gutenberg block preprocessor filter to shop page content
2019-01-18 09:29:28 -08:00
Ron Rennick
dad1ffb4c9
use function_exists instead of version_compare
2019-01-17 16:14:53 -04:00
Jesús Ramirez
4c8662c7f1
Update wc-core-functions.php
2019-01-16 16:51:07 -04:00
Ron Rennick
9337ca51e4
add WP version check for short description block filter
2019-01-16 12:49:25 -04:00
Jesús Ramirez
7e1ef44b02
Update wc-core-functions.php
2019-01-16 08:49:17 -04:00
Jesús Ramirez
88335691cd
Updating Venezuelan Currency
...
The new Venezuelan currency is Bs S
2019-01-13 10:01:37 -04:00
Gerhard
f8dfac9f48
Add wc_ascii_uasort_comparison function to compare values based on ascii values
2019-01-11 13:18:59 +02:00
Mike Jolley
a69ce0bfcb
Merge pull request #21764 from leewillis77/wc_get_template_filter
...
Allow plugins to filter located template location before failing
2019-01-08 14:23:58 +00:00
Mike Jolley
cb95d31066
Remove repetition from wc_get_customer_default_location and add validity check
2019-01-07 15:01:46 +00:00
Mike Jolley
864e0237c7
Merge remote-tracking branch 'origin' into pr/22125
2019-01-07 14:14:50 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Ron Rennick
0be3c5c690
add gutenberg block preprocessor filter to shop page content
2019-01-03 16:22:55 -04:00
Will Gorham
329d415cfd
When selling to a single country, force user location to that country
2018-12-04 14:47:04 -05:00
Rodrigo Primo
b3bfb77edb
fix phpcs error
2018-11-22 10:58:55 -02:00
Rodrigo Primo
12bac0f2b6
Merge branch 'master' into fix/21790
2018-11-22 10:57:47 -02:00
Rodrigo Primo
2c8d006c37
Update PHPCompatibility sniff names
...
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo
e467737653
phpcs fixes
2018-11-21 11:06:42 -02:00
claudiulodro
ebea6b96be
When only selling to one country set customer location to that country
2018-11-20 12:07:57 -08:00
Ron Rennick
c911d90614
use lower case for Croatian Kuna symbol
2018-11-15 13:36:36 -04:00
claudiulodro
0488bcd324
fix typo
2018-11-06 15:53:11 -05:00
roykho
800ed5fe73
Check priority index before comparing
2018-11-03 08:13:14 -07:00
Lee Willis
b826a80e93
Allow plugins to filter located template location before failing
2018-10-31 09:48:29 +00:00
Gerhard
c356f3d053
Sort checkout fields using PHP and not JS on initial page load as it causes issues as per #20640
...
Co-authored-by pierrebuet
2018-10-31 08:14:50 +02:00
Gerhard
7d060949ad
Convert wc_product_attribute_uasort_comparison to use wc_uasort_comparison
2018-10-31 07:41:01 +02:00
Gerhard
f844582976
Convert wc_shipping_zone_method_order_uasort_comparison to use wc_uasort_comparison
2018-10-31 07:40:08 +02:00
Gerhard
21ad281850
Add new wc_uasort_comparison function
2018-10-31 07:38:38 +02:00
Kim Helge Frimanslund
fece37f814
Prevent extract from polluting hook arguments
2018-10-28 15:36:13 +01:00
dyszczo
7f5122d502
Fix for warning in wc_get_logger when woocommerce_logging_class returns valid logger instance
2018-09-26 12:56:59 +02:00
Gerhard Potgieter
f0bd830502
Do not return or store user agent in lower case as HTTP header fields values are case sensitive as per rfc2616
2018-07-11 13:54:14 +02:00
Mike Jolley
38e3e3f570
Merge pull request #20425 from rnaby/070618-130531-wc-core-functions-wc_get_logger
...
Simplified and Early Returned | wc_get_logger refactored
2018-06-07 10:34:51 +01:00
Khan M Rashedun-Naby
76a9e19471
wc_get_logger refactored
2018-06-07 13:46:06 +06:00
Khan M Rashedun-Naby
964435a34b
@access tag removed
2018-06-07 12:31:35 +06:00
Ismail El Korchi
4b2b654749
Update wc_maybe_define_constant doc
2018-05-26 03:16:44 +00:00
Mike Jolley
c31cd4d962
Merge pull request #20234 from woocommerce/fix/20228
...
Check plugin properties exist when listening to auto_update_plugin hook
2018-05-25 12:29:17 +01:00
Mike Jolley
f1bed0d97b
Merge pull request #20231 from woocommerce/fix/20227
...
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 12:29:05 +01:00
Mike Jolley
d0d87b5e39
Check plugin properties exist
2018-05-25 12:07:12 +01:00
TheDramatist
29a6a7a494
wc_add_number_precision_deep logic simplified ( #20211 )
...
* wc_add_number_precision_deep logic simplified
* Early return
2018-05-25 11:18:49 +01:00
Mike Jolley
0bfd675238
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 11:15:30 +01:00
Mike Jolley
2a10ef31fa
Merge pull request #20212 from rnaby/240518-225308-wc-core-functions-wc_remove_number_precision_deep
...
wc_remove_number_precision_deep logic simplified
2018-05-25 10:39:48 +01:00
Mike Jolley
571919936c
Merge pull request #20210 from rnaby/240518-223657-wc-core-functions-wc_rand_hash
...
wc_rand_hash logic simplified
2018-05-25 10:33:41 +01:00
Mike Jolley
54357733bd
Merge pull request #20202 from jamesckemp/patch-10
...
Allow HTML when using `wc_attribute_label()`
2018-05-24 20:45:45 +01:00
James Kemp
596e6e2271
Add filter to sanitize woocommerce_attribute_label
2018-05-24 19:32:32 +01:00
Khan M Rashedun-Naby
5b079343e8
Early return
2018-05-24 23:02:07 +06:00
Khan M Rashedun-Naby
2725cd56d4
wc_remove_number_precision_deep logic simplified
2018-05-24 22:55:00 +06:00
Khan M Rashedun-Naby
cb7b853199
wc_rand_hash logic simplified
2018-05-24 22:42:56 +06:00
Mike Jolley
f5343cf4c7
Merge pull request #20067 from rnaby/150518-000347
...
ElseIf and Else Statement Removed
2018-05-24 16:33:56 +01:00
Khan M Rashedun-Naby
651de82769
ElseIf and Else Statement Removed
2018-05-15 00:07:29 +06:00
Khan M Rashedun-Naby
f09fd925e7
Removed Else Condition Check
2018-05-15 00:01:15 +06:00
Mike Jolley
e807c6151f
Merge branch 'master' into update/erasure-requests
2018-05-02 14:06:47 +01:00
Mike Jolley
e8f3bac6c8
Implement log cleanup cron job (woocommerce_cleanup_logs)
2018-05-01 16:37:14 +01:00
Mike Jolley
c765ce644d
Inactive account handling
2018-04-30 15:38:45 +01:00
Mike Jolley
d381330a91
Merge pull request #19705 from woocommerce/fix/19619
...
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Peter Fabian
4538f3fa8f
Moved wc_selected to core functions.
2018-04-18 15:54:57 +02:00
claudiulodro
f9e45bea91
Bring up-to-date with master and resolve merge conflicts
2018-04-17 13:27:39 -07:00
Peter Fabian
55632d0703
Switched Georgian Lari to correct UTF symbol
2018-04-04 11:11:05 +02:00
Mike Jolley
38c29204d4
Include US in US dollar dropdown so it's searchable
2018-03-27 18:35:15 +01:00
Mike Jolley
7a568e2f68
Personal data removal experiment
2018-03-16 13:53:18 +00:00
Claudio Sanches
53cde6f317
Fixed conflicts in cart functions and fixed PHPCS violations on core funcitons
2018-03-09 12:46:20 -03:00
Claudio Sanches
a9c1c2b096
Merge branch 'master' into update/core-functions-phpcs
2018-03-08 18:35:41 -03:00
Mike Jolley
0c10c28cd3
Merge pull request #18175 from woocommerce/update/17252
...
Rollback if payment complete or update status fails
2018-03-08 13:12:34 +00:00
Claudio Sanches
2b0a87b80f
Fixed includes/wc-core-functions.php PHPCS violations
2018-03-07 18:37:32 -03:00
Chunkford
c411c43fdf
Update wc-core-functions.php
2018-03-07 13:14:59 +00:00