Commit Graph

17217 Commits

Author SHA1 Message Date
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
Claudio Sanches 53f3b35c7e Merge pull request #11789 from shivapoudel/uninstall-doc
DocBlock to follow the multi-line comment
2016-08-26 15:18:19 -03:00
Shiva Poudel 8546d901f8 DocBlock to follow the multi-line comment
See: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#5-2-multi-line-comments

CC @mikejolley
2016-08-26 21:45:55 +05:45
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 fc6fba158a Merge pull request #11788 from shivapoudel/nav-obj
Check tax object name before modifying label
2016-08-26 16:47:17 +01:00
Shiva Poudel 330215db42 Check tax object name before modifying label 2016-08-26 21:14:50 +05:45
Mike Jolley 97819f5a17 Test 2016-08-26 15:53: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 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
Mike Jolley b4d6deba83 Remove var dump 2016-08-26 10:21:50 +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 6a2f87ca34 multisite sets username lowercase 2016-08-25 17:43:25 +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 04a2fcdcfe Strip square brackets so arrays are handled correctly.
Closes #11703.

@claudiosmweb does this look ok to you?
2016-08-25 16:29:10 +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 c144b8d4dd [2.6] Set header link color
Fixes #11763
2016-08-25 15:06:58 +01:00
Mike Jolley 887ba3b55f Run api tests as admin 2016-08-25 14:58:14 +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 90137f128b Update unit test 2016-08-25 10:58:11 +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