Mike Jolley
e9c3ebebdc
Merge branch 'master' into feature/discounts-class
...
# Conflicts:
# includes/abstracts/abstract-wc-data.php
# woocommerce.php
2017-08-08 15:49:59 +01:00
Mike Jolley
862f67d98b
wc_get_var helper method
2017-08-07 11:02:19 +01:00
Mike Jolley
306db69eaf
Remove order subclass
2017-07-27 10:49:47 +01:00
Mike Angstadt
00e8c9a505
removed leading slashes
...
removed leading slashes
2017-07-11 08:45:06 -05:00
Mike Angstadt
2239ad6dcb
updated based on reviewer feedback
...
Updated based on reviewer feedback.
2017-07-11 08:43:55 -05:00
Mike Angstadt
fa4e4e40fd
Explicitly set include path
...
If you override include_path and are including this file from outside this directory's context, performance will degrade as both those locations are incorrectly checked first getting an EOF before include() falls back to looking in this directory.
Explicitly setting the include path checks this directory first regardless of calling context location or include_path override so is ideal.
2017-07-10 21:33:42 -05:00
1do
344807bd15
changed misspelled filter name
2017-06-19 14:22:31 +03:00
Mike Jolley
ccad987bac
Allow state field to have the correct country set by passing it through
...
Fixes #15632
2017-06-16 11:45:53 +01:00
Mike Jolley
0d7614d44b
Fix locale notice
...
Closes #15502
2017-06-07 14:31:09 +01:00
Mike Jolley
d62aefba74
Merge branch 'master' into fix/15414
...
# Conflicts:
# includes/wc-core-functions.php
2017-06-06 12:55:50 +01:00
Mike Jolley
09d43670fc
function exists
2017-06-06 12:54:49 +01:00
Claudio Sanches
6c42f3c16a
Properly sanitization for wc_make_phone_clickable() and fixed coding standards
...
Closes #14659
2017-06-05 16:15:04 -03:00
Claudio Sanches
f65005be41
Merge pull request #14719 from avinapatel/fix-14659
...
Made the buyer phone number clickable in the in the order backend.
2017-06-05 15:47:16 -03:00
Mike Jolley
67a0637417
Advanced locale switching
2017-06-05 14:18:39 +01:00
Mike Jolley
b1ccb76d06
Update florin
...
Fixes #15412
2017-06-02 15:14:29 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Mike Jolley
d0ebf48da4
Merge branch 'fix-13625'
...
# Conflicts:
# assets/css/woocommerce-layout-rtl.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# includes/wc-core-functions.php
2017-04-27 18:05:34 +01:00
Claudio Sanches
1bf2902762
Check if get_current_screen() is true
2017-04-27 12:42:16 -03:00
Claudio Sanches
dbddcaf95f
Fixed how to flush rewrite rules after save the shop main page
...
Fixes #14452
2017-04-26 21:51:30 -03:00
avinapatel
824f13924e
Made the buyer phone number clickable in the in the order backend.
2017-04-26 17:48:56 +05:30
Claudio Sanches
5eab267ec1
Fixed shortcodes formatted with <p> and improved wc_format_content()
...
This fix the shortcode issue, stop extra sanitization and allow use
smilies, attachments, embeds and Jetpack markdown.
Closes #14135
2017-04-10 19:21:22 -03:00
Claudiu Lodromanean
7c8c17d284
Enable oembeds in short descriptions
2017-03-17 11:39:17 -07:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Eric Busch
c7b623e36a
Removed duplicate $symbols array key
...
'MAD' key was used twice in the get_woocommerce_currency_symbol() function. Removed the 'MAD' key containing this value: 'د. م.'
2017-02-23 12:59:09 -05:00
Mike Jolley
04955093d6
Use admin init hook
...
Closes #13248
2017-02-21 12:20:47 +00:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
8242e5496d
Switch locale only after init
2017-02-09 11:23:44 +00:00
Mike Jolley
09f2c6b89a
Add locale independent wc_get_permalink_structure function
2017-02-07 16:16:45 +00:00
Mike Jolley
55c9554ace
Use MDL
...
Closes #13016
2017-01-30 10:35:47 +01:00
Mike Jolley
f0049367ae
Use mb_ functions and add tests
2017-01-22 01:24:20 +00:00
Jon Surrell
7822c38a2c
Accept object from woocommerce_logging_class filter
...
The filter `woocommerce_logging_class` allows replacement of the
built in `WC_Logger` as the shared logger. However, we statically
instantiate the classname as `$logger = new $class`. This prevents
use of any class which needs to be instantiated with arguments.
This change allows the `woocommerce_logging_class` filter to provide
an object which will be used as the shared logger.
2017-01-15 13:41:21 +01:00
Jon Surrell
ef9624efff
Ensure filter provided logging class implements WC_Logger_Interface
2017-01-14 18:39:40 +01:00
Claudio Sanches
9c27661dea
Synchronized with master
2017-01-12 17:53:15 -02:00
Jon Surrell
e8fd29520f
Un-deprecate wc_get_log_file_path
2017-01-12 20:39:39 +01:00
Mike Jolley
76f8c3dddd
Escaping for scruitinizer
2017-01-06 12:45:28 +00:00
Claudio Sanches
c79b4f1fd5
Fixed case for #12645
2017-01-03 00:26:34 -02:00
Jon Surrell
4cf86ef346
Use constants over settings to configure logger
...
Settings have been removed.
WC_LOG_THRESHOLD and WC_LOG_HANDLER constants have been added.
2016-12-29 11:58:43 +01:00
Jon Surrell
5700043e6d
Deprecate wc_get_log_file_path
...
wc_get_log_file_path moves into `WC_Log_Handler_File` class as a static
method.
Update deprecations and version info.
2016-12-29 11:58:43 +01:00
Jon Surrell
d4e8bb82e6
Remove new handler arguments from `wc_register_default_log_handler`
2016-12-29 11:58:43 +01:00
Jon Surrell
aee5917440
Change wc_safe_dump to wc_print_r
...
Match print_r arguments, this makes usage obvious.
2016-12-29 11:58:43 +01:00
Jon Surrell
9ba616b2c1
Return single instance from wc_get_logger
...
Remove class include from wc_get_logger (should be autoloaded).
Add tests for wc_get_logger.
2016-12-29 11:58:43 +01:00
Jon Surrell
ae72ce24c4
Drop `var_dump` as safe dump alternative
...
var_dump does not support returning string representation.
2016-12-29 11:58:43 +01:00
Jon Surrell
d88ea4ecea
Spelling and doc fixes
2016-12-29 11:58:43 +01:00
Jon Surrell
0f13cca921
Use autoloader for log handlers
2016-12-29 11:58:43 +01:00
Jon Surrell
c633db9d65
Add woocommerce_default_log_handler setting
...
Adds configuration to settings page
Show status-logs page based on settings (unify logs & database logs)
Register default log handler by default
2016-12-29 11:58:42 +01:00