Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Mike Jolley
a34dd0480d
Merge pull request #13587 from woocommerce/fix-13525
...
Update coupon date handling
2017-03-15 15:26:41 +00:00
Claudiu Lodromanean
3476121709
Use local time where appropriate
2017-03-14 10:27:48 -07:00
Claudiu Lodromanean
76536688e2
Use utc time for expiry box
2017-03-14 08:17:53 -07:00
Mike Jolley
7f787fac84
Check empty strings literally
...
Closes #13565
2017-03-14 12:17:49 +00:00
Mike Jolley
e13badcdb3
Merge pull request #13584 from woocommerce/13527-update-downloads-dates
...
Apply WC_DateTime to WC_Customer_Downloads
2017-03-14 12:11:28 +00:00
Claudio Sanches
f1c08f1a8e
Updated downloads view on admin
2017-03-13 20:54:43 -03:00
Claudiu Lodromanean
9b7c08fe8f
Update post type page with new date
2017-03-13 15:16:03 -07:00
Claudiu Lodromanean
12952ebcd0
Update coupon meta box with new date handling
2017-03-13 15:06:44 -07:00
Mike Jolley
9bee678819
API updates
2017-03-13 21:36:31 +00:00
Mike Jolley
dd1b8e35dc
API endpoints
2017-03-13 20:26:52 +00:00
Mike Jolley
c80fed52d8
Merge pull request #13571 from woocommerce/fix-13529
...
Check $_POST before trying to save order address inputs
2017-03-13 17:47:21 +00:00
Mike Jolley
38f31d3b8e
Remove broken coupon usage link
...
#13568
2017-03-13 17:27:59 +00:00
Claudiu Lodromanean
cf397cfbdd
Dont try and save inputs that arent there
2017-03-13 09:55:18 -07:00
Rami Yushuvaev
d2457fe922
i18n: escape translation strings and fix wrong usage of i18n functions
2017-03-13 07:39:46 +02:00
Mike Jolley
61484ed711
Update API endpoints
2017-03-10 18:54:59 +00:00
Mike Jolley
53962f1143
Other date_date call replacements
2017-03-10 16:43:05 +00:00
Mike Jolley
6848fad224
Merge branch 'timezone-poc' into fix-13498
2017-03-09 16:10:07 +00:00
Mike Jolley
a185e57ccb
Admin panel should not hide _ meta.
...
Fixes #13510
2017-03-09 11:45:22 +00:00
Mike Jolley
a598baaf9e
date helper methods
2017-03-09 11:06:36 +00:00
Mike Jolley
165cdca92b
Display date in admin using offset
2017-03-08 16:51:22 +00:00
Aristeides Stathopoulos
70ee7ae7ea
Fix some PHPCS errors
2017-03-07 19:57:28 +02:00
Claudiu Lodromanean
527fb42771
Refactor empty option check
2017-03-02 08:21:20 -08:00
Claudiu Lodromanean
e132dcba17
Dont save empty text attributes
2017-03-01 10:39:08 -08:00
Claudiu Lodromanean
84091e5d4b
Whitespace tweak
2017-02-28 09:49:15 -08:00
Ryan Ray
05a40d8df7
Merge branch 'master' into video-updates
2017-02-28 10:56:28 -05:00
Konstantinos Kouratoras
4d8714c50a
Fix a typo in help section
...
Fix `splease` typo in help section.
2017-02-28 13:24:30 +02:00
Mike Jolley
906bc70e74
Fix permalink base check
...
Closes #13374
2017-02-28 00:16:26 +00:00
Claudiu Lodromanean
4a4de2a951
Americanize some words
2017-02-27 14:59:37 -08:00
Mike Jolley
5c06a6a591
Missing wc_format_localized_price
...
Fixes #13356
2017-02-27 13:39:35 +00:00
Ryan Ray
024b77f088
Updated the embed code.
...
Added a few new videos.
Modified the videos to include more appropriate time stamps
2017-02-25 13:45:00 -05:00
Ryan Ray
b2107f1a62
Renaming what used to be WooCommerce 101 videos to the current Guided
...
Tour naming scheme.
2017-02-25 11:40:10 -05:00
Caleb Burks
e782760011
Clean up
...
These lines, so long ;p
2017-02-25 02:27:38 -06:00
Caleb Burks
21da6ee31c
Hide coupon free shipping conditionally
2017-02-25 02:16:30 -06:00
Claudio Sanches
a4d2048755
Fixed confuse translatable URLs
2017-02-24 16:41:56 -03:00
Claudio Sanches
bf51da64d7
Merge branch 'master' into fix-13335
2017-02-24 16:07:00 -03:00
Mike Jolley
f9b17ea681
Use edit context when duplicating sku
2017-02-24 11:42:28 +00:00
Claudio Sanches
ad09c23d1f
Fixed wrong index for _wc_variation_file_hashes, closes #13322
2017-02-23 18:17:44 -03:00
Mike Jolley
04aebd9fa7
Merge pull request #13306 from woocommerce/fix-13303
...
Fix multiple item additon to orders
2017-02-23 18:11:02 +00:00
Mike Jolley
aaecd9e97c
Handle _no_shipping_class
2017-02-23 15:48:53 +00:00
Mike Jolley
34d03e524a
woocommerce_date_input_html_pattern filter
...
Closes #13289
2017-02-23 12:57:33 +00:00
Mike Jolley
dec52e8be2
Fix multiple item additon
2017-02-23 10:19:15 +00:00
Claudio Sanches
53cf89f63a
Coupon amount should be localized
2017-02-22 18:58:32 -03:00
Claudio Sanches
e42e2a3335
Replace woocommerce_coupon_code filter by wc_format_coupon_code()
2017-02-22 14:40:24 -03:00
Mike Jolley
b409c1edef
Use CRUD in coupons list
2017-02-22 17:29:59 +00:00
Mike Jolley
3af989fa1b
Merge pull request #13281 from woocommerce/fix-13265
...
Fix sale date field
2017-02-22 16:18:35 +00:00
Mike Jolley
2ac125417f
Fix sale date field
2017-02-22 10:31:20 +00:00
Beka Rice
24b586c18f
Fixes coupon styles so admin CSS applies
2017-02-21 21:29:06 -05:00
JeroenSormani
097309a0c8
Add 'priority' support to product data tabs
2017-02-21 08:34:43 +01:00
Claudio Sanches
12d2d6656e
Merge pull request #13246 from woocommerce/fix-13233
...
Reset columns when invalid
2017-02-20 12:28:50 -03:00
Mike Jolley
35c3b829e4
Reset columns when invalid
2017-02-20 13:21:51 +00:00
Frédéric Demarle
048882f66d
Separate logic from action for product duplicate
2017-02-18 17:50:45 +01:00
Kathy
c30b1c1bb3
Coupon tweaks ( #13222 )
...
* pass coupon to applied/removed JS trigger
* add coupon id and coupon object to action hooks in admin metabox
2017-02-17 11:58:15 +00:00
Mike Jolley
1348f6efd7
Merge branch 'master' into db-schema-tweaks
...
# Conflicts:
# includes/admin/class-wc-admin-duplicate-product.php
2017-02-16 16:33:20 +00:00
Mike Jolley
dd3d46ccaf
Merge branch 'master' into includes
...
# Conflicts:
# includes/admin/class-wc-admin-duplicate-product.php
2017-02-16 16:28:46 +00:00
Mike Jolley
2505abeb21
Merge pull request #13202 from woocommerce/fix-13199
...
Duplicate products; fix variation creation and add actions
2017-02-16 16:18:53 +00:00
Mike Jolley
4271352502
Escaping dates and statuses
2017-02-16 15:59:28 +00:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
e07d9ad970
Actions and filters
...
Adds actions when duplicating things so objects can be changed, and
reinstates woocommerce_duplicate_product_exclude_meta which can unset
meta keys before save.
Closes #13180
2017-02-15 15:35:59 +00:00
Frédéric Demarle
f502e306e6
Add filter woocommerce_duplicate_product_exclude_children back
2017-02-14 16:39:49 +01:00
Mike Jolley
d080e135ee
Reduce `select *` usage
2017-02-13 12:58:42 +00:00
Mike Jolley
82d9abd4c5
Make sure enabled is checked by default
...
#13147
2017-02-10 17:43:32 +00:00
Mike Jolley
5349171083
This panel does not show in products anyway
...
Fixes #13133
2017-02-10 12:51:49 +00:00
Claudiu Lodromanean
ab8fb48bb4
Fix and standardize e-mail sending
2017-02-09 14:49:39 -08:00
Mike Jolley
962b60c8fe
kses/sanitize
2017-02-09 15:43:47 +00:00
Mike Jolley
1c10ad94cb
Remove order item column due to performance issues on orders screen
2017-02-09 12:29:16 +00:00
Mike Jolley
a7b2a0ac7c
Merge pull request #13107 from woocommerce/fix-12962
...
Add locale independent wc_get_permalink_structure function
2017-02-08 23:33:56 +00:00
Mike Jolley
649f55b494
Load default country/state on edit
...
Closes #13061 Fixes #12899
2017-02-08 10:56:00 +00:00
Mike Jolley
3b06660edf
Merge pull request #12917 from woocommerce/12170-rtl
...
#12170 Set up RTL generation and enqueuing
2017-02-08 10:29:55 +00:00
Mike Jolley
fcae260b43
Missing placeholder
2017-02-07 17:07:11 +00:00
Mike Jolley
09f2c6b89a
Add locale independent wc_get_permalink_structure function
2017-02-07 16:16:45 +00:00
Claudiu Lodromanean
e45adc14ed
Bring up-to-date with master
2017-02-06 10:10:41 -08:00
Mike Jolley
58118997a9
Merge pull request #13069 from jaydeeprami/Fix-Issue-13067
...
Fixed issue ref #13067
2017-02-06 12:36:53 +01:00
Jaydeep
91cd899989
Fixed issue ref #13067
2017-02-06 14:35:55 +05:30
Claudiu Lodromanean
9fadeacfdc
Tweak shipping zones button styling to handle RTL better
2017-02-01 10:25:42 +01:00
Mike Jolley
efcbdc3031
Tweaks for #12805
...
Closes #12805
2017-01-31 17:25:57 +01:00
Claudiu Lodromanean
da22e021f9
Tweak admin tabs CSS to look good in LTR and RTL modes.
2017-01-31 10:09:56 +01:00
Jaydeep Rami
615ba59ebb
Fixed issue #12986
2017-01-26 23:21:34 +05:30
Justin Shreve
474a307420
Introduce get_tax_class_slugs.
2017-01-25 13:38:13 -08:00
Justin Shreve
e8237eab3d
Merge pull request #12965 from woocommerce/update/duplicate-product
...
Update WC_Admin_Duplicate_Product to use CRUD.
2017-01-25 12:18:49 -08:00
Justin Shreve
bcae0166fd
Fix spacing error, return objects on our new hook, and force sku to be unique when duplicating.
2017-01-25 11:44:27 -08:00
Mike Jolley
e9b0fba63c
Merge pull request #12953 from pierrebuet/master
...
Updating the way select2 v4 loads translated strings
2017-01-25 00:22:47 +00:00
Justin Shreve
10d3e2d580
Update WC_Admin_Duplicate_Product to use CRUD.
2017-01-24 11:57:48 -08:00
pierrebuet
41a937041d
Updating the way select2 v4 loads translated strings
...
Correcting Issue #12952 .
In select2 v4 the callback functions used to format the messages have
changed their names and the structure of the options have changed,
using now a „language“ object.
I was not able to find a reference in the select2 v4 code how to format
the number of matches back. Further when using v4 I don’t see any
indication on the number of the number of returned matches, so I
consider the parameter as obsolete.
2017-01-23 22:04:52 +01:00
Claudio Sanches
3e60bd64de
Send emails using site language, closes #12931
2017-01-23 18:40:36 -02:00
Mike Jolley
cd05b94ec3
woocommerce_admin_process_product_object hook
2017-01-23 10:20:11 +00:00
Claudiu Lodromanean
754a12c88a
12170 Set up RTL generation and enqueuing
2017-01-20 10:29:48 -08:00
Hannah Swain
c22b1d766a
Update class-wc-admin-menus.php
...
Capitalize "s" in "Visit store" to match case on "Visit Site".
2017-01-19 14:47:29 +01:00
Mike Jolley
17481af671
Allow html in description
2017-01-17 15:50:19 +00:00
Mike Jolley
cb04d5985a
Fix add zone button and default title
...
Fixes #12829
2017-01-17 15:25:12 +00:00
Claudio Sanches
c001b508d5
Merge branch 'master' into fix/stock-bulk
2017-01-16 20:41:33 -02:00
Justin Shreve
3e92ec9d59
Fix stock updating on bulk edit.
2017-01-16 10:57:14 -08:00
Justin Shreve
cabff4fe28
Fix stock, virtual, and featured checks by passing correct data to quick-edit.js
2017-01-16 09:59:56 -08:00
Claudio Sanches
022d4fdac4
Coupon expiry date do not allow multiple date formats
2017-01-14 00:10:51 -02:00
Claudio Sanches
9c27661dea
Synchronized with master
2017-01-12 17:53:15 -02:00
Mike Jolley
91c68d211f
Merge pull request #12798 from woocommerce/orphan-variations-fix-12614
...
Orphan variations fix
2017-01-11 16:23:14 +00:00
Mike Jolley
748db4e675
Defer flush so CPT is updated before flush.
...
Fixes #12787
2017-01-11 16:12:00 +00:00
Mike Jolley
ba8f308100
Merge branch 'master' into orphan-variations-fix-12614
...
# Conflicts:
# includes/class-wc-post-data.php
2017-01-11 15:42:20 +00:00
Claudio Sanches
fff98a9fbd
Removed more legacy $woocommerce variable
2017-01-11 13:31:31 -02:00
Mike Jolley
61ce6a2d21
remove notice text
2017-01-11 11:48:11 +00:00
Chouby
1a1a152e2e
Fix duplicate_post_taxonomies() when using non unique slugs
...
Since WP 4.3, it is possible to use non unique terms slugs in the same taxonomy. Currently duplicate_post_taxonomies() uses the term slug in wp_set_object_terms(), thus may set a wrong term. I propose to use term_id instead, which ensures that the correct term is set.
2017-01-11 09:32:12 +01:00
Claudio Sanches
7d090957c8
Merge pull request #12794 from shivapoudel/wc-pages
...
Tweak - Exclude profile pages from WC pages
2017-01-10 16:37:12 -02:00
Shiva Poudel
8171c73e9b
Tweak - Exclude profile pages from WC pages using array_diff
2017-01-10 21:55:11 +05:45
Mike Jolley
00250e8eab
Fix date query format
2017-01-10 15:50:05 +00:00
Manos Psychogyiopoulos
bffdc27e8c
fix variation attributes display in stock reports
2017-01-09 12:03:08 +02:00
Jon Surrell
f1a90d6b05
Move level filters to dropdown
...
Drop table list "views" and use dropdown filter for sources and levels.
2017-01-08 19:32:53 +01:00
Jon Surrell
a992084776
Sort by timestamp by default
2017-01-08 18:55:21 +01:00
Jon Surrell
0aab3282f4
Add more sanitizing
...
These values should be controlled, but additional sanitization is preferable.
2017-01-08 18:53:01 +01:00
Mike Jolley
66c3cff76d
More escaping
2017-01-06 14:09:36 +00:00
Mike Jolley
76f8c3dddd
Escaping for scruitinizer
2017-01-06 12:45:28 +00:00
Mike Jolley
f7d72afcf9
Detect classname when saving attributes
2017-01-05 16:54:47 +00:00
Jon Surrell
d38e22329f
Replace count with empty check
2017-01-05 16:33:58 +01:00
Jon Surrell
e6bcc1aeb6
Replace 'All' with 'All sources' in dropdown
2017-01-05 16:23:03 +01:00
Mike Jolley
17f78d9668
Fallback to full image
...
Closes #12759
2017-01-05 14:31:04 +00:00
Mike Jolley
5dba3d5bfe
Sync variation names
2017-01-04 15:18:02 +00:00
Beka Rice
b8c7d7e771
Fixes undefined index notices with empty select2
2017-01-03 09:16:58 -05:00
Claudio Sanches
6d45e531fd
Merge pull request #12734 from corsonr/fix_wizard_tracking_name
...
Updated WooThemes to WooCommerce
2017-01-02 17:09:22 -02:00
corsonr
62c881b3c2
Updated WooThemes to WooCommerce
2017-01-02 17:56:19 +01:00
Jon Surrell
14e5bdcf91
Fix typos
2017-01-02 14:51:56 +01:00
Jon Surrell
4cfc6b4d04
Handle top and bottom bulk actions
2017-01-02 14:42:14 +01:00
Jon Surrell
b4b5c5124a
Refactor WC_Admin_Log_Table_List::prepare_items
...
Extract several methods to simplify structure and flow
2017-01-02 14:42:13 +01:00
akashsonic
202458a1f3
Dynamic add 2 attribute.
...
Add dynamic 2 attributes rows & cols in woocommerce_wp_textarea_input function. User can add dynamic this attributes in text-area field.
2017-01-02 18:01:52 +05:30
Jon Surrell
90ef632fa5
Colorize leveles in db log table
2016-12-29 12:03:59 +01: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
e4681d268b
Remove logging
2016-12-29 11:58:43 +01:00
Jon Surrell
269addd9f8
Rework db log table
...
Change tag from text search to select list.
Flatten and clean up query logic.
Add required methods for source <select>.
2016-12-29 11:58:43 +01:00
Jon Surrell
588b1c2267
Format date in log viewer table
2016-12-29 11:58:43 +01:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
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
de076a313e
Fix settings log texts
...
Add 'woocommerce' to __ translated texts.
Improve texts.
2016-12-29 11:58:43 +01:00
Jon Surrell
970a33e182
Cleanup log list table view
...
Format log timestamp.
Add is_valid_level check to $_REQUEST level filter.
General cleanup: formatting, layout, commentary.
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
5f24eca7e2
Add delete to db log viewer table
...
Clean up some nonce logic.
Use a single <form> containing log table.
2016-12-29 11:58:43 +01:00
Jon Surrell
81eaa5ae17
Make lot threshold strings translatable
2016-12-29 11:58:43 +01:00
Jon Surrell
080cf8e436
Store log levels as integer representations in database
...
This will allow indexed ordering by severity.
Add WC_Log_Levels::get_severity_level method to translate severity
integers to level strings. The inverse of WC_Log_Levels::get_level_severity.
Add context to tests.
2016-12-29 11:58:43 +01:00
Jon Surrell
be38e8f2fe
Add log threshold setting to settings page
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
e2f76bcd54
Fix logs-db redirects
2016-12-29 11:58:42 +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
Jon Surrell
44ec07902d
Add confirmation to db log flush
2016-12-29 11:58:42 +01:00
Jon Surrell
c945d727d5
Add log flushing to db log viewer
2016-12-29 11:58:42 +01:00
Jon Surrell
e42d2e61fd
Update print_r to use wc_safe_dump
2016-12-29 11:58:42 +01:00
Jon Surrell
7a3c6bcc0c
Fix phpcs issues
2016-12-29 11:58:42 +01:00
Jon Surrell
d6a6b8771d
Add level views to db log table
2016-12-29 11:58:42 +01:00
Jon Surrell
30fdca65a9
Log viewer via html template
2016-12-29 11:58:42 +01:00
Jon Surrell
bc3f788507
Implements database log viewer
2016-12-29 11:58:42 +01:00
Jon Surrell
9adb64b6b9
Restore log deletion from admin log viewer page
...
WC_Logger no longer controls logging and has no knowledge of files.
Correctly handle `remove_log` action via file log handler.
2016-12-29 11:58:42 +01:00
Mike Jolley
daea231ab7
Merge pull request #12666 from woocommerce/select2-4
...
Upgrade Select2 to V4
2016-12-24 14:40:09 +00:00
Mike Jolley
f3dc355632
Check post data is set
...
Closes #12670
2016-12-22 14:41:39 +00:00
Mike Jolley
92968492a0
Customer search
2016-12-21 14:18:33 +00:00