Shiki
a3f46e5526
Schema: Make display_key and *_value available for v3 and v2
...
This is just the schema and the actual functionality isn't implemented yet.
2020-10-13 22:32:30 +05:30
Shiki
b9ae830da5
Fix formatting in Orders V2 unit test
2020-10-13 22:32:30 +05:30
Shiki
f45e8b884b
Orders V3: Reuse WC_Order_Item->get_formatted_meta_data
...
Previously, I was using my own function. This time, we're using the function
available in WC_Order_Item but sanitizing the results after.
2020-10-13 22:32:30 +05:30
Shiki
2e92460df2
Orders V3: Include display_key and display_value in item meta_data
2020-10-13 22:32:30 +05:30
Shiki
d8ac282c80
Orders V3 Schema: Add display_key and display_value for meta props
2020-10-13 22:32:29 +05:30
Néstor Soriano
ab529835fa
Merge pull request #27840 from woocommerce/php8/fix-required-parameters-after-optional
...
[PHP 8] Convert optional-before-required parameters into required parameters
2020-10-08 14:22:52 +02:00
Ron Rennick
ab4a46e32e
Merge pull request #27299 from woocommerce/fix/27116
...
allow variation image to be removed via REST API
2020-10-05 09:33:50 -03:00
Nestor Soriano
7485b9165f
Convert optional-before-required arguments to required.
...
In PHP 8 required parameters after optional parameters in
function/method signatures trigger a deprecation notice. These type
of parameters are pointless since a value needs to always be
provided for them anyway, so they are actually de-facto required.
This commit converts all these not-so-optional parameters into
truly required parameters by removing their default values.
2020-10-02 09:45:09 +02:00
Nestor Soriano
53d33457e3
Fix code style/sniffer errors in a few files.
2020-10-02 09:34:09 +02:00
Claudio Sanches
70c7adfeb7
Fixed usage of package tag in REST API and templates
2020-09-17 11:56:08 -03:00
vedanshujain
4b1ebea800
Also allow null for date-time for BW
2020-08-13 16:49:44 +05:30
vedanshujain
3dd508fd35
Address review comments
2020-08-13 16:36:27 +05:30
vedanshujain
a4691dc3f3
Set type to mixed to be compatible with 5.4.
...
This prop was missed in an earlier commit.
2020-08-13 15:47:18 +05:30
vedanshujain
5c0be2a715
Give preference to null data-type over others
2020-08-13 14:17:48 +05:30
vedanshujain
147c9baf4f
Change `mixed` data type to composite for compatibility with 5.5
2020-08-13 13:30:39 +05:30
vedanshujain
083e529668
Revert "Fix compatibility for WP 5.5"
...
This reverts commit cc96f6bbd1
.
2020-08-12 19:31:40 +05:30
Ron Rennick
22867c41c1
phpcs fixes
2020-08-11 15:51:38 -03:00
Ron Rennick
78c2a07306
allow variation image to be removed via REST API
2020-08-11 15:44:03 -03:00
vedanshujain
1966b0ba9a
Changed textdomain since API is merged into core now.
2020-08-06 18:18:18 +05:30
vedanshujain
cc96f6bbd1
Fix compatibility for WP 5.5
2020-08-06 14:34:03 +05:30
vedanshujain
55a9687e6d
Make api included structure more linear.
2020-08-06 14:34:02 +05:30