Towhidul Islam
b68cef2062
[REST API] pass missing $filter as parameter in get_order_refund
2018-10-19 20:41:20 +06:00
Menaka S
566c57cc45
Trim the import file headers while reading
2018-10-19 16:43:52 +05:30
Claudio Sanches
bd37853923
Improved review and reviewer_email
2018-10-18 18:53:16 -03:00
Claudio Sanches
f3fdcd2ec0
Fixed order or collection params
2018-10-18 18:17:15 -03:00
Claudio Sanches
17a80c863e
[REST API] Fixed product reviews schema and content
2018-10-18 18:13:21 -03:00
Claudio Sanches
d987fb95b9
[REST API] Register data endpoints
2018-10-18 16:04:54 -03:00
Rodrigo Primo
12af00e38f
Merge pull request #21605 from woocommerce/fix/21578
...
Fix: WC_Product::get_image() should use $attr parameter
2018-10-18 14:34:02 -03:00
Claudiu Lodromanean
c994956f03
Merge pull request #21573 from woocommerce/fix/21548
...
Simplified path check for CSV importer to cause less issues
2018-10-18 07:56:34 -07:00
Rodrigo Primo
9b094fc74d
Use $product->get_image_id() instead of has_post_thumbnail()
...
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032
and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Rodrigo Primo
3c76b4992b
phpcs fixes
2018-10-18 09:11:26 -03:00
Rodrigo Primo
05aa357b98
Add unit tests for WC_Product::get_image()
2018-10-17 19:40:57 -03:00
Rodrigo Primo
6ed2ebb3ba
Fix: WC_Product::get_image() should use $attr parameter
...
This commit fixes a issue that was introduced when WC_Product::get_image() was refactored in 64b589f032
that was making this method ignore what was passed in the $attr parameter.
2018-10-17 19:40:57 -03:00
Rodrigo Primo
bbf6282d07
Simplify WC_Product_Simple tests
...
Use setUp() method to define a product object that is used in all the tests instead of duplicating code and creating a product object in every test.
2018-10-17 19:22:16 -03:00
Rodrigo Primo
e7271e0fec
Merge pull request #21603 from woocommerce/revert-21468-master
...
Revert "Delete old ISSUE_TEMPLATE.md"
2018-10-17 16:34:21 -03:00
Rodrigo Primo
65356ae147
Revert "Delete old ISSUE_TEMPLATE.md"
2018-10-17 16:27:27 -03:00
Claudiu Lodromanean
59a863bc70
Merge pull request #21591 from JeroenSormani/master
...
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-17 08:27:04 -07:00
Claudiu Lodromanean
0f2ee63fdc
Update readme.txt
2018-10-17 08:26:39 -07:00
Claudiu Lodromanean
8c6b7032c6
Merge pull request #21596 from woocommerce/fix/rest-api-v3-producs-schema
...
[REST API] Fixed schema stock_status on products endpoints
2018-10-17 08:25:12 -07:00
Claudiu Lodromanean
5ca9600a23
Merge pull request #21595 from woocommerce/fix/rest-api-v3-trashed-orders
...
[REST API] Ability to query orders from trash bin
2018-10-17 08:24:06 -07:00
Claudiu Lodromanean
6f32369144
Merge pull request #21594 from woocommerce/fix/rest-api-v3-order-refunds-schema
...
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-17 08:11:16 -07:00
Rodrigo Primo
41d2e1cafd
Change wp_woocommerce_sessions before dbDelta() is called
...
On PR #21245 , I added a db update routine to change wp_woocommerce_sessions primary key from session_key char(32) to session_id bigint auto_increment as dbDelta() is unable to handle primary key changes (see https://core.trac.wordpress.org/ticket/40357 ). But I didn't realize that dbDelta() was actually trying to add a new primary key to the table without droping the old key first and this was generating the following error:
```
WordPress database error Multiple primary key defined for query ALTER TABLE wp_woocommerce_sessions ADD PRIMARY KEY (`session_id`)
```
To prevent this error from happening, this commit moves the query that changes the primary key from db update routine to WC_Install::create_tables() so that it runs before dbDelta() is called.
2018-10-17 12:11:01 -03:00
Claudiu Lodromanean
24101d424a
Merge pull request #21593 from woocommerce/fix/rest-api-order-notes-schema-v3
...
[REST API] Fixed duplicated entry in orders notes schema
2018-10-17 08:10:12 -07:00
Rodrigo Primo
0c77ea584b
Revert "Do not try and create primary key using upgrade routine, dbdelta does that automatically. Just drop the key if it exists and add a new unique key."
...
This reverts commit d3e59b770b
.
2018-10-17 11:20:39 -03:00
Rodrigo Primo
35bd8ba05d
Revert "Do check on new key field instead and only run alter when not found."
...
This reverts commit a41df43cb0
.
2018-10-17 11:20:27 -03:00
Rodrigo Primo
2cd6bdf7d6
Merge pull request #21586 from rodrigoprimo/travis-php-73
...
Add PHP 7.3 to the Travis build matrix
2018-10-17 10:26:35 -03:00
Steve Grunwell
550b309901
Merge branch 'master' into feature/sanitize-order-id-tests
2018-10-17 02:21:04 +00:00
Steve Grunwell
6f77040eb4
Since PHP 5.2 runs a *really* old version of PHPUnit (that doesn't support the @testWith annotation), run the scenarios in a single test case
2018-10-17 02:05:10 +00:00
Claudio Sanches
2bcd4598f8
Fixed coding standards
2018-10-16 21:15:03 -03:00
Claudio Sanches
a9b36a4e23
[REST API] Fixed schema stock_status on products endpoints
2018-10-16 21:12:49 -03:00
Claudio Sanches
c6daf8287d
[REST API] Ability to query orders from trash bin
2018-10-16 20:19:34 -03:00
Claudio Sanches
98c8bb3eda
[REST API] Fixed schema for refunded_payment in order refunds endpoint
2018-10-16 19:20:53 -03:00
Claudio Sanches
0f1f91f90a
[REST API] Fixed duplicated entry in orders notes schema
2018-10-16 19:07:58 -03:00
Claudiu Lodromanean
8e47d2afd5
Merge pull request #21575 from JoryHogeveen/patch-1
...
Validate multisite super admins before filtering editable roles & mapping capabilities
2018-10-16 11:23:42 -07:00
Claudiu Lodromanean
13da70810d
Update readme.txt
2018-10-16 11:23:37 -07:00
Claudiu Lodromanean
84ec31d3cc
Merge pull request #21588 from woocommerce/fix/21587
...
[REST API] Product downloads - Check if file ID is not empty and exists
2018-10-16 10:09:52 -07:00
Claudiu Lodromanean
2cee87b7cf
Update readme.txt
2018-10-16 10:09:29 -07:00
Claudiu Lodromanean
f55efd9b83
Merge pull request #21589 from woocommerce/fix/rest-api-product-download-id-schema
...
[REST API] Fixed schema for product's downloads
2018-10-16 09:54:21 -07:00
Claudiu Lodromanean
1ea5cea2f8
Merge pull request #21574 from woocommerce/fix/21505
...
Dont kses cart thumbnails
2018-10-16 09:53:33 -07:00
JeroenSormani
7b4075f11a
Ensure wp_list_pluck() gets a array and not possibly null
2018-10-16 18:53:31 +02:00
claudiulodro
d4e528634a
Update readme.txt
2018-10-16 09:52:17 -07:00
Claudio Sanches
63390c181d
[REST API] Fixed schema for product's downloads
...
Download ID are generated with wp_generate_uuid4() for while now.
Also we allow users to manipulate it.
2018-10-16 13:19:41 -03:00
Claudio Sanches
00c1a9016a
Check if file ID is not empty and exists
...
Closes #21587
2018-10-16 13:01:51 -03:00
Rodrigo Primo
9fac8cc8ad
Remove xdebug.ini only if it exists
...
This commit adds an if to check if xdebug.ini exists before trying to remove it. Doing this to avoid a build error in PHP versions where the file doesn't exist like PHP 7.3.
2018-10-16 10:36:25 -03:00
Rodrigo Primo
fcf4e56d0d
Add upcoming PHP 7.3 to the list of versions tested in Travis
2018-10-16 10:22:29 -03:00
Jory Hogeveen
481903d915
No need to continue parsing for shop manager if target user is an administrator
2018-10-16 14:11:36 +02:00
Khan M Rashedun-Naby
439bd54ce5
The variable should be 0 rather than empty string
2018-10-16 14:23:43 +06:00
Khan M Rashedun-Naby
7940694ce4
Removed Unnecessary Variable.
2018-10-16 13:25:56 +06:00
Kathy Darling
61f4f4e298
add $product object to woocommerce_quantity_input_classes
2018-10-15 17:24:47 -05:00
Jory Hogeveen
991ae6e7f2
Check super admin status before modifying editable roles
2018-10-15 23:53:29 +02:00
Jory Hogeveen
00e942d0b7
Check super admin status before mapping caps
2018-10-15 23:52:47 +02:00