Commit Graph

8807 Commits

Author SHA1 Message Date
opportus cff7189a87 improved structured data - branch update
Travis CI check...
2016-09-21 15:52:27 +02:00
corsonr 97e95e3e99 fixed extra space and escaped $args[autofocus] 2016-09-16 09:53:33 -07:00
Mike Jolley 74063fe52c Merge pull request #11908 from woothemes/download-layout-11806
Tweak download layout
2016-09-15 20:56:39 +01:00
Manos Psychogyiopoulos 55f4a846db fix variation is_on_backorder when parent manages stock 2016-09-15 22:56:33 +03:00
David Marín 22229d1e2e Fix space between parenthesis 2016-09-15 21:43:56 +02:00
Ashley Rich fa66dfa935 Fix session locking on async requests 2016-09-15 19:05:16 +01:00
James Kemp b2bf294e03 Min/Max Modifications
CAST min/max as decimal. Otherwise, a max of 59.99 will return 59 instead of 60 - so the product will be missed when using the filter.

Added filter on post_type so I can add product_variation for compatibility with one of my plugins.
2016-09-15 12:05:59 +01:00
David Marín 3ab087212b Update class-wc-logger.php 2016-09-15 11:04:35 +02:00
opportus 8123ba6184 improved structured data - merge conflict fix 2016-09-14 22:15:49 +02:00
opportus eaa7def18a improved structured data - some little tweaks 2016-09-14 22:08:57 +02:00
Claudio Sanches 7172429244 Fixed coding standards 2016-09-14 16:00:14 -03:00
Claudio Sanches 0fced8d5d5 Fixed wrong "quantity" while reducing stock
cc @mikejolley
2016-09-14 15:35:17 -03:00
Claudio Sanches 9817caccdd Removed multiple lines #11915 2016-09-14 11:27:11 -03:00
Claudio Sanches 651a4cb26b Merge pull request #11907 from woothemes/ua-tracking-11848
User agent tracking
2016-09-14 10:33:37 -03:00
David Marín d74e4e27a7 Update class-wc-logger.php 2016-09-14 13:28:28 +02:00
Taylor Lovett 01a92a3bcb Add filter to continue uploading images if one fails (api) 2016-09-13 21:03:05 -04:00
Claudio Sanches 16eb18a0ab [REST API] Include variation description, closes #11815 2016-09-13 19:28:25 -03:00
Claudio Sanches 2e26752e47 Introduces the woocommerce_after_save_address_validation action, closes #11877 2016-09-13 19:13:12 -03:00
Claudio Sanches 089b5e93f2 Fixed coding standards 2016-09-13 19:04:33 -03:00
Claudio Sanches c5c1e9ecbe Merge pull request #11904 from BIOSTALL/patch-1
Fix settings sectionend
2016-09-13 18:53:15 -03:00
Claudio Sanches e72af424ac Check if FS_CHMOD_FILE is defined #11901 2016-09-13 18:38:16 -03:00
Claudio Sanches be029374ce Fixed coding standards 2016-09-13 18:24:21 -03:00
Claudio Sanches 5de8dd0d65 Fixed coding standards 2016-09-13 17:47:19 -03:00
rspublishing e640707f89 Use numbered index in sprintf 2016-09-13 14:39:16 +02:00
rspublishing 8265295862 Minor text changes 2016-09-13 13:56:49 +02:00
rspublishing 9ec739c167 Link to SSL/HTTPS doc from checkout settings 2016-09-13 13:50:52 +02:00
rspublishing 2526ba49a8 Replace WooThemes.com with WooCommerce.com 2016-09-13 13:47:40 +02:00
Mike Jolley 4d041b2ce2 chmod file when closed. 2016-09-12 23:37:02 +01:00
Mike Jolley 78bde4ad09 Tweak download layout 2016-09-12 23:00:31 +01:00
Mike Jolley b5cb254941 Add zone ID for bw comp 2016-09-12 22:16:32 +01:00
Mike Jolley 0e6bbc8210 User agent tracking 2016-09-12 22:11:05 +01:00
corsonr b3236b4088 Add autofocus support 2016-09-12 21:33:52 +02:00
Steve Marks 9f007e0875 Fix settings sectionend
Fixed incorrect sectionend reference in Email settings
2016-09-12 15:40:28 +01:00
Mike Jolley e0489e4706 [2.6][api] Skip empty attribute. 2016-09-12 15:13:32 +01:00
Ashley Rich 33048e742c Fix session locking in background processing class 2016-09-12 15:10:04 +01:00
Mike Jolley 1037f9b8c4 Merge pull request #11895 from tlovett1/api-silent-images-fail
(API) Add filter to continue uploading images if one fails
2016-09-12 14:53:58 +01:00
Mike Jolley 481471a64c Merge remote-tracking branch 'origin/master' 2016-09-12 14:53:10 +01:00
Mike Jolley f9b2ed88c2 Merge branch 'pr/11883'
# Conflicts:
#	includes/class-wc-shortcodes.php
2016-09-12 14:53:04 +01:00
Mike Jolley 8b8c2780b4 Merge pull request #11901 from rasmusbe/patch-1
Make WC_Logger follow FS_CHMOD_FILE when file is created
2016-09-12 14:49:21 +01:00
Mike Jolley 18b5648211 Merge branch 'slash1andy-patch-1' 2016-09-12 14:41:08 +01:00
Mike Jolley 63b6323b54 no www. 2016-09-12 14:41:03 +01:00
Mike Jolley 22c9c3aebf [2.6][api] Also need to decode the input. Passes unit tests. 2016-09-12 14:39:00 +01:00
Mike Jolley 978fa976f7 [2.6][api] Convert posted names to the API to slugs before save.
Fixes #11871

@claudiosmweb can you review the API changes made today - there are a
few like this - for inclusion in 2.6 asap. Let me know on slack.
2016-09-12 14:37:44 +01:00
Mike Jolley 8d19028754 Merge branch 'pr/11876' 2016-09-12 14:23:10 +01:00
Mike Jolley 0b6f1cbca8 [2.6][API] decode before sanitize
Fixes #11874
2016-09-12 13:46:01 +01:00
Mike Jolley 804178b6d1 [2.6] Remove empty ids.
Fixes #11887
2016-09-12 13:10:08 +01:00
Mike Jolley e7fb89be5f Protocol relative images
Closes #11884
2016-09-12 13:03:44 +01:00
Rasmus 9e8670015e Make WC_Logger follow FS_CHMOD_FILE when file is created
When WC_Logger creates a file it should use the permissions defined in FS_CHMOD_FILE

See https://codex.wordpress.org/Editing_wp-config.php#Override_of_default_file_permissions
2016-09-12 12:59:18 +02:00
Taylor Lovett 6eae03c6df Make sure to continue to next image on error 2016-09-09 23:49:45 -04:00
Taylor Lovett 3c164427ca Add filter to continue uploading images if one fails (api) 2016-09-09 22:41:41 -04:00
Andrew Wikel a489d492b8 Change the "Premium Support" link to updated link
Change the domain to WooCommerce.com and then used the link from the menu on WooCommerce.com
2016-09-09 14:50:26 -05:00
Claudio Sanches 25b42700c2 Added support for the new US postcode format with 9 digits 2016-09-09 14:51:41 -03:00
Aristeides Stathopoulos 230c0398b3 fix failing test from master 2016-09-09 19:39:09 +03:00
Aristeides Stathopoulos 831b4463d0 Merge pull request #5 from woothemes/master
sync
2016-09-09 16:49:48 +03:00
Justin Shreve c8ddca0635 Merge pull request #11882 from woothemes/settings-and-api-fixes
Settings & API Fixes
2016-09-09 05:52:23 -07:00
Justin Shreve e1e6c682b5 * Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos 888ad9bfdd another PHP syntax fix for lower PHP versions 2016-09-09 15:34:46 +03:00
Aristeides Stathopoulos 88da683f0a Merged branch master into master 2016-09-09 14:49:32 +03:00
Aristeides Stathopoulos 0cf5fc4904 fix PHP Fatal errors on lower PHP versions
Fatal error: Can't use method return value in write context
2016-09-09 14:49:14 +03:00
Aristeides Stathopoulos 7a509f53d4 Merge pull request #4 from woothemes/master
sync
2016-09-09 03:17:28 +03:00
Aristeides Stathopoulos 9668247b95 WordPress.PHP.YodaConditions.NotYoda 2016-09-09 03:14:28 +03:00
Justin Shreve a36b25a68f Add setting validation to the REST API 2016-09-08 15:20:15 -07:00
Justin Shreve b665f5e1c6 Setting IDs do not need to be unique across the entire system.. just the group. 2016-09-08 15:20:15 -07:00
Justin Shreve 49676d1781 Hook up email settings to the API
Add support for option_key when registering settings, so we can also manage settings that are stored in the array of a single option.
2016-09-08 15:20:15 -07:00
Justin Shreve 9889222bd1 Swap "doesn't" with "does not" in 404 error messages. 2016-09-08 15:17:02 -07:00
Chase Wiseman 51b5d11b97 Prevent average product rating meta from being set for other post types 2016-09-08 09:36:56 -07:00
Daniel Hüsken 47561278b8 API: Attribute slug will not be sanitize correctly #11874 2016-09-08 15:06:19 +02:00
Daniel Hüsken 367e16ffa9 API Variation returns sanitize attribute names #11868 2016-09-08 14:13:39 +02:00
Mike Jolley 238483ff2b No need to strip pa_ here
Closes #11868
2016-09-08 12:04:51 +01:00
Mike Jolley c96a3ea395 [2.6] Merge pull request #11860 from jobthomas/taxes-ux
Taxes ux
2016-09-08 10:07:45 +01:00
Mike Jolley 459d5584a4 Merge pull request #11865 from iconicwp/patch-1
[actions] Pass $atts into do_action
2016-09-08 10:06:56 +01:00
Mike Jolley 7c134d7f7c Do action when login fails.
Closes #11864
2016-09-08 10:06:16 +01:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Iconic 2dbeabffe1 [actions] Pass $atts into do_action 2016-09-07 19:17:46 +01:00
Mike Jolley 9cca27f21e Take out admin check
@justinshreve I’m not sure why we had the admin check there, but I’ve
removed it because the setting of WP_ADMIN was breaking unrelated unit
tests. I think we should leave constants alone if possible and just
modify gateways.
2016-09-07 12:37:39 +01:00
Job ff9c553b1b coding standards 2016-09-07 13:34:37 +02:00
Job ffa2c4dec2 crucial update 2016-09-07 13:25:34 +02:00
Job d086cf3248 update function 2016-09-07 13:12:18 +02:00
Job 50fe611cdb again small update after review 2016-09-07 13:01:55 +02:00
Job a0274e9dc5 small update 2016-09-07 12:47:24 +02:00
Job d0aaf68f27 Update UX for disabled taxes
If taxes are disabled in the “General settings tab”, then the “Tax” tab
disappears, and the suffix can no longer be edited, but is still
displayed in the store

This fix makes sure that the suffix is only displayed if taxes are
enabled
2016-09-07 12:38:38 +02:00
Mike Jolley 311c540662 Merge pull request #11833 from aristath/master
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley e4c91aef62 [2.6] Don't SUM meta
#11838
2016-09-07 10:05:17 +01:00
Mike Jolley 3f9ab31461 Fix CRUD refunds 2016-09-07 10:04:56 +01:00
Mike Jolley ed2b7a9f57 [2.6] refunded_order_items should be reset per loop
#11838
2016-09-07 09:31:17 +01:00
Mike Jolley cf59524dd7 Fix order total race condition in CRUD 2016-09-07 09:28:11 +01:00
Mike Jolley d4fb2b4ade [2.6] Sync variations only
Closes #11852
2016-09-07 08:28:53 +01:00
Mike Jolley 0e409a4526 [2.6] Add missing tables to wpmu_drop_tables
Closes #11850
2016-09-07 08:26:51 +01:00
Justin Shreve 5113a8d19f Fix unusued variable in Payment Gateway's prepare_item_for_response and fix the phpdoc for get_gateway 2016-09-06 13:34:25 -07:00
Justin Shreve 376a53de04 Merge pull request #11846 from woothemes/payment-gateway-api
Add Payment Gateways API
2016-09-06 10:34:09 -07:00
Justin Shreve 3dc0c5242a Update method_title and method_description to use their get_ methods, also update the resource does not exist message, based on feedback. 2016-09-06 10:32:54 -07:00
Claudio Sanches 22fd124b31 Merge pull request #11843 from terence1990/master
Order statuses valid for Order Again
2016-09-06 13:40:05 -03:00
terence1990 7f686c2f73 Spaces 2016-09-06 13:00:52 +01:00
Mike Jolley 0618719b03 [2.6] Dynamic max run text
fixes #11849
2016-09-06 12:52:10 +01:00
Mike Jolley 940170edc8 Tweak date format 2016-09-06 12:03:27 +01:00
Mike Jolley 0c78ed7f9b [2.6] Start sale on variation save if applicable
Fixes #11804
2016-09-06 11:37:20 +01:00
Mike Jolley cf5da4adb3 [2.6] Don't remove hyphens in attribute labels
Closes #11832
2016-09-06 10:40:08 +01:00
Justin Shreve fd952e8efa Payment Gateways API 2016-09-05 14:49:29 -07:00
terence1990 36311b76f6 Fix: Order Again Statuses 2016-09-05 17:30:58 +01:00
terence1990 8b838c88a8 Order statuses valid for Order Again 2016-09-05 17:25:17 +01:00
Aristeides Stathopoulos 6ac7f03241 Generic.Formatting.DisallowMultipleStatements.SameLine 2016-09-02 06:40:52 +03:00
Aristeides Stathopoulos 9dc4949e0a Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis 2016-09-02 06:17:42 +03:00
Aristeides Stathopoulos 2346c3b735 Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace 2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos c6a87301c1 Squiz.Commenting.InlineComment.SpacingBefore 2016-09-02 05:48:11 +03:00
Aristeides Stathopoulos 5280722f21 Squiz.Commenting.InlineComment.SpacingAfter 2016-09-02 05:47:24 +03:00
Aristeides Stathopoulos 15bec47475 Squiz.Commenting.InlineComment.NoSpaceBefore 2016-09-02 05:42:33 +03:00
Aristeides Stathopoulos 39d4d4bd69 Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar 2016-09-02 05:40:36 +03:00
Aristeides Stathopoulos cc0b29ccf4 PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket 2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos d4e3faf014 PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket 2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos 0516e96843 PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket 2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos 8fe4cd65a4 PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket 2016-09-02 04:12:22 +03:00
Aristeides Stathopoulos d922d045a7 Squiz.Commenting.BlockComment.NoNewLine + indentation on class-wc-cart 2016-09-02 04:03:52 +03:00
Aristeides Stathopoulos f648657432 enabling more tests 2016-09-02 03:50:48 +03:00
Aristeides Stathopoulos e07511502d Additional coding-standards fixes. 2016-09-02 03:26:24 +03:00
Aristeides Stathopoulos c823236098 Fix failing tests. 2016-09-02 00:33:36 +03:00
Aristeides Stathopoulos fde1037757 fix failing tests. 2016-09-01 23:50:14 +03:00
opportus 53a257bb91 improved structured data - merge conflict fix 2016-09-01 14:15:15 +02:00
Mike Jolley 1b2df3dd3b Merge branch 'pr/11797'
# Conflicts:
#	includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
#	includes/api/class-wc-rest-coupons-controller.php
#	includes/class-wc-coupon.php
#	tests/unit-tests/api/coupons.php
#	tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley 402d0ff077 Merge branch 'master' into pr/11797
# Conflicts:
#	includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
#	includes/api/class-wc-rest-coupons-controller.php
#	includes/class-wc-coupon.php
#	tests/unit-tests/api/coupons.php
#	tests/unit-tests/coupon/crud.php
2016-09-01 11:43:31 +01:00
Mike Jolley 4e14c4abeb Merge pull request #11821 from woothemes/customer-exceptions
Customer CRUD/API exceptions
2016-09-01 10:58:35 +01:00
Claudio Sanches f6d20eb324 [REST API] Fixed products query by SKU 2016-08-31 19:36:55 -03:00
Claudio Sanches 6def1188ab Force post_type in products controller 2016-08-31 19:22:27 -03:00
Justin Shreve 43e55c3336 Instead of catching just the post_status, don't overwrite any filter args. 2016-08-31 15:15:28 -07:00
Justin Shreve 6cb9e1b613 Since we support WP_Query filtering via the API, make sure post_status filtering works too. 2016-08-31 14:39:37 -07:00
Claudio Sanches 06280a7003 HTTPS for google maps 2016-08-31 14:18:55 -03:00
Mike Jolley d30c54ef84 Fix coupon notice in cart. 2016-08-31 18:11:41 +01:00
Mike Jolley e7493b33cb Merge branch 'pr/11817' 2016-08-31 17:52:10 +01:00
Mike Jolley 0a3506777b Inline comments to make this clearer 2016-08-31 17:52:03 +01:00
Gabor Javorszky 219480b329 Save the version on the property too 2016-08-31 16:21:17 +01:00
Mike Jolley 8624156144 Merge pull request #11802 from corsonr/issue_11801
Fixes #11801
2016-08-31 15:50:32 +01:00
Mike Jolley 19f051c7ff Merge branch 'master' into customer-exceptions 2016-08-31 15:45:27 +01:00
Mike Jolley d9a0d0988b Handle meta data and fix unit tests 2016-08-31 15:43:34 +01:00
Mike Jolley 1595cc5767 remove changed 2016-08-31 13:25:13 +01:00
Gabor Javorszky 9cfa231167 Fixes reset cache and version assignment for variable product prices
Fixes #11812

$this->array was only used to return to the user. Comparison was done with $prices_array, which did not contain the version information because it was never saved in the transient.
2016-08-31 11:12:49 +01:00
Mike Jolley 335a5e262a use switch in read_manual_coupon 2016-08-30 18:58:28 +01:00
Mike Jolley 62d0619b1a Avoid legacy keys 2016-08-30 18:03:00 +01:00
Mike Jolley 7439f6d79f Use set_props 2016-08-30 17:59:41 +01:00
Mike Jolley 047242515d Make API and CRUD use consistent keys and make use of data 2016-08-30 17:50:35 +01:00
Mike Jolley b82415dfa3 Handle exceptions in API 2016-08-30 15:57:45 +01:00
Mike Jolley 1d7c8d8370 Handle read with set_props 2016-08-30 14:48:29 +01:00
Mike Jolley ee356d2f29 Add WC_Data_Exception 2016-08-30 14:34:58 +01:00
corsonr 8cb17c1923 branch conflict fix 2016-08-30 14:30:05 +02:00
Mike Jolley c4c863ffb0 Merge pull request #11792 from WPprodigy/price-filter-fix
Cast as decimal when querying prices
2016-08-30 11:48:51 +01:00
Mike Jolley 499e190efb Merge pull request #11785 from woothemes/coupon-exceptions
Coupon Exceptions and REST/CRUD improvements
2016-08-30 11:44:19 +01:00
Mike Jolley df35845d4d wc_get_coupon_id_by_code 2016-08-30 11:43:53 +01:00
Claudio Sanches f54ada22ba Merge pull request #11796 from webmandesign/patch-1
Making sure `wc_get_screen_ids` function exists
2016-08-29 14:48:06 -03:00
Justin Shreve de4296dd15 Add some missing API pieces:
* Value was missing from the settings schema (but was still present in the response).
* Added delete endpoint for shipping zones.
* Corrected permissions check/error for shipping zone methods.
2016-08-29 10:22:29 -07:00
opportus db8cb4cf15 improved structured data - fixes missused `@uses` docblock tags 2016-08-28 09:24:17 +02:00
opportus 2fd3e107ab improved structured data - branch update 2016-08-28 09:09:05 +02:00
Oliver Juhas 9a0c283b10 Making sure `wc_get_screen_ids` function exists
This is a fix for issue #11795
2016-08-27 16:46:23 +02:00
Aristeides Stathopoulos 69e6b05205 typo fix 2016-08-27 17:10:12 +03:00
Aristeides Stathopoulos 1c2a67554b fix typo 2016-08-27 16:56:21 +03:00
Aristeides Stathopoulos 3267ce6522 WordPress.WhiteSpace.OperatorSpacing.SpacingBefore 2016-08-27 09:16:28 +03:00
Aristeides Stathopoulos 72696901f3 WordPress.WhiteSpace.OperatorSpacing.SpacingAfter 2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos fb62d280b5 WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore 2016-08-27 09:07:42 +03:00
Aristeides Stathopoulos e69fafbda7 WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter 2016-08-27 09:06:22 +03:00
Caleb Burks 417d707996 Cast as decimal when querying prices 2016-08-27 01:03:06 -05:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos 7c589cf7e1 WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis 2016-08-27 07:53:52 +03:00
Aristeides Stathopoulos a19848978a WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterCloseParenthesis 2016-08-27 07:47:24 +03:00
Aristeides Stathopoulos dea39df779 WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis 2016-08-27 07:38:29 +03:00
Aristeides Stathopoulos 2101dae5a0 WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen 2016-08-27 07:35:04 +03:00
Aristeides Stathopoulos 9543c7fe1c WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis 2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos 82f3cc221e WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis 2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos 4e3c1fd865 WordPress.WhiteSpace.ControlStructureSpacing.OpenBraceNotSameLine 2016-08-27 07:09:12 +03:00
Aristeides Stathopoulos 538f8e02cc WordPress.WhiteSpace.ControlStructureSpacing.SpaceBeforeFunctionOpenParenthesis 2016-08-27 07:06:25 +03:00
Aristeides Stathopoulos d430dabb37 Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines 2016-08-27 07:04:18 +03:00
Aristeides Stathopoulos 741f2b954a Squiz.WhiteSpace.SuperfluousWhitespace.EndLine 2016-08-27 07:01:22 +03:00
Aristeides Stathopoulos 56fd004a72 WordPress.Arrays.ArrayDeclaration.FirstIndexNoNewline 2016-08-27 06:56:09 +03:00
Aristeides Stathopoulos 55075ce3a4 WordPress.Arrays.ArrayDeclaration.IndexNoNewline 2016-08-27 06:35:20 +03:00
Aristeides Stathopoulos 6c30f84fa2 WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys 2016-08-27 06:23:21 +03:00
Aristeides Stathopoulos ff852038c9 WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys 2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos 17961f6484 WordPress.Arrays.ArrayDeclaration.ValueNoNewline 2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos 478a914494 WordPress.Arrays.ArrayDeclaration.SpaceInEmptyArray 2016-08-27 05:48:53 +03:00
Aristeides Stathopoulos 72ee94d11b WordPress.Arrays.ArrayDeclaration.SpaceBeforeComma 2016-08-27 05:46:40 +03:00
Aristeides Stathopoulos 730069db06 WordPress.Arrays.ArrayDeclaration.SpaceAfterKeyword 2016-08-27 05:39:16 +03:00
Aristeides Stathopoulos 0b0f67ad28 WordPress.Arrays.ArrayDeclaration.SpaceAfterDoubleArrow 2016-08-27 05:36:32 +03:00
Aristeides Stathopoulos 14ec612760 WordPress.Arrays.ArrayDeclaration.NoSpaceBeforeDoubleArrow 2016-08-27 05:29:01 +03:00
Aristeides Stathopoulos 58b9df6564 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis 2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos 7d571bec44 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterDoubleArrow 2016-08-27 05:16:12 +03:00
Aristeides Stathopoulos 32ddc22465 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterComma 2016-08-27 05:14:16 +03:00
Aristeides Stathopoulos ec8a0b288b PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
opportus a25e296782 improved structured data - fixes the previous mistake 2016-08-26 18:52:31 +02:00
opportus e61c48272e improved structured data - a little revision 2016-08-26 18:37:19 +02:00
Mike Jolley 8eef062079 Merge pull request #11781 from woothemes/shipping-method-api
Shipping Methods API
2016-08-26 16:51:55 +01:00
Mike Jolley b0672a000a Fixed unit tests 2016-08-26 16:44:00 +01:00
Shiva Poudel 330215db42 Check tax object name before modifying label 2016-08-26 21:14:50 +05:45
Mike Jolley 7d8bacc2b3 Missing $wpdb 2016-08-26 16:15:18 +01:00
opportus f0af39a0fa improved structured data - branch update 2016-08-26 17:01:01 +02:00
opportus fff204490c improved structured data - limits product structured data on archives and shop page 2016-08-26 16:57:49 +02:00
Mike Jolley f034e1f69d Exception handling and REST optimisation 2016-08-26 15:42:42 +01:00
Mike Jolley 3ff41ceea4 No need to add meta since CRUD handles this 2016-08-26 15:26:05 +01:00
Mike Jolley 5c40236d79 Fixes notices 2016-08-26 15:24:01 +01:00
Mike Jolley ed01282340 Made data match schema 2016-08-26 15:20:44 +01:00
Mike Jolley 210763e536 use CRUD in admin 2016-08-26 14:50:17 +01:00
Mike Jolley b4746e28cf Optimise read_manual_coupon 2016-08-26 13:13:50 +01:00
Justin Shreve 849a208e54 Fix issues based on feedback. Make sure to use WC_Shipping_Zone's methods when avaiable, fix up some coding standards, and add a new delete_shipping_method to WC_Shipping_Zone 2016-08-26 04:57:30 -07:00
Mike Jolley 69c48db0a8 Correct ids method 2016-08-26 12:53:02 +01:00
Mike Jolley cd81622d15 Read props 2016-08-26 12:52:22 +01:00
Mike Jolley 7405053a6a Add exceptions 2016-08-26 12:33:33 +01:00
Mike Jolley 48243109c0 This is ran on set 2016-08-26 12:23:53 +01:00
Mike Jolley c6d0d059fd Remove typecasts on get 2016-08-26 12:22:05 +01:00
Mike Jolley 4cf54e445b Merge pull request #11777 from leewillis77/feature/wc_attribute_label_optimisation
Use wc_get_attribute_taxonomies() in wc_attribute_label()
2016-08-26 11:27:06 +01:00
Mike Jolley 6b6c856cc7 Filter the template path
Closes #11774
2016-08-26 11:03:08 +01:00
Mike Jolley f5cc89eec2 Merge pull request #11762 from woothemes/WC_Data_Exception
WC Data Exceptions
2016-08-26 10:57:41 +01:00
Mike Jolley bd2e8ce0cc Remove returns 2016-08-26 10:54:18 +01:00
Mike Jolley 9bd57414c5 Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now. 2016-08-26 10:48:17 +01:00
Justin Shreve 147c18c197 Add the ability to update/create/delete shipping method instances 2016-08-25 20:34:26 -07:00
Justin Shreve 3ceb189118 Add GET /shipping_methods and GET /shipping_methods/METHOD_ID
Also adds tests.
2016-08-25 11:48:17 -07:00
Lee Willis 9a1aa1fd93 Use get_the_terms instead of wp_get_post_terms to take advantage of caching 2016-08-25 18:26:37 +01:00
Mike Jolley 461ec4da16 Return false instead of throwing exception 2016-08-25 17:48:36 +01:00
Mike Jolley 627b08ba37 Test coverage 2016-08-25 17:42:47 +01:00
Lee Willis e3d5419b97 Use wc_get_attribute_taxonomies() in wc_attribute_label()
Currently wc_attribute_label() runs a SQL query every time it is called,
with no caching. Swap to using wc_get_attribute_taxonomies() which gives
us transient caching of the underlying data.
2016-08-25 17:34:18 +01:00
Mike Jolley 658970cbc8 No string required here 2016-08-25 17:12:32 +01:00
Mike Jolley 885231baba yoda 2016-08-25 17:10:59 +01:00
Mike Jolley 4ea396aab1 When deleting a tax rate class, remove its rates
Closes #11759
2016-08-25 15:58:30 +01:00
Mike Jolley 1e037684eb [2.6] Rest of the world ID 0 zone handling
Fixes #11688 Using NULL rather than 0 as default so rest of the world
can be treated different to a new zone. Prevents dupes.
2016-08-25 15:41:47 +01:00
Mike Jolley 1f1868195b Write context error 2016-08-25 14:32:28 +01:00
Mike Jolley b4e05154d7 Error handling for adding items 2016-08-25 14:22:27 +01:00
Mike Jolley 7f87800d8d Fix save order item function 2016-08-25 13:50:37 +01:00
Mike Jolley 3637814b92 Revert use of default_data for default args and just set that in constructor 2016-08-25 13:31:03 +01:00
Mike Jolley 25883f8687 Set_props helper to load data from DB and handle errors 2016-08-25 13:05:27 +01:00
Mike Jolley 077f57f139 Merge branch 'master' into WC_Data_Exception 2016-08-25 11:03:14 +01:00
Mike Jolley d936dfa87e [2.6] Allow has_shipping_method to deal with instance ids
Fixes #11772
2016-08-25 10:58:11 +01:00
Mike Jolley 3c13ce6fcd [2.6] Handle object when generate_cart_id is used.
Closes #11767
2016-08-25 10:58:11 +01:00
Mike Jolley 2d30e8469f Merge pull request #11768 from WPprodigy/recently-viewed-widget-sorting
Sort “Recently Viewed” products by the view order
2016-08-25 10:48:07 +01:00
Mike Jolley aa0078de8f Merge pull request #11769 from WPprodigy/nav-menus-metabox
Nav menus metabox
2016-08-25 10:47:40 +01:00
Mike Jolley 543fc31d81 Fix filter and unit test
#11771
2016-08-25 10:45:50 +01:00
Mike Jolley 95db2f26cd Set meta to 'null' to delete it during save.
Fixes #11771
2016-08-25 10:32:42 +01:00
Caleb Burks a3524c95f3 Filter instead of action 2016-08-24 18:26:14 -05:00
Caleb Burks dc876749cc Rename taxonomies at Appearance > Menus > Pages 2016-08-24 18:22:47 -05:00
Caleb Burks 306e1dfa39 Sort “Recently Viewed” products by the view order
orderby ‘post__in’, and reverse the array so the most recently viewed product shows up on top.
2016-08-24 17:46:23 -05:00
Claudio Sanches d4d1a95f21 Merge pull request #11765 from woothemes/system-status-tools-options
Remove checkbox options in system status tools
2016-08-24 14:19:19 -03:00
Claudio Sanches 16e386c873 Merge pull request #11757 from woothemes/get-coupon-code-by-id
Get coupon code by
2016-08-24 14:18:23 -03:00
Mike Jolley 0667c1cde1 Remove option based tools 2016-08-24 17:35:13 +01:00
Mike Jolley 84487d0f4b Shipping debug mode moved to shipping settings 2016-08-24 16:55:34 +01:00
Mike Jolley 2dc3e5252f Made WC_TEMPLATE_DEBUG_MODE a constant only 2016-08-24 16:46:07 +01:00
Mike Jolley 26c4b3ce13 Delete if qty = 0 2016-08-24 16:09:39 +01:00
Mike Jolley a8dc46cfdf Default line item data 2016-08-24 16:06:35 +01:00
Mike Jolley 938361535f Exception handling 2016-08-24 16:02:19 +01:00
Mike Jolley cde78abed3 Working on catching errors 2016-08-24 15:26:35 +01:00
Mike Jolley d9798f7226 Set reading to prevent exceptions during DB load 2016-08-24 14:37:19 +01:00
Mike Jolley 7e30e8dda3 Set defaults and handle order reads without exceptions 2016-08-24 12:34:19 +01:00
Mike Jolley 53f01b52a8 Bring back WC_Data_Exception 2016-08-24 10:46:29 +01:00
Mike Jolley c839944d46 Revert "Remove exception class"
This reverts commit 7c271e5dc5.
2016-08-24 10:20:58 +01:00
Claudio Sanches c8726cc42b Fixed method return value in write context
cc @justinshreve
2016-08-24 01:50:12 -03:00
Claudio Sanches 3633960165 Removed dead global variables 2016-08-23 20:02:38 -03:00
Claudio Sanches 00b2e43250 DRY 2016-08-23 20:00:30 -03:00
Claudio Sanches 4513e33031 Introduces the wc_get_coupon_code_by_id() function 2016-08-23 19:52:14 -03:00
Claudio Sanches 5e069a4f4e Merge pull request #11756 from woothemes/update/coupon-api-crud
Update Coupon API to use CRUD
2016-08-23 19:51:27 -03:00
Justin Shreve 77088a4a22 Coupon ID will also be an integer, so we can switch the prepare statement to expect that 2016-08-23 13:55:21 -07:00
Mike Jolley b727acd96e Implement get and set prop methods 2016-08-23 18:48:48 +01:00
Mike Jolley e08e5a816d 2d array handling 2016-08-23 15:49:34 +01:00
Mike Jolley 2636d04ba6 Setters 2016-08-23 15:25:50 +01:00
Mike Jolley b1bd1c2227 Fee 2016-08-23 15:02:57 +01:00
Mike Jolley 3e3e35d50d Add set prop/get prop helper, error handler, and validation to item product class 2016-08-23 14:58:44 +01:00
opportus 9001f094ff improved structured data - branch update 2016-08-23 15:49:20 +02:00
opportus 713adf2439 improved structured data - disable variable offers for looped products 2016-08-23 15:44:46 +02:00
Mike Jolley 7c271e5dc5 Remove exception class 2016-08-23 13:43:35 +01:00
Mike Jolley 74c96e305b Error method 2016-08-23 13:43:26 +01:00
Mike Jolley aa5fee3372 Merge pull request #11752 from corsonr/issue_11751
Fix issue 11751
2016-08-23 10:35:21 +01:00
corsonr f430c23cdc fix issue 11751 2016-08-23 11:16:38 +02:00
Multidots 41d079f086 Fixes add reply-to to admin emails ref #11630 2016-08-23 13:09:27 +05:30
Multidots c7fc7cce07 Merge branch 'master' of https://github.com/nishitlangaliya/woocommerce 2016-08-23 12:41:22 +05:30
Claudio Sanches 2407a880f7 Updated the default colors for emails to match the Woo Style Guide
Closes #11748

cc @jameskoster
2016-08-22 20:59:56 -03:00
Justin Shreve a243829db6 Convert Coupon Controller to use CRUD operations 2016-08-22 15:06:21 -07:00
Justin Shreve 7da590e422 Coupon Tests:
* Move tests for legacy endpoints to a legacy test folder.
* Create a test class to test the WC-API coupons endpoint.
2016-08-22 13:50:32 -07:00
Claudio Sanches eb55096a32 Allow oAuth1.0a authentication using headers 2016-08-22 17:39:41 -03:00
Claudio Sanches 7a0c5bc19b REST API expect meta data ID as an integer value
cc @mikejolley
2016-08-22 16:59:03 -03:00
Claudio Sanches 38e1be71eb ID first for all elements in the REST API
cc @mikejolley
2016-08-22 16:58:34 -03:00
Claudio Sanches 0da91bb7d7 Merge pull request #11746 from woothemes/crud-meta-id
Swaps meta_id for id across crud and api
2016-08-22 16:43:57 -03:00
Mike Jolley f34f1aa635 Simplify prepare_line_items logic 2016-08-22 19:58:30 +01:00
Mike Jolley 39f4a1cdca Swaps meta_id for id across crud and api 2016-08-22 19:37:34 +01:00
Mike Jolley 169780d31b woocommerce-message--success
Followed
https://github.com/woothemes/woocommerce/wiki/CSS-SASS-coding-guidelines
-and-naming-conventions

Closes #11722
2016-08-22 18:41:38 +01:00
Mike Jolley 2cea613566 Fix shipping meta save
#11601
2016-08-22 18:07:52 +01:00
Mike Jolley a8e47992a6 Put back add_product for convenience. Fix unit tests. 2016-08-22 18:00:52 +01:00
Mike Jolley 3d696266d2 Set_address 2016-08-22 17:03:59 +01:00
Mike Jolley 7cf75f5085 Remove use of deprecated functions 2016-08-22 16:57:54 +01:00
Mike Jolley 95b11606fc get_product_from_item -> get_product 2016-08-22 16:51:24 +01:00
Mike Jolley c88984eb0e Replace add methods 2016-08-22 16:48:19 +01:00
Mike Jolley e079895c08 Set rate in one go for tax rate items 2016-08-22 14:52:03 +01:00
Mike Jolley fc2e039882 Deprecate add_product etc
#11601
2016-08-22 14:51:53 +01:00
Mike Jolley 09e43cf797 read only refunded by 2016-08-22 13:15:15 +01:00
Mike Jolley fdd7e797ba API get refunds 2016-08-22 13:15:15 +01:00
Mike Jolley 9e45927803 Create refund with crud 2016-08-22 13:15:15 +01:00
Mike Jolley 7eb9720fde Merge pull request #11737 from thii/add/paypal-here-txn-type
Add PayPal Here as a valid transaction type
2016-08-22 09:50:29 +01:00
Mike Jolley 698c84827d Merge pull request #11717 from woothemes/improve-configure-terms
Change "Configure terms" into a link
2016-08-22 09:49:27 +01:00
Mike Jolley 9558c9e99a Merge pull request #11730 from woothemes/improve-log-viewer
Removed internal scroll from log viewer
2016-08-22 09:48:55 +01:00
nishit.langaliya 94ed2fd96d Fixes: Add reply-to to admin emails ref #11630 2016-08-22 11:42:21 +05:30
Claudio Sanches 8fe4c14e78 [REST API] Fixed customer last order data 2016-08-20 14:29:48 -03:00
Claudio Sanches a6ffd4cafd Update customer fields 2016-08-20 14:29:27 -03:00
Claudio Sanches f7bf0b1184 Improve save customer meta fields and removed extra escape function #11733 2016-08-20 13:02:04 -03:00
Claudio Sanches 4c8a60fa06 Allow checkboxes in customer profiles, closes #11733 2016-08-20 12:57:35 -03:00
Thi 43cd8c9578 Add PayPal Here as a valid transaction type 2016-08-20 18:19:49 +09:00
Claudio Sanches 80ee7016f8 Fixed conflicts 2016-08-19 20:31:59 -03:00
Claudio Sanches b3c0bee7fc Sort by top rated widget with meta
ref #11711

cc @mikejolley
2016-08-19 19:57:42 -03:00
Claudio Sanches d3e732322e Fixed indentation for #11583 2016-08-19 19:37:03 -03:00
Claudio Sanches e02d75bd9c Merge pull request #11583 from opportus/seo-tweaks
Seo Tweaks
2016-08-19 19:34:29 -03:00
Claudio Sanches 47177667aa Removed internal scroll from log viewer, closes #11729 2016-08-19 18:48:49 -03:00