Commit Graph

14078 Commits

Author SHA1 Message Date
Rodrigo Primo bf5c6f17a7 phpcs fixes 2018-01-09 15:42:08 -02:00
Rodrigo Primo 9de8478b42 Merge branch 'master' into update/use-post-author-for-customer-id 2018-01-09 15:21:12 -02:00
claudiulodro a0be4eace9 Merge remote-tracking branch 'origin/square-3.3' into HEAD 2018-01-05 11:44:45 -08:00
Paul Maiorana 00da05c437
Update description for Square per their feedback. 2018-01-05 14:31:37 -05:00
Claudiu Lodromanean 1ae74a56f8
Merge pull request #18372 from woocommerce/fix/17996
Round correctly when removing taxes from prices.
2018-01-05 11:14:30 -08:00
Claudiu Lodromanean 70294e977b
Merge pull request #18371 from woocommerce/fix/18314
Preserve seconds when saving order date.
2018-01-05 11:09:22 -08:00
Claudiu Lodromanean fe4727b593
Merge pull request #18367 from woocommerce/fix/18357
Allow quantities less than 1, but not 0.
2018-01-05 10:55:05 -08:00
claudiulodro b5271064c2 Resolve conflicts 2018-01-05 10:47:27 -08:00
Mike Jolley 856528d529
Merge pull request #18277 from woocommerce/fix/18276
Change sanitize function in product sales report filter box
2018-01-05 14:59:40 +00:00
Mike Jolley a44e4f64ac Round correctly when removing taxes from prices. 2018-01-05 14:56:33 +00:00
Mike Jolley ae723d83fd Preserve seconds when saving order date. 2018-01-05 14:44:36 +00:00
Mike Jolley 2c915ba961 Allow quantities less than 1, but not 0. 2018-01-05 12:48:24 +00:00
Mike Jolley 14afff129c Add appropriate column widths and fix up price method for consistentcy. 2018-01-05 12:23:08 +00:00
Claudiu Lodromanean ae9a98b0a0
Merge pull request #18356 from woocommerce/fix/archive-links
Post types with no archives should not show in breadcrumb.
2018-01-04 08:17:30 -08:00
Mike Jolley 613adb0c07 Post types with no archives should not show in breadcrumb. 2018-01-04 12:09:11 +00:00
claudiulodro cdad70a6b1 Safety first 2018-01-03 13:40:51 -08:00
claudiulodro afdc737ec5 Ajax add to cart button shortcode fix for variations 2018-01-03 13:38:06 -08:00
Claudiu Lodromanean 06a4bfe2af
Merge pull request #18347 from woocommerce/update/remove-unused-variable
Remove two unused variables
2018-01-03 11:13:38 -08:00
claudiulodro d2618c2330 Merge remote-tracking branch 'origin/master' into HEAD 2018-01-03 10:13:23 -08:00
claudiulodro 646caf5753 Tweaks for variation reports 2018-01-03 10:09:53 -08:00
Rodrigo Primo aad2c83994 Remove unused variables
This commit removes two unused variables from WC_Product_Data_Store_CPT class.
2018-01-03 16:00:28 -02:00
Rodrigo Primo 22f1e549ef Manually fixes remaining coding standard violations 2018-01-03 15:57:33 -02:00
Claudiu Lodromanean 14c2180928
Merge pull request #18279 from woocommerce/fix/setup-wizard-service-style-tweak
Setup wizard: adjust styling for service child elements
2018-01-03 09:38:28 -08:00
Rodrigo Primo a2b8e38a61 Fix coding standards violations automatically using phpcbf 2018-01-03 15:27:48 -02:00
Claudiu Lodromanean e15f267270
Merge pull request #18335 from woocommerce/fix/18328
Product downloads - API and download check fixes
2018-01-03 09:14:26 -08:00
Paul Dechov e03f0c201f Align service name logos to top, and adjust padding 2018-01-03 10:43:26 -05:00
Mike Jolley 5eb4ed9b64
Merge pull request #18307 from unfulvio/issue-18223-transient
[#18223] Store related posts query arguments in transient
2018-01-03 11:47:15 +00:00
Mike Jolley 800b4feba1
Merge pull request #18252 from shivapoudel/frontend-session
Only load session handler class on frontend not during cron
2018-01-03 11:19:23 +00:00
Mike Jolley effbf87e22 API should generate or set file ID when setting downloads. Closes #18330 2018-01-03 11:02:38 +00:00
Mike Jolley 3459f83a9d When serving downloads, ensure order/key are set and valid. Fixes #18328 2018-01-03 10:55:57 +00:00
Mike Jolley e1a82a4127 Add nonce to both panels. Closes #18333 2018-01-03 10:37:07 +00:00
Claudiu Lodromanean 373ff64ff8
Merge pull request #18315 from alexminza/master
Fixed Moldova states, added Moldova information for the installer
2018-01-02 14:31:30 -08:00
Claudiu Lodromanean 09f9d86786
Merge pull request #18327 from woocommerce/fix/default-columns-isset
Fix default columns isset check
2018-01-02 11:51:00 -08:00
Claudiu Lodromanean e17dcdf81f
Merge pull request #18297 from macbookandrew/improve-blank-state
add button for creating coupons to coupon blank state
2018-01-02 11:45:28 -08:00
Tiago Noronha ece1963e66 Fix default columns isset check. 2018-01-02 19:27:28 +00:00
Andrew Minion 785641ef3c update link to match rest of codebase 2018-01-02 14:05:47 -05:00
Claudiu Lodromanean de71c92fa0
Merge pull request #18278 from woocommerce/fix/setup-wizard-ppec-api-subject-set-when-unchecked
Setup wizard: don't set PPEC "API Subject" when WCS rerouting is unchecked
2018-01-02 10:39:35 -08:00
Claudiu Lodromanean 6db59dbc91
Merge pull request #18283 from WPprodigy/fix-set-orderby-default
Set default catalog_orderby in customizer
2018-01-02 10:34:18 -08:00
Claudiu Lodromanean 9937edc292
Merge pull request #18285 from WPprodigy/add-filter-woocommerce_loop_product_link
Add woocommerce_loop_product_link filter
2018-01-02 10:11:18 -08:00
Claudiu Lodromanean c52563f558
Merge pull request #18319 from pathurs/patch-1
Geolocation: Remove port from string before checking IP
2018-01-02 10:06:49 -08:00
Claudiu Lodromanean 8d78287da4
Merge pull request #18284 from WPprodigy/update-docs-for-layerednav-function
Update docs.
2018-01-02 09:33:27 -08:00
Claudiu Lodromanean 5382134041
Merge pull request #18306 from unfulvio/issue-18223-filter-related-products
[#18223] Filter results for related products
2018-01-02 08:58:23 -08:00
Claudiu Lodromanean f56fff18d9
Merge pull request #18322 from woocommerce/fix/importer-file-names
Importer file names
2018-01-02 08:10:20 -08:00
Mike Jolley 4e996ce268 Check for mb_detect_encoding support 2018-01-02 13:55:11 +00:00
Mike Jolley 5aee9f973c Append timestamp to filename 2018-01-02 13:29:23 +00:00
Mike Jolley 46c51bb3a6 Allow filename to be set from javascript 2018-01-02 13:16:43 +00:00
Mike Jolley 1a65aed0d9 Merge branch 'pr/18272' 2018-01-02 11:57:45 +00:00
Mike Jolley da281d21ab Keep product check 2018-01-02 11:57:29 +00:00
Mike Jolley 3defa83a81 Missing spaces between city and state.
Closes #18305
2018-01-02 11:45:56 +00:00
Pathurs 119d3485b1
Remove port from string before checking IP
Fix a bug where if `$_['HTTP_X_FORWARDED_FOR']` contains a port, an `rest_is_ip_address()` returns `bool(false)`.

WooCommerce Version: 3.1.2

Observed results of functions and variables:
```
WC_Geolocation::get_ip_address())	                                  string(0) ""
$_SERVER['X-Real-IP']	                                              string(7) "Not set"
$_SERVER['HTTP_X_FORWARDED_FOR']	                                  string(18) "203.41.99.98:50986"
trim( current( explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) )	  string(18) "203.41.99.98:50986"
$_SERVER['REMOTE_ADDR']	                                              string(12) "203.41.99.98"
```

Old result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(0) "" ["state"]=> string(0) "" }```

New result of calling `WC_Geolocation::geolocate_ip()`:
```array(2) { ["country"]=> string(2) "AU" ["state"]=> string(0) "" }```
2018-01-02 11:54:26 +11:00