Commit Graph

5871 Commits

Author SHA1 Message Date
Ahmad Awais d690e43345 Better Documentation: Period Endings
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/), this commit helps make the documentation better by adding:

- Period endings
2015-11-01 00:12:12 +05:00
Ahmad Awais 9954602229 Better Documentation: Period Endings
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/), this commit helps make the documentation better by adding:

- Period endings
- Short descriptions
- Long descriptions
2015-11-01 00:10:45 +05:00
Claudio Sanches ecb3ca2ea3 Merge pull request #9480 from ahmadawais/patch-3
Better Documentation: Period Endings
2015-10-31 17:05:38 -02:00
Claudio Sanches 317aeb39f1 Merge pull request #9478 from WPprodigy/system-status-fix2
Typo in system status report
2015-10-31 17:03:48 -02:00
Ahmad Awais b07854ed77 Better Documentation: Period Endings 2015-11-01 00:01:46 +05:00
Caleb Burks 46b43f4c7c Typo in system status report 2015-10-31 12:00:51 -04:00
Caleb Burks 10bb2c6ca1 Check for child themes in the .org repo 2015-10-31 11:23:07 -04:00
Kathy Darling 856d192bff Use generic `ajax_add_to_cart` class for adding items in the loop to the cart via ajax. 2015-10-30 12:54:49 -05:00
Mike Jolley 37ed73f5b4 Merge pull request #9469 from javorszky/fix-dockblock-ipnhandler
Fix docblock for validate_receiver_email
2015-10-30 15:26:03 +00:00
Gabor Javorszky 2fce596b25 Fix docblock for validate_receiver_email 2015-10-30 15:11:41 +00:00
Claudio Sanches a8ddd8acf9 Disabled Jetpack for products
Implemented the new Jetpack jetpack_comment_form_enabled_for_* filter

Closes #9152
2015-10-30 13:08:44 -02:00
Mike Jolley f5933bf9d9 Fix active state check
Closes #9467
2015-10-30 13:31:52 +00:00
Mike Jolley ad38f6e34f Add pay link to order screen
Closes #9428
2015-10-30 13:29:16 +00:00
Mike Jolley 92310feb98 Merge pull request #9457 from woothemes/9251-wc-cart-functions
Moving some methods from WC_Cart to new functions
2015-10-30 13:12:55 +00:00
Claudio Sanches 0ff88deb98 Improved wc_coupons_enabled() name and description 2015-10-29 17:23:10 -02:00
Mike Jolley afca32a31b Check item_meta_array exists
Fixes #9449
2015-10-29 16:06:23 +00:00
Mike Jolley 5b6e16682c Handle partial/full refund for orders containing free items
Also adds helper method to determine if such as free item exists or
not. Closes #9460
2015-10-29 15:34:33 +00:00
Mike Jolley 871c8591f0 Number format the discount
Closes #9462
2015-10-29 15:23:34 +00:00
Claudio Sanches 4522b68a47 [2.4] [API] Avoid undefined $taxonomy warnings while save variable attributes, closes #9456 2015-10-28 16:31:05 -02:00
Claudio Sanches f3b6870837 Sort get_woocommerce_currencies() items 2015-10-28 16:24:06 -02:00
Claudio Sanches f64ea948f1 Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only() 2015-10-28 16:03:24 -02:00
Claudio Sanches 29229ada45 Added deprecated description to WC_Cart methods 2015-10-28 16:01:03 -02:00
Claudio Sanches 3ab4e76cd0 Replaed old WC_Cart methods to the new functions 2015-10-28 15:56:31 -02:00
Claudio Sanches 1caaea7b33 Moved methods from WC_Cart to single functions
Changes:

- WC_Cart::coupons_enabled() to wc_is_coupons_enabled()
- WC_Cart::get_cart_url() to wc_get_cart_url()
- WC_Cart::get_checkout_url() to wc_get_checkout_url()

This methods can be used in any place, but WC_Cart() is present only on
the frontend.
2015-10-28 15:43:31 -02:00
Mike Jolley 327134e471 Merge pull request #9454 from apkoponen/master
WC_Product __get should check for False instead of empty
2015-10-28 09:48:12 -06:00
Mike Jolley 1ff6a27951 Split button from variation display 2015-10-28 13:09:34 +00:00
Mike Jolley f050c804e1 Use wp.template for variation and variation button 2015-10-28 13:04:28 +00:00
Mohsin Rasool 6683baffaa Add Currency Symbol for Pakistan, Issue #9453 2015-10-28 16:13:42 +05:00
Ari-Pekka Koponen 11ab216993 WC_Product __get should check for False instead of empty 2015-10-28 12:45:54 +02:00
Claudio Sanches d6dbb4aec2 Added "Hide empty categories" option on Product Category Widget
Closes #9441
2015-10-27 14:10:32 -02:00
Claudio Sanches 454ffa4677 [2.4] Fixed bulk edit sale_price when empty
This avoid sale_price saved as "0" and update correct update _price
field, related issue: #8076

Closes #9437
2015-10-27 11:27:31 -02:00
Shohei Tanaka 94dc4e310b Customer Name in admin Order list
In Japan we want to use full name order in admin order list.
2015-10-27 06:37:04 +09:00
Claudio Sanches cf6fb76741 Created function to disable author archives for customers
cc @mikejolley
2015-10-26 15:38:44 -02:00
Mike Jolley 59dc92e113 Merge pull request #9417 from woothemes/9381-help-tip-icon-font
Use new "question" mark icon font for Help Tips
2015-10-26 08:45:10 -06:00
Claudio Sanches 4f9e4a87e8 Updated Simplify Commerce lib to version 1.2.0, closes #9420 2015-10-26 11:27:14 -02:00
Claudio Sanches 154dac6d14 [2.4] [API] Fixed attributes save when using non-latin letters
Changed sanitize_title() to wc_sanitize_term_text_based() since
wp_set_object_terms() is creating wrong terms

Closes #9421
2015-10-23 14:38:37 -02:00
Claudio Sanches e91e0a9f5e Changed <i> to <span> in wc_help_tip()
<span> is more semantically correct
2015-10-23 13:17:35 -02:00
Claudio Sanches b85ae9056c Rename wc_add_help_tip() function to wc_help_tip() 2015-10-23 13:09:08 -02:00
Mike Jolley 705fbef31a [2.4] Default selections fix for methods with multiple rates 2015-10-23 13:49:27 +01:00
Mike Jolley 79010b634f Cast grouped product children to int
Avoids invalid or empty data and fixes #9416
2015-10-23 12:52:52 +01:00
Mike Jolley 8279db6679 If redirection to setup wizard does not occur, do not redirect at all 2015-10-23 12:24:04 +01:00
Mike Jolley 12fe4e7a52 Use delimiter in hashing function 2015-10-23 12:02:29 +01:00
Mike Jolley b81fc128ac Use hash_equals when comparing hashes
PHP 5.6+ but WP has a fallback inside.
2015-10-23 12:00:56 +01:00
Claudio Sanches 2e95a68357 Use new "question" mark icon font
Created wc_add_help_tip() function to generate the icons
Replaced all .help_tip elements and [?]

We'll keep the old image and styles in order to maintain backwards
compatibility

Closes #9381
2015-10-23 01:40:52 -02:00
Claudio Sanches c1b46113bc [2.4] Make "Not right now" button on Setup Wizard go to the WP dashboard
closes #9392
2015-10-22 18:17:14 -02:00
Claudio Sanches bfe98a283c [2.4] [API] Fixed editing product variations
Fixed general variations edition and make sync again variations when just
edit a variable product and don't send any 'variations' data

closes #9406
2015-10-22 17:19:16 -02:00
Mike Jolley d363e810d8 Default to first found gateway
Closes #9378
2015-10-22 16:39:15 +01:00
Mike Jolley b3a3a998bb Add trailing slash in get_page_uris to reduce likelihood of conflicts
Fixes #9386
2015-10-22 16:33:05 +01:00
Mike Jolley 63947376db Merge pull request #9336 from woothemes/issue/9268-get-coupon-id-from-code-caching
Cache coupon id from code lookup in a transient.
2015-10-22 09:19:37 -06:00
Mike Jolley 2a651ce64b Merge pull request #9332 from Biont/master
WC_AJAX::calc_line_taxes - Provide a filter after tax calculations are done
2015-10-22 09:17:57 -06:00
Mike Jolley 08365f4145 Merge pull request #9333 from roykho/onboard
[onboard wizard] Remove required attribute from currency_code form el…
2015-10-22 09:03:48 -06:00
Mike Jolley d46e57d9d6 Merge pull request #9318 from woothemes/issue/8458-refactor-verified-purchase-review-meta
Refactor "verified owner" logic to reduce queries and transients.
2015-10-22 09:00:38 -06:00
Mike Jolley 509d59df3d Merge pull request #9391 from krautnerds/fix-login-with-mail-and-whitespace
Fixed login form handling for whitespaces before/after mail address
2015-10-22 07:23:43 -06:00
Mike Jolley db1ecae936 Merge pull request #9405 from javorszky/issue_9404
Shipping calculation results no longer bleed over
2015-10-22 06:57:45 -06:00
Mike Jolley 97e28d7f49 Added wc_checkout_is_https() function helper and added to simplify class
Closes #9408
2015-10-22 12:30:30 +01:00
Mike Jolley 4dbfe1551c Settings API - don't save title fields
Closes #9401
2015-10-22 11:27:39 +01:00
Gabor Javorszky 852ab311e0 Shipping calculation results no longer bleed over
Fixes #9404

Before we decide whether to just return from shipping calculation or
actually calculate it, let's null the values.

Reason for this and not `reset` is because reset also wiped the chosen
shipping method, which might have unintended consequences.

Please test this extensively. You know WooCommerce a lot better than I
do, and I'd like to avoid side effects.
2015-10-21 21:35:58 +01:00
Jeff Stieler d73ef76568 Remove generation of review verification comment meta from 2.5 upgrade routine. 2015-10-20 22:05:17 -06:00
Jeff Stieler 58ec17f76d Use new review verification status retrieval method on single review template and in APIs. 2015-10-20 22:05:17 -06:00
Jeff Stieler 1b370bb64a Helper method to retrieve review verification status from comment meta, generating it on the fly for existing reviews. 2015-10-20 22:05:17 -06:00
Jeff Stieler e9bfa2553c Return verification status in WC_Comments::add_comment_purchase_verification(). 2015-10-20 22:03:30 -06:00
Jeff Stieler a34d58c18f Backfill existing reviews with “verified” comment meta on update to 2.5. 2015-10-20 22:03:29 -06:00
Jeff Stieler 95fe3d47c2 Use review comment meta for verification status in API calls and WP-CLI. 2015-10-20 22:03:29 -06:00
Jeff Stieler 71cfde70c9 Mark a comment as “verified” if the customer leaving it has purchased the product they’re reviewing. 2015-10-20 22:03:29 -06:00
Jeff Stieler 80628e9f97 Store all purchased product ids for a given customer in a single transient. 2015-10-20 22:03:29 -06:00
Jeff Stieler 883170e261 Cache coupon id from code lookup in a transient. 2015-10-20 21:42:46 -06:00
Florian Ludwig b549c73dea Fixed bug where customer couldn't log in because of whitespace after mail address 2015-10-20 21:20:50 +02:00
Claudio Sanches 1ea5b8433f Escape normalized for the woocommerce_variation_option_name filter 2015-10-18 10:42:44 -06:00
Ewout Fernhout ab85ebfbc4 check if product exists
fixes #9363
2015-10-15 09:43:53 +02:00
Mike Jolley da8cae596b Simplify cart shipping template + text
Also prevents calculate shipping showing multiple times when multiple
packages are present.

@jameskoster @claudiosmweb
2015-10-13 15:41:21 -06:00
Claudio Sanches 5372579546 Fixed the hook name for #9290
cc @jeffstieler
2015-10-13 15:13:31 -06:00
Claudio Sanches 5c6206e511 [2.4] Fixed WC_API_Orders::set_line_item() for v2 #9338 2015-10-11 11:34:34 -03:00
Claudio Sanches 5465cdadb1 [2.4] Fixed WC_API_Orders::set_line_item(), closes #9338 2015-10-11 11:32:56 -03:00
Claudio Sanches f6526d72a7 [API] Allow get variable products by sku, closes #9330 2015-10-09 16:43:12 -03:00
Claudio Sanches eedff144e7 Created assets/js/frontend/password-strength-meter.js #9319 2015-10-09 13:31:47 -03:00
Claudio Sanches 0248ebdac7 Better password-strength-meter load #9319 2015-10-09 11:22:31 -03:00
Claudio Sanches c4bd6b25c1 Merge pull request #9319 from nishitlangaliya/Issue-8938
Issue 8938
2015-10-09 11:12:56 -03:00
roykho 27db35dd12 [onboard wizard] Remove required attribute from currency_code form element so it is not required 2015-10-09 07:01:49 -07:00
Biont bf4c5b1d91 Provide a filter after tax calculations are done #9313 2015-10-09 15:46:23 +02:00
Mike Jolley 6027b355ca Further get_variation_prices tweaks
For 2.5, I’ve adjusted the caching to store 1 transient per variable
product. The cache key etc is still needed, but its stored within a
single transient instead of several.

This should prevent exponential growth of transient data for users.

Thoughts?

@daigo75 @franticpsyx @claudiosmweb
2015-10-09 12:49:39 +01:00
Mike Jolley 68cb6b11ee Removed welcome page
2.5 release doesn’t have enough user-facing features to justify a
full-blown welcome page, and translation credits are no longer
obtainable after translate.wordpress switch. Removed the page to keep
things streamlined.
@claudiosmweb @mattyza
2015-10-09 11:56:13 +01:00
Mike Jolley 919f19b698 Remove transifex references 2015-10-09 11:31:42 +01:00
Mike Jolley b913555d54 Change customer role caps
Fixes #9309. @claudiosmweb
2015-10-09 11:00:25 +01:00
Mike Jolley 4399a3b48a Allow wc_clean to support arrays
Closes #9329 @claudiosmweb
2015-10-09 10:41:51 +01:00
nishitlangaliya f468f16e29 fixes: changes as per suggestion given by claudiosmweb ref #8938 2015-10-09 13:25:47 +05:30
Shiva Poudel 3763c416a9 Docblock for related products 2015-10-09 07:38:15 +05:45
Claudio Sanches 59303a1709 Merge pull request #9308 from woothemes/api-tax-endpoint
[API] Tax endpoint
2015-10-08 18:49:43 -03:00
Claudio Sanches 15e79820aa [API] Better naming for returned data on the taxes endpoint 2015-10-08 18:49:05 -03:00
Claudio Sanches e84fa58e35 [API] Created taxes bulk method 2015-10-08 18:44:26 -03:00
Claudio Sanches 860d292f4f [API] Added method to edit tax rates 2015-10-08 18:34:47 -03:00
Claudio Sanches 1a3b5f3a6f [API] Fixed the tax_rate key 2015-10-08 18:01:38 -03:00
Claudio Sanches 3200a1dc0c Removed error_log() 2015-10-08 17:35:34 -03:00
Claudio Sanches 6d485a2fed [API] Created woocommerce_api_create_tax_rate_data filter 2015-10-08 17:35:00 -03:00
Claudio Sanches 52bdc2c3a5 [API] Changed returned data name from tax to tax_rate 2015-10-08 17:34:39 -03:00
Claudio Sanches 47c3ba9d21 Created WC_Tax::_get_tax_rate() method 2015-10-08 17:24:37 -03:00
Claudio Sanches 1cded0e1a3 [API] Added method to create tax rates 2015-10-08 17:15:00 -03:00
nishitlangaliya a45ef9f814 fixes: done changes using dom operation. ref #8938 2015-10-08 20:14:53 +05:30
Mike Jolley dda0f0c2bd Check for existence of global attribute when you get_attributes() for a product
Fixes #9141
2015-10-08 13:55:01 +01:00
Claudio Sanches befda55262 Removed test 2015-10-08 09:40:20 -03:00
Mike Jolley d5409f5b5e Merge conflicts 2015-10-08 13:28:25 +01:00
Mike Jolley 0197a99065 Merge branch 'issue/8587'
Conflicts:
	assets/css/admin.css
	assets/css/woocommerce.css
	includes/admin/class-wc-admin-assets.php
	includes/admin/settings/views/html-settings-tax.php
2015-10-08 13:26:52 +01:00
Mike Jolley 8ee479afd7 Remove unused input 2015-10-08 13:25:01 +01:00
Mike Jolley ac02ec290a Improved styling and wording 2015-10-08 13:18:00 +01:00
Mike Jolley 81b4d5535d Merge pull request #9315 from wtom/validate_postcode_de
german postcode validation
2015-10-08 11:56:34 +01:00
Shiva Poudel af7b603690 Added new woocommerce_sessions table in system status 2015-10-08 16:26:16 +05:45
wtom 7368377e8d german postcode validation 2015-10-08 12:20:57 +02:00
Claudio Sanches 1081c2cbe6 [API] Added method to create tax classes 2015-10-07 22:52:45 -03:00
Claudio Sanches d4c1c4cca4 [API] Added endpoint to get total of tax classes 2015-10-07 22:35:34 -03:00
Claudio Sanches ef00fe5b2f [API] Added method for delete tax classes 2015-10-07 22:27:42 -03:00
Claudio Sanches 6cd57e2611 [API] Added method to delete tax rates 2015-10-07 22:10:33 -03:00
Claudio Sanches 34ef764477 [API] Included standard rate in get tax classes response 2015-10-07 19:12:31 -03:00
Claudio Sanches 4f45b04722 [API] Added endpoint to get taxes count 2015-10-07 19:07:45 -03:00
Claudio Sanches 40b210a144 [API] Get taxes method 2015-10-07 19:00:36 -03:00
Claudio Sanches e3d57ab70c [API] Created method to get tax rate by ID 2015-10-07 17:44:04 -03:00
Claudio Sanches 16b9f22706 [API] Created method to return tax classes 2015-10-07 17:02:06 -03:00
Claudio Sanches 07836ae277 [API] Include taxes endpoint 2015-10-07 16:37:53 -03:00
Claudio Sanches 1168adf8af [API] Created initial WC_API_Taxes class 2015-10-07 11:42:25 -03:00
Claudio Sanches 1889c66061 Fixed coding standards 2015-10-07 10:58:13 -03:00
Mike Jolley b27635409c New Session Handler
This merges and adapts
https://github.com/kloon/woocommerce-large-sessions for core. Closes
#6846.

Differences:
- Rather than delete each cache key individually, this invalidates all
at once (idea from https://core.trac.wordpress.org/ticket/4476)
- Removes ‘replace’ which increments session_id keys unnecessarily.
- Fixes remove/restore cart sessions from making it dirty each page load

Kudos to @kloon for the bulk of the work and testing on Woo.com.

cc @claudiosmweb
2015-10-07 14:47:29 +01:00
Claudio Sanches 3f0cb4763a [CLI] Stop round product prices 2015-10-06 11:16:03 -03:00
Claudio Sanches 76ef4cdb50 xD 2015-10-06 11:12:32 -03:00
Claudio Sanches 5b0a5d15a8 [API] Stop round product prices, closes #9271 2015-10-06 11:12:23 -03:00
Mike Jolley 9c6d524c95 Missing close bracket 2015-10-06 15:08:17 +01:00
Claudio Sanches eef347a5ad Added textdomain to PayPal refund error message 2015-10-06 11:03:49 -03:00
Mike Jolley f1c6b3628a Pass mimes when checking file type
#9207
2015-10-06 15:01:41 +01:00
Mike Jolley abaa8f47d8 Moved refund hooks to avoid emails after API refund failure 2015-10-06 14:43:36 +01:00
Mike Jolley 54d5fc20ab Improve refund error messages for PayPal
Fixes #8945
2015-10-06 14:43:36 +01:00
Claudio Sanches 9169458590 Updated recent reviews url escaping 2015-10-06 10:35:33 -03:00
Claudio Sanches c53fe24c20 Removed our own language packs manager 2015-10-06 10:27:17 -03:00
Mike Jolley d2d1330898 Show order by template on product search
Fixes #9285
2015-10-06 14:10:01 +01:00
Mike Jolley 92b5e79add Merge pull request #9260 from Spreeuw/issue/8793
add $display_refunded parameter to get_formatted_order_total
2015-10-06 12:55:03 +01:00
Mike Jolley d028e65748 Merge pull request #9163 from nvartolomei/downloadable-products-permissions-cleanup
Remove downloadable permissions on permanent order deletion
2015-10-06 12:41:56 +01:00
Mike Jolley 277dbeb029 Merge branch 'WPprodigy-patch-2' 2015-10-06 12:33:55 +01:00
Mike Jolley 5ec400e514 Validate terms and conditions and improve templates 2015-10-06 12:33:45 +01:00
Mike Jolley 5bc7de0d91 Merge pull request #9290 from woothemes/issue/9166-reset-order-customer-id-on-user-delete
When a WordPress user is deleted, turn any orders they have into Guest orders.
2015-10-06 10:49:15 +01:00
Mike Jolley 1404f6a37e Merge remote-tracking branch 'origin/master' 2015-10-06 10:39:58 +01:00
Mike Jolley 6cef38902b Merge branch 'pr/9282' 2015-10-06 10:39:41 +01:00
Mike Jolley 2093c06637 Merge pull request #9286 from woothemes/issue/9284-fix-potential-fatal-for-earlier-init-plugins
Avoid potential PHP Fatals by avoiding premature script enqueues.
2015-10-06 10:31:58 +01:00
Shiva Poudel f6f7646cb6 Escape using esc_url instead of esc_attr for link 2015-10-06 10:40:11 +05:45
Claudio Sanches f2b3364fc9 Fixed coding standards 2015-10-05 20:31:05 -03:00
Claudio Sanches db6f51216e Improved coupons status display in admin table 2015-10-05 20:30:03 -03:00
roykho f97eb5606e add onboarding wizard button to the contextual help so it can be accessed again closes #9134 2015-10-05 15:26:59 -07:00
Jeff Stieler aa86069e56 When a WordPress user is deleted, turn any orders they have into Guest orders. 2015-10-05 14:38:20 -06:00
Jeff Stieler a34c0578fb Avoid potential PHP Fatals by avoiding premature script enqueues. 2015-10-05 12:12:19 -06:00
Mike Jolley 1f6260a880 Use tax settings in backend and default to base country
Closes #9186
2015-10-05 15:31:58 +01:00
Mike Jolley 1ec3cb0ef6 [2.4] Default value should not apply if value of option is 0
Fixes #9270 @claudiosmweb
2015-10-05 15:07:46 +01:00
Mike Jolley 84f83e0bf4 Fix return value @roykho 2015-10-05 14:39:08 +01:00
Mike Jolley 6975335941 Coupon description is escaped
@claudiosmweb Closes #9273
2015-10-05 14:30:02 +01:00
Mike Jolley 42d90594af Fix password with & saving
@claudiosmweb
2015-10-05 14:09:11 +01:00
Mike Jolley 5ad38f8b65 Tweak and link product permalink settings to WordPress settings
Fixes #8442
2015-10-05 12:15:35 +01:00