Commit Graph

491 Commits

Author SHA1 Message Date
Christopher Allford 91c608f38e Merge branch 'master' into refactor/23783 2020-04-05 10:55:00 -07:00
vedanshujain 8f3d8f0495 Also cache with WC_ABSPATH to account for when WC is out of ABSPATH.
We already substitute ABSPATH with {{ABSPATH}} token to make sure that exact template path is not cached to support deployment with multiple servers.

This patch also add tokenizing WC_ABSPATH to account for when WooCommerce is installed outside of ABSPATH.
2020-03-30 18:05:13 +00:00
Vedanshu Jain e35aaf1cff
Merge pull request #25885 from grigorijurasov/master
Change Serbian currency symbol from дин. to рсд, solves #25441
2020-03-17 19:02:17 +05:30
Rodrigo Primo 9b6d66cf1f
Merge pull request #25609 from SamirMahmudzade/patch-3
Update KZT (₸) symbol wc-core-function.php
2020-03-06 11:36:11 -03:00
grigorijurasov 06f44f386b Update wc-core-functions.php 2020-03-05 18:41:14 +01:00
Rodrigo Primo 05cfc7eece Add @since tag to get_woocommerce_currency_symbols()
See #25733
2020-03-04 16:26:07 -03:00
Rodrigo Primo 62d3a1fa44 Fix typo 2020-03-04 16:25:33 -03:00
Rodrigo Primo c529273973
Merge pull request #25733 from TimBHowe/fix/25732
Added the get_woocommerce_currency_symbols function to allow develope…
2020-03-04 16:23:50 -03:00
TimBHowe 34bec7d839 Added the get_woocommerce_currency_symbols function to allow developers to get an array of all the currency symbol registered with woocommerce 2020-02-23 13:51:19 -05:00
SamirMahmudzade 443429bd14
Update KZT (₸) symbol wc-core-function.php
Update the Kazakhstani tenge symbol KZT (₸) symbol wc-core-function.php
2020-02-07 18:23:36 +04:00
Peter Fabian 06d0bbefc4 Don't run setup wizard redirects from AS. 2020-02-07 00:20:42 +01:00
Christopher Allford c5e1fc6c45 Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants 2020-02-03 11:50:16 -08:00
Christopher Allford 1d1413b4ee Replaced direct access of many constants with the Constants library 2020-01-31 22:18:47 -08:00
Christopher Allford 8a046ab0cd Cleaned up the template path replacement and fixed the wc_cache_set positioning 2020-01-30 16:24:07 -08:00
Christopher Allford e86efca828 Merge branch 'master' into refactor/23783 2020-01-30 13:29:21 -08:00
Christopher Allford 6ad091a9b7 Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages 2020-01-28 21:21:29 -08:00
Rodrigo Primo b7aee86b2c Remove hash_equals() polyfill that is no longer needed
This polyfill was added back in 2015
(1f62a53e0e). WP includes the same polyfill
since version 3.9.2 and WC requires WP >= 5.0
(7d672c38a4). So we don't need to maintain our own version of this function anymore.
2020-01-23 14:36:37 -03:00
Claudio Sanches 5c169bf54c Fixed default value for wc_get_customer_default_location() 2020-01-21 11:53:45 -03:00
Christopher Allford 82cecbc6e8 Merge branch 'master' into refactor/23783 2020-01-16 17:18:23 -08:00
Rodrigo Primo e963d7cfab Fix minor imprecision in wc_is_wp_default_theme_active() documentation 2019-12-13 09:59:20 -03:00
Peter Fabian 72925ef41c Centralize check for default themes.
This should make Storefront appear in the Setup Wizard again.
2019-12-11 18:35:04 +01:00
Rodrigo Primo 49b1294494 Simplify and modernize wc_print_r()
Replaces a call to call_user_func_array() with argument unpacking using the spread operator.
2019-11-21 12:04:08 -03:00
Claudio Sanches 9b87f512d2 Return correct country key if default location not found 2019-10-23 14:27:11 -03:00
Claudio Sanches 3dec01ce38 Include note about follow Unicode CLDR recommendation 2019-09-03 12:46:44 -03:00
Marco Almeida 788893bafa
Update wc-core-functions.php
Add docblock about @return
2019-08-27 22:33:32 +01:00
Marco Almeida 14e3d762f7
wc_mail returning the same as $mailer->send
When using wc_mail, third-party developers should be able to get the value from $mailer->send so that can take measures if it returns false.

Closes #24504
2019-08-26 19:52:37 +01:00
Claudio Sanches e50953bc24 Fixed Namibian currency symbol 2019-08-19 19:40:19 -03:00
Claudio Sanches 94d0516ba2 Fixed translator notation 2019-07-19 13:29:38 -03:00
Claudio Sanches 488eefd7ec Don't allow before before_woocommerce_init 2019-07-18 23:43:32 -03:00
Claudio Sanches fd42c439f9 Prevent run wc_load_cart() before woocommerce_loaded 2019-07-18 23:34:13 -03:00
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