Commit Graph

89 Commits

Author SHA1 Message Date
Mike Jolley af32b3ea91 Product crud admin save routine (#12174)
* Initial props

* Work on admin saving

* Set/get attributes

* Atom was moaning about this before but no longer.

* Update get_shipping_class

* WC_Product_Attribute

* Use getter in admin panel

* Fix attribute saving

* Spacing

* Fix comment

* wc_implode_text_attributes helper function
2016-11-09 15:43:20 +00:00
Rami Yushuvaev 55f08d62ae add translators comments 2016-10-29 23:03:28 +03:00
Rami Yushuvaev 93d55dade9 add translators comments 2016-10-29 20:32:38 +03:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Rami Yushuvaev 83e938af1e i18n: Merge similar translation strings to reduce the total strings count #11905 2016-10-11 04:39:13 +03:00
Claudio Sanches be029374ce Fixed coding standards 2016-09-13 18:24:21 -03:00
Aristeides Stathopoulos 888ad9bfdd another PHP syntax fix for lower PHP versions 2016-09-09 15:34:46 +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 9668247b95 WordPress.PHP.YodaConditions.NotYoda 2016-09-09 03:14:28 +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 fde1037757 fix failing tests. 2016-09-01 23:50:14 +03: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
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos d430dabb37 Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines 2016-08-27 07:04:18 +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
Mike Jolley ed01282340 Made data match schema 2016-08-26 15:20:44 +01:00
Mike Jolley 7cf75f5085 Remove use of deprecated functions 2016-08-22 16:57:54 +01:00
Mike Jolley 190cd0bf86 Remove direct access of item props in admin 2016-08-19 15:08:00 +01:00
Mike Jolley f3651a9881 Fix user agent calls 2016-08-12 12:53:09 +01:00
Mike Jolley 8d58febaf8 Merge branch 'master' into orders-crud-function-update
# Conflicts:
#	includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley 31803f4e51 Billing/shipping 2016-08-08 16:46:58 +01:00
Mike Jolley 7b0d9a3e61 IP and notes 2016-08-08 16:24:16 +01:00
Mike Jolley 6bf05396c2 date_paid 2016-08-05 16:14:30 +01:00
Mike Jolley b8bf05df11 get_user_agent 2016-08-05 16:10:45 +01:00
Mike Jolley 0a0330bac0 customer_user 2016-08-05 16:09:40 +01:00
Mike Jolley 007a767657 billing_phone 2016-08-05 16:09:04 +01:00
Mike Jolley 7685587b22 payment_method 2016-08-05 16:04:41 +01:00
Mike Jolley 693e5ece36 billing_company 2016-08-05 16:03:09 +01:00
Mike Jolley 8d3b4bc5a4 payment_method_title 2016-08-05 15:59:55 +01:00
Mike Jolley 1c18c2f44a billing_first_name 2016-08-05 15:58:44 +01:00
Mike Jolley 84c52370fa more getters 2016-08-05 15:57:40 +01:00
Mike Jolley 39b4831e95 get_id 2016-08-05 15:56:23 +01:00
Mike Jolley 9181c107a8 get_currency 2016-08-05 15:49:17 +01:00
Mike Jolley 1bc9da3e91 Merge branch 'master' into WC-CRUD
# Conflicts:
#	includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley 3d8258baea [2.6] [CLI] Explode tags and cat IDS to allow multiple comma values
Closes #11516
2016-07-25 13:20:47 +01:00
Mike Jolley 4f5896d908 [2.6] Only allow image MIME type upload via APIs 2016-07-21 16:20:13 +01:00
Claudio Sanches 2b6cbc7629 Sanitize image metadata 2016-07-19 14:24:11 -03:00
Claudio Sanches 4ed8d46867 [REST API] Make easy to update order line items #11450 2016-07-19 14:11:44 -03:00
Claudio Sanches 34a28d6841 [CLI] Allow filter the product variable types, closes #11240 2016-06-24 12:36:34 -03:00
Claudio Sanches 1e0077dc6e Use same translation string for errors 2016-06-20 17:43:09 -03:00
Mike Jolley b2ddd379e3 Use same translation string for errors 2016-06-20 10:54:23 +01:00
Claudio Sanches 05bf00657d Help debug remote image upload 2016-06-16 19:26:27 -03:00
Mike Jolley 78142a8ebb Merge branch 'master' into WC-CRUD
# Conflicts:
#	includes/class-wc-checkout.php
#	includes/class-wc-coupon.php
#	includes/class-wc-customer.php
#	tests/unit-tests/cart/cart.php
#	tests/unit-tests/cart/functions.php
#	tests/unit-tests/coupon/coupon.php
#	woocommerce.php
2016-06-13 15:01:58 +01:00
Duoc Nguyen 36ccb0212e Correct docblock for method set_product_image_as_attachment 2016-06-09 16:50:58 +07:00
Mike Jolley 730019ef18 scrutinizer best practice 2016-06-06 19:39:23 +01:00
Mike Jolley d4d6f3181c Best practice tweaks 2016-06-06 17:24:31 +01:00
Matej Kravjar a2c85987e0 [API] Fixed product create not honoring --porcelain argument 2016-05-19 19:34:37 +02:00
Mike Jolley ed08e51ddb Status updates via API are manual
Closes #10943
2016-05-19 11:50:19 +01:00