Claudio Sanches
1c6529cc83
Merge pull request #18442 from dougaitken/importer-link
...
add importer link
2018-01-11 22:32:15 -02:00
Claudio Sanches
81dc3cf9bb
Merge pull request #18450 from liquidweb/feature/remove-compat-check-for-tests-dir
...
Exclude the /tests/ directory from PHP Compatibility checks
2018-01-11 22:31:27 -02:00
Steve Grunwell
4cded5e9aa
Exclude the /tests/ directory from PHP Compatibility checks
...
The composer.json file in WooCommerce specifies PHPUnit version 6.2.3 as a development dependency; that version of PHPUnit sets PHP 7.0 as the minimum PHP version, effectively making the minimum development version for WooCommerce to be PHP 7.0 (hooray!).
With a more modern version of PHP as the minimum requirement for developers, the code that isn't distributed with the plugin (e.g. the /tests/ directory) doesn't necessarily need to adhere to PHP 5.2-compatible coding standards. This commit removes the /tests/ directory from the scope of the PHP Compatibility checks, enabling the test suite to leverage modern (relative to PHP 5.2, anyway) features like closures, short-array syntax, and namespaces. Embracing more modern PHP in the test suite also opens up the possibilities of using libraries like Faker to populate dummy data, rather than the hard-coded helpers that exist now.
An example test enabled by this change: developers can now use closures for filter callbacks.
add_filter( 'some_filter', function () {
return 'the filtered value';
}
$this->assertEquals( 'the filtered value', my_function() );
Without a closure, this test would need to either write a one-off method in the test class or hack around it with static properties to configure the expected filter response.
2018-01-11 23:17:22 +00:00
Jonathan Belcher
918b7a4bc2
Update Storefront link to match other link
...
Update Storefront link to match other link to match the other link in this document on line 135
2018-01-11 15:06:10 -05:00
Jonathan Belcher
42cdea1415
Updates the line inviting everyone to join
2018-01-11 13:55:15 -05:00
claudiulodro
1d7021bbaf
Bump version for RC
2018-01-11 09:13:07 -08:00
claudiulodro
32b85885b4
Recompile assets
2018-01-11 09:10:29 -08:00
Claudiu Lodromanean
16425f09aa
Merge pull request #18440 from woocommerce/fix/18437-1
...
Fixed number of args passed to woocommerce_order_item_meta
2018-01-11 09:08:17 -08:00
Doug Aitken
34242438f4
add importer link
2018-01-11 17:07:28 +00:00
Claudiu Lodromanean
c51f199c22
Merge pull request #18439 from ryanr14/master
...
Updates & renames all dummy data to sample data.
2018-01-11 08:56:11 -08:00
Claudio Sanches
cac9e0d872
Fixed number of args passed to woocommerce_order_item_meta
...
Part of #18437
2018-01-11 14:47:19 -02:00
Ryan Ray
b3af5c808d
Updates & renames all dummy data to sample data.
2018-01-11 11:39:51 -05:00
Claudiu Lodromanean
411dd50ce5
Merge pull request #18438 from woocommerce/fix/18437
...
Fixed number of args passsed to woocommerce_order_item_meta_start
2018-01-11 08:28:16 -08:00
Claudio Sanches
c96b5e77f1
Merge pull request #18435 from shivapoudel/cli/format
...
Fix undefined format in WC CLI
2018-01-11 14:23:49 -02:00
Claudio Sanches
452cc738cb
Fixed number of args passsed to woocommerce_order_item_meta_start
...
Closes #18437
2018-01-11 14:21:49 -02:00
Claudiu Lodromanean
466cf64db8
Merge pull request #18436 from woocommerce/fix/18288
...
[REST API] Handle unicode in variation attributes
2018-01-11 07:58:49 -08:00
Mike Jolley
c81b3cf165
Readme
2018-01-11 15:14:21 +00:00
Claudio Sanches
9ed1681f39
[REST API] Handle unicode in variation attributes
...
Closes #18288
2018-01-11 13:11:36 -02:00
Claudio Sanches
5b15dbe8fe
Ignore "namespace" used in REST API
2018-01-11 13:11:24 -02:00
Shiva Poudel
0856ba6376
Fix undefined format, closes #18418
2018-01-11 20:47:54 +05:45
Mike Jolley
438778f5d6
Merge remote-tracking branch 'origin/master'
2018-01-11 15:01:26 +00:00
Mike Jolley
9ac5a44d3e
Merge branch 'pr/18432'
2018-01-11 15:01:18 +00:00
Mike Jolley
0363312084
spacing
2018-01-11 15:01:07 +00:00
Claudio Sanches
a887b49bb4
Merge pull request #18430 from woocommerce/update/18405
...
Add new `$order->get_edit_order_url()` method.
2018-01-11 12:34:41 -02:00
Claudio Sanches
45dfb7d015
Merge pull request #18427 from woocommerce/fix/18426
...
Correct bulk edit price formatting.
2018-01-11 12:31:45 -02:00
Claudio Sanches
4586eadcd7
Merge pull request #18420 from tiagohillebrandt/master
...
Use table format as default.
2018-01-11 12:29:29 -02:00
Mikalai Okun
2e2e5d60e5
Updated strval() to round()
2018-01-11 08:49:54 -05:00
Mike Jolley
fbbbc7a8df
Merge pull request #18406 from woocommerce/update/themenotice
...
Remove unsupported theme notice
2018-01-11 13:46:09 +00:00
Mike Jolley
7f626926b8
Merge pull request #18417 from liquidweb/fix/get-customer-last-order
...
Rewrite wc_get_customer_last_order() to leverage the customer data store
2018-01-11 13:45:11 +00:00
Mike Jolley
405c2614a8
Use new methods
2018-01-11 12:54:48 +00:00
Mike Jolley
c7a3fd266c
phpcs
2018-01-11 12:53:47 +00:00
Mike Jolley
16870a30e7
phpcs
2018-01-11 12:32:58 +00:00
Mike Jolley
7a50512e16
Structured data
2018-01-11 12:29:12 +00:00
Mike Jolley
b17ef15f7d
phpcs
2018-01-11 12:28:08 +00:00
Mike Jolley
f1e0d4929b
Implement get_edit_order_url method.
2018-01-11 12:04:39 +00:00
Mike Jolley
be8bc99796
Merge pull request #18421 from shivapoudel/notice-logic
...
Notice logic
2018-01-11 11:32:58 +00:00
Mike Jolley
c1fc8c241a
Correct bulk edit price formatting.
2018-01-11 11:21:37 +00:00
Mike Jolley
2b1aed56b7
Merge pull request #18419 from franticpsyx/v2_update_additional_fields_for_object_exception_handling
...
[REST API v2] Unhandled exceptions thrown from update_additional_fields_for_object
2018-01-11 11:12:36 +00:00
Mikalai Okun
cd8c09769d
Workaround for precision on floating values.
2018-01-11 01:38:36 -05:00
Shiva Poudel
7e731fa4c6
PHPCS fixes
2018-01-11 10:39:30 +05:45
Shiva Poudel
4e3317bbe6
Fix - wc_notice_count logic cont...
2018-01-11 10:32:41 +05:45
Tiago Hillebrandt
84aeb00754
Use table format as default.
2018-01-11 02:41:41 -02:00
Tiago Hillebrandt
8c4a0dfefe
Use table format as default.
2018-01-10 22:32:40 -02:00
Manos Psychogyiopoulos
009a21af15
Fix exception handling in v2 update_additional_fields_for_object REST API calls
2018-01-10 20:46:02 +00:00
Steve Grunwell
493298504d
Rewrite wc_get_customer_last_order() to leverage the customer data store.
...
The wc_get_customer_last_order() function (used by the v1 API) was performing a hard-coded SQL query against the postmeta table, regardless of the data store used by the WC_Customer class. This commit effectively makes the function act as a wrapper around WC_Customer::get_last_order().
2018-01-10 18:39:35 +00:00
claudiulodro
a3d0d71cdf
Deprecate theme notice
2018-01-10 09:52:52 -08:00
claudiulodro
d87497962b
Revert "Remove unsupported theme notice"
...
This reverts commit aad3792817
.
2018-01-10 09:45:16 -08:00
Claudiu Lodromanean
a94ef8dcdc
Merge pull request #18398 from woocommerce/fix/18360
...
Use intval for download limit and expiry
2018-01-10 09:42:15 -08:00
Mike Jolley
fd6002511e
Merge pull request #18404 from woocommerce/fix/18362
...
Update billing if account form changes.
2018-01-10 17:29:58 +00:00
Mike Jolley
4ffff150b5
fix while loop
2018-01-10 17:28:26 +00:00