Commit Graph

900 Commits

Author SHA1 Message Date
Mike Jolley 81d882d34a Include template functions after the theme is loaded, but before init.
Fixes conflicts with plugins (#5884) when they output content before
init.

2.2 has no fatal error as reported in #5884
2014-07-31 07:47:55 +01:00
Max Rice 51f71cfade Load webhooks on each page load
Part of #5564
2014-07-30 16:27:50 -04:00
Coen Jacobs 86a4add087 Merge remote-tracking branch 'upstream/master' into order-factory-refactor
Conflicts:
	includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
Mike Jolley edd655d4d9 WC_TEMPLATE_PATH filter was renamed by accident in a previous version. Should be woocommerce_template_path
https://github.com/woothemes/woocommerce/commit/e143d344e582c688cd0e4562
86bfe50c690077c9
2014-06-23 16:31:49 +01:00
Mike Jolley 8f6c4cbeb4 WC_TEMPLATE_PATH after setup theme
Closes #5495
2014-06-23 16:29:15 +01:00
Alexandru Furculita 43423a0c2e Update woocommerce.php 2014-06-19 15:43:10 +03:00
Coen Jacobs 476870d9f2 Created WC_Abstract_Order, extended by WC_Order 2014-06-13 15:37:20 +02:00
Mike Jolley ded4b7404d Admin changes for #5046
- Removed post type classes. Since they were always loaded, there was
no benefit having them split up. Combined meaning less hooked in
methods.
- Stopped loading some function files and sessions in the admin area.
They are not needed there.
- Made a few admin page classes static as they are stateless
2014-06-04 11:16:19 +01:00
claudiosmweb cf1c0aaeaf fixed the translation load 2014-05-29 17:06:03 -03:00
claudiosmweb 62ed150782 created the language pack upgrader 2014-05-28 13:06:00 -03:00
Mike Jolley 1ed0938581 [2.2] Log changes Closes #4926
Added WC_LOG_DIR constant
Added log viewer
Changed default logging directory to 1 up from ABSPATH inside wc-logs
2014-05-28 11:12:38 +01:00
Coen Jacobs 4afeb7926c Merge branch 'refs/heads/2.1'
Conflicts:
	i18n/languages/woocommerce-admin.pot
	i18n/languages/woocommerce.pot
	includes/class-wc-form-handler.php
	package.json
	readme.txt
	templates/checkout/form-shipping.php
	templates/emails/email-addresses.php
	woocommerce.php
2014-04-10 16:42:08 +02:00
Mike Jolley da0758696c Version bump 2014-04-10 14:39:56 +01:00
Coen Jacobs 2850b07f8e This branch is now 2.1.7-bleeding 2014-03-25 16:09:22 +01:00
Coen Jacobs 95065b65ca Version bump for 2.1.6 2014-03-25 15:33:49 +01:00
Mike Jolley e41f9d3ad5 Tweak auto load to find admin classes #5041 2014-03-24 12:09:09 +00:00
Mike Jolley f1c69b6355 Tweak auto load to find admin classes #5041 2014-03-20 15:30:23 +00:00
Coen Jacobs 911f7f8a46 This branch is now 2.1.6-bleeding 2014-03-06 17:49:47 +01:00
Coen Jacobs 895759954e Version bump to 2.1.5 2014-03-06 17:32:08 +01:00
Coen Jacobs f6ca02e099 This branch is now 2.1.5-bleeding 2014-03-05 13:43:11 +01:00
Coen Jacobs f101e15504 WC 2.1.4 stable tag bump 2014-03-05 11:35:20 +01:00
Mike Jolley d60e98aefb load_textdomain first 2014-03-05 11:33:34 +01:00
Mike Jolley 7ce36dc881 load_textdomain first 2014-03-05 10:32:44 +00:00
Mike Jolley fc1d4d2580 Remove admin check around global po Closes #5029 2014-03-05 11:04:18 +01:00
Mike Jolley aab4ad52bf Revert load order change #4986 2014-03-05 11:02:53 +01:00
Mike Jolley cd11784be9 Notice functions are 'core' so it makes sense to load session classes 'core' too (not just frontend) 2014-03-05 10:58:36 +01:00
Mike Jolley 7c4c8f50ea Include functions once. Closes #4991 2014-03-05 10:56:23 +01:00
Mike Jolley 4ab4811c57 Remove admin check around global po Closes #5029 2014-03-04 12:42:39 +00:00
Mike Jolley ba927d0bba Revert load order change #4986 2014-03-03 14:47:04 +00:00
Mike Jolley d050cb1b24 Notice functions are 'core' so it makes sense to load session classes 'core' too (not just frontend) 2014-03-03 10:38:42 +00:00
Mike Jolley 0cd4f4c6e0 Include functions once. Closes #4991 2014-02-28 13:55:40 +00:00
Coen Jacobs ac9e85453e This branch is now 2.1.4-bleeding 2014-02-27 17:11:13 +01:00
Coen Jacobs f76dba5abe 2.1.3 version bump 2014-02-27 15:58:57 +01:00
Mike Jolley 55f6620e50 Load frontend lang first, and remove no-longer needed alt_lang loader Closes #4874 2014-02-27 15:29:49 +01:00
Mike Jolley bb8fd9b50d Load frontend lang first, and remove no-longer needed alt_lang loader Closes #4874 2014-02-23 10:55:21 +00:00
Mike Jolley 1f295c9c69 Unify textdomains Closes #4814 2014-02-17 14:27:08 +01:00
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Coen Jacobs d94a4b70d3 This branch is now 2.1.3-bleeding 2014-02-13 22:50:20 +01:00
Coen Jacobs ffeb88447e Stable tag bumps for 2.1.2 2014-02-13 22:30:12 +01:00
Coen Jacobs b206d96ad7 This branch is now 2.1.2-bleeding 2014-02-12 17:34:04 +01:00
Coen Jacobs 7d0f69841c Version bump for 2.1.1 2014-02-12 16:41:30 +01:00
Mike Jolley 5a79e2a809 verify_nonce should check if variable isset(). Closes #4704 2014-02-11 14:41:17 +01:00
Mike Jolley ddbae4766e verify_nonce should check if variable isset(). Closes #4704 2014-02-11 13:38:53 +00:00
Coen Jacobs d0d68faf31 This branch is now 2.2 bleeding 2014-02-10 15:38:53 +01:00
Coen Jacobs 0951974671 This branch is now 2.1.1 bleeding 2014-02-10 15:36:43 +01:00
Mike Jolley fa54a09948 Version bump 2014-02-10 10:14:11 +00:00
Mike Jolley 21331cbe9c RC2 2014-02-07 13:09:45 +00:00
Mike Jolley 1128b5b9ab Include once #4616 2014-02-05 15:02:15 +00:00
Mike Jolley 65e8794b7f RC1 2014-01-30 15:26:22 +00:00
Mike Jolley ffd1c43b5a 2.1-rc-1 version number 2014-01-30 15:06:12 +00:00
splashingpixels 454b97080a coding standards fixes 2014-01-22 20:36:24 -08:00
Mike Jolley db5dfa0c01 include for class-wc-post-types.php Closes #4504 2014-01-20 15:27:58 +00:00
Mike Jolley c153d00355 Fix woocommerce.php comments and messages fallback 2014-01-20 15:21:50 +00:00
Mike Jolley 0bbb10f1a9 Beta 3 version 2014-01-08 15:30:06 +00:00
Mike Jolley 9cd911ca8f version compare needs this to function 2014-01-03 14:13:18 +00:00
Chuck Mac a17579300e Fixing method call in verify_nonce function 2013-12-15 21:14:16 -05:00
Patrick Rauland 316db6e81d changing standards to always require braces. see #4309 2013-12-08 15:25:57 -06:00
Coen Jacobs c663fc21fc Version bump, hello v2.1-beta-2 2013-12-06 12:16:14 +01:00
Mike Jolley 6db8ac6f6f Made error counts work with new notices api Closes #4201 2013-11-27 16:15:53 +00:00
Scott Basgaard 42f09851af WC_Nonce_Helper is no longer. Use wp_verify_nonce() instead. 2013-11-26 17:52:02 +01:00
Scott Basgaard 2885da4581 "Order again" doesn't work. Proposed pass at fix. 2013-11-26 17:48:39 +01:00
Coen Jacobs 2acc983956 Soft bumping version to beta-1 #4194 2013-11-25 09:29:11 +01:00
Coen Jacobs c0ba1be754 WooCommerce 2.1 requires WordPress 3.8 2013-11-20 11:58:33 +01:00
Coen Jacobs 90008d7143 Merge remote-tracking branch 'thenbrent/new_notice_api'
Conflicts:
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-message-functions.php
	woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
Mike Jolley 645ca3e834 WC_Ajax class for ajax events 2013-11-14 12:13:34 +00:00
thenbrent 3fa310969f Introduce new wc_get_notices() function
To replace the deprecated Woocommerce->get_messages() and
Woocommerce->get_errors() functions
2013-11-13 16:09:28 -08:00
thenbrent 001bfab44f Update calls to wc_message_count() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent 6a7a46df9e Update calls to wc_clear_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent 2fcd615f88 Update calls to wc_print_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent e14e3842b0 Update calls to wc_error_count() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent fe44f020e3 Update calls to wc_add_message() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 0d45e19fcf Update calls to wc_add_error() function
Part of #4034
2013-11-12 20:59:39 -08:00
Mike Jolley 3fd02a57d0 Locales - store standardised values, and display using locale in admin #3862 2013-11-12 17:43:30 +00:00
Coen Jacobs 16162ca8db We'll let autoload handle this file loading
Revert: 1428bf8f9c
2013-11-01 21:05:02 +01:00
Coen Jacobs 1428bf8f9c Only load integration abstract when needed #3169 2013-11-01 17:39:33 +01:00
Coen Jacobs ae64e20bb3 Take out default variations #3169 2013-11-01 17:33:33 +01:00
Mike Jolley e143d344e5 Constants 2013-10-24 19:36:22 +01:00
Mike Jolley 0d8d95e8e6 total calcs 2013-10-24 13:41:42 +01:00
Mike Jolley 51aba21d76 Rounding + precision for taxes. Store unrounded. Round down (for the moment) for taxes 2013-10-24 13:15:42 +01:00
Mike Jolley 1b1332d278 Static shortcodes. Will allow plugins to add some alias with same methods. 2013-10-23 12:55:40 +01:00
Mike Jolley 22eaf33bfe Filter links + woocommerce_enable_admin_help_tab 2013-10-22 18:20:33 +01:00
Mike Jolley 05d9c0e045 Rename menus, removed woocommerce_ 2013-10-22 17:26:18 +01:00
Illimar Tambek 540bf3c5ab Fix error with admin translations not loading 2013-10-10 15:59:46 +03:00
Gregory K 3dd2f7816c Vars declaration in WooCommerce class (this->session, this->query, etc.) 2013-09-26 08:11:33 -04:00
Gregory K 518b991e96 WC() - correct @return 2013-09-25 09:10:40 -04:00
Gregory K 4ff46b96e0 Typo in verify_nonce() 2013-09-25 08:12:48 -04:00
Mike Jolley fd86647420 WOOCOMMERCE_TEMPLATE_PATH not dir, closes #3831 2013-09-25 08:07:51 +01:00
Gregory K ba19a632b3 woocommerce.php PHPDoc cleanup: correct @returns and @deprecated markup 2013-09-24 23:11:42 -04:00
Mike Jolley 9a98be6a15 WOOCOMMERCE_DELIMITER constant. Closes #3476. 2013-09-24 12:24:26 +01:00
Mike Jolley 0a3cdc43ca Include a link to admin. Closes #3796 2013-09-23 16:51:43 +01:00
Coen Jacobs 2754e4bb69 Do not load removed helper abstract. Closes #3787 2013-09-16 10:33:44 +02:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Mike Jolley 807534095e Introduce WC_HTTPS Helper to handle redirects and make checkout urls https before visiting them. Fixes #3311 2013-09-03 13:03:05 +01:00
Mike Jolley 5efb976035 Make API url function work when permalinks are not pretty
@coenjacobs for .14 too
2013-08-23 20:29:24 +01:00
Mike Jolley fdbaac0acd Include template hooks early Fixes #3664 2013-08-23 16:58:19 +01:00
Mike Jolley f0853d5208 Pass text attributes when ordering again Fixes #3422 2013-08-20 12:17:56 +01:00
Mike Jolley 57157db9bf Function refactoring. 2013-08-09 17:11:21 +01:00
Mike Jolley f09fafe738 Meta box refactor
Closes #3458.
2013-08-06 11:41:20 +01:00
Mike Jolley cd50b328a2 Install and update functions 2013-07-25 16:29:25 +01:00
Mike Jolley 8a6ff89bf1 Moved admin directory and moved some functions to classes (ongoing refactor) 2013-07-24 17:01:36 +01:00
Mike Jolley 725cb7714b More endpoints for myaccount pages, and endpoint options so they can be modified. Closes #3170. 2013-07-23 17:05:01 +01:00
Mike Jolley dfcc41c400 5.2 compat 2013-07-17 14:29:42 +01:00
Mike Jolley d0b6483037 Dump coupon helper and add new functions. Closes #3353. 2013-06-28 10:23:20 +01:00
swicks 56741cbebf WooCommerce fails to Activate
declared $helpers as a blank array
(to keep things tidy) removed $this->helpers from init().
2013-06-22 13:17:35 +01:00
Mike Jolley de23047575 kill helper closes #3332 2013-06-14 12:59:29 +01:00
Coen Jacobs 035ec8ba65 Merge branch 'refs/heads/release-11-fix'
Conflicts:
	assets/js/frontend/woocommerce.min.js
	includes/class-wc-checkout.php
	readme.txt
	woocommerce.php
2013-06-13 15:36:12 +02:00
Coen Jacobs edd2d0f5b7 2.0.11 version bump
Conflicts:
	readme.txt
	woocommerce.php
2013-06-13 11:14:35 +02:00
Mike Jolley c72ae714f7 Removed nonce helper
@coe
2013-06-11 17:55:55 +01:00
Mike Jolley 646a8a008c Make use of new functions 2013-06-11 15:59:54 +01:00
Mike Jolley d448046234 Move WC back to main file, as singleton 2013-06-11 15:21:14 +01:00
Coen Jacobs a90b9c5df5 Moved WooCommerce class to separate file
Finally capitalised that C baby!

Oh yeah, and I've probably broken a couple things too...
2013-06-06 16:36:35 +02:00
Coen Jacobs b0ffed8380 Internals need to call helper for messages as well 2013-06-06 16:11:04 +02:00
Coen Jacobs e6bea70f62 Abstracted messages helper to class 2013-06-06 15:56:24 +02:00
Coen Jacobs d56289f846 Minimised docblocks for deprecated methods 2013-06-06 15:35:50 +02:00
Coen Jacobs bec4072f35 Abstracted frontend scripts helper to class 2013-06-06 15:20:47 +02:00
Coen Jacobs 729c2d8447 Cleanup public vars that shouldn't be public 2013-06-06 15:01:09 +02:00
Coen Jacobs 2e68ca7d2f Property cleanup and deprecation 2013-06-06 14:41:15 +02:00
Coen Jacobs 46336424a3 Moved missing property to body class helper 2013-06-06 14:28:37 +02:00
Coen Jacobs f577127d8f Abstracted template helper to class 2013-06-06 14:27:04 +02:00
Coen Jacobs 6cda47b878 Typo fix: 'help(' => 'helper(' 2013-06-06 14:22:35 +02:00
Coen Jacobs 3880fc95b1 Stripped out older deprecated junk 2013-06-06 14:16:00 +02:00
Coen Jacobs a09ebc9cca Merge branch 'helpers-refactor' into core-class-refactor
Conflicts:
	classes/class-wc-shortcodes.php
	classes/shortcodes/class-wc-shortcode-change-password.php
	classes/shortcodes/class-wc-shortcode-view-order.php
	templates/myaccount/form-change-password.php
	templates/myaccount/form-login.php
	templates/order/order-details.php
	woocommerce-functions.php
2013-06-06 13:55:36 +02:00
Coen Jacobs c949027dbb Abstracted body class helper to class #3282 2013-06-05 16:42:29 +02:00
Coen Jacobs 49ae8d366a Correct deprecation notice for coupon helper 2013-06-05 16:36:23 +02:00
Coen Jacobs 4a86fea4f6 Abstracted post class helper to class #3282 2013-06-05 16:34:58 +02:00
Coen Jacobs 1fefce3fc3 Refactor, docblocks and fixes for #3282 2013-06-05 16:25:49 +02:00
Coen Jacobs a43e204a8c Abstracted coupon helper to class #3282 2013-06-05 16:20:56 +02:00
Coen Jacobs 74fcf1a1d4 Abstracted attribute helper to class #3282 2013-06-05 16:14:25 +02:00
Coen Jacobs 4b2edd8616 Move actions for inline js to helpers #3282 2013-06-05 15:57:09 +02:00
Coen Jacobs e2b850bddb Added verify_nonce method to nonce helper #3282 2013-06-05 15:54:13 +02:00
Coen Jacobs 05bfac8c16 Abstracted shortcode helper to class #3282 2013-06-05 15:49:48 +02:00
Coen Jacobs 88a7f0f720 Abstracted nonce helper to class #3282 2013-06-05 15:43:24 +02:00
Coen Jacobs b3f05bdd66 Abstracted inline JS helper to class #3282 2013-06-05 13:51:06 +02:00
Coen Jacobs 64c75547f3 Abstracted transient helper to class #3282 2013-06-05 13:39:27 +02:00
Coen Jacobs 973e6d94b8 Set up basic helper abstract and get function #3282 2013-06-05 13:30:06 +02:00
Mike Jolley a3c2cef3f7 Better account edit Closes #3168 2013-06-05 12:07:23 +01:00
Mike Jolley 4aef7c73ee View order page endpoint 2013-06-04 17:33:43 +01:00
Mike Jolley 820d399b2f My account registration, made registration process DRY, added notification hook for new accounts. Closes #3085 2013-06-04 16:33:05 +01:00
Mike Jolley cde4947acf Remember which attributes get registered and added taxonomy_is_product_attribute() function
Closes #3149.
2013-06-03 11:04:21 +01:00
Mike Jolley 24a1812738 Move post type registration to separate class. 2013-06-03 11:04:21 +01:00
Mike Jolley b67232b7f3 Update chosen Closes #3258. 2013-05-31 18:10:00 +01:00
Mike Jolley 48edab0837 Merge pull request #3262 from kayue/bug/double-deleteing-in-clear-product-transients
Fix double deleteing in clear product transients.
2013-05-31 08:29:17 -07:00
Mike Jolley e4f4b09ba6 Pay page and thanks page endpoints. Requires permalink save. Closes #3170. 2013-05-31 16:13:18 +01:00
Ka Yue Yeung 4242b25d2c Use delete_transient method instead of a custom query. 2013-05-31 14:50:47 +08:00
Ka Yue Yeung f747474a9a Revert "Avoid double deleting the wc_products_onsale transient."
This reverts commit 3d0c084530.
2013-05-31 14:49:51 +08:00
Ka Yue Yeung 3d0c084530 Avoid double deleting the wc_products_onsale transient. 2013-05-31 14:34:11 +08:00
Mike Jolley 559d7b9759 Updated blockui to prevent errors in WP 3.6.
@coenjacobs this needs to go in .11
2013-05-28 17:02:18 +01:00
Coen Jacobs ca9c14b352 Translatable version of string 2013-05-27 14:16:45 +02:00
Mike Jolley 8307cb37f6 Refactor: Widget classes, made abstract, merged similar product listing widgets into 1 2013-05-24 16:52:03 +01:00
Mike Jolley 18023b8420 woocommerce_load_alt_locale 2013-05-24 16:52:02 +01:00
Mike Jolley 948945c7ea Simplified variation definition (public false handles everything) 2013-05-24 16:52:02 +01:00
Brent Shepherd d01568b3bd Remove dupliate email actions
Remove duplicate 'woocommerce_order_status_pending_to_processing' and
'woocommerce_order_status_pending_to_on-hold' email actions
2013-05-23 16:21:40 +10:00
Mike Jolley 35887b9430 protocol-relative URLs. Closes #3171 2013-05-22 14:08:08 +01:00
Todd Lahman 3d118b37b2 Check if variable isset to avoid undefined error 2013-05-18 23:24:03 -07:00
James Koster 646a252f6d woocommerce-smallscreen.css. #3166 2013-05-15 17:47:27 +01:00
Coen Jacobs 338974f2ec 2.0.10 version bump 2013-05-15 11:28:13 +02:00
James Koster d976dedcc5 no more css options & added responsive stylesheet 2013-05-14 18:28:36 +01:00
Coen Jacobs b32933685e Version bump for preparing 2.0.10 release 2013-05-14 12:11:14 +02:00
James Koster 3c79056aa8 More CSS separation #2785 2013-05-13 16:02:22 +01:00
James Koster b98307c4be Splitting the CSS #2785 2013-05-09 15:39:35 +01:00
krogsgard 638b7f9b8b Update public parameters for 'product_variation' and 'shop_coupon' CPTs
Update 'public' parameters for 'product_variation' and 'shop_coupon' to 'false' and update 'query_var' parameter for 'product_variation' to false.
2013-05-06 15:42:59 -05:00
Coen Jacobs b1f3af5118 Removed ShareYourCart integration from core. Closes #2937 2013-05-02 13:38:00 +02:00
Coen Jacobs e9c9afc0fc Master branch is now 2.1-bleeding 2013-05-02 13:29:20 +02:00
Mike Jolley fdd5a09164 Fix 3.6. Closes #3061. 2013-05-01 14:32:47 +01:00
Mike Jolley efa8d9fe62 Brazil states fixes 2013-04-24 15:37:49 +01:00
Coen Jacobs 9b8bb98ca0 Removed add_to_cart_nonce, no longer used. #2921 2013-04-22 09:11:47 +02:00
Mike Jolley 1f43e31f9f version bump 2013-04-17 17:03:33 +01:00
Mike Jolley e9cfd5b32a Updated docs links 2013-04-17 10:16:37 +01:00
Mike Jolley c211603fc9 Fix saving options for attribute taxonomies containing special chars. Closes #2975. 2013-04-16 14:41:23 +01:00
Mike Jolley 51933ed368 version 2013-04-12 11:07:47 +01:00
Mike Jolley 31b497a33e Cache helpers + notice for w3tc users 2013-04-09 10:38:40 +01:00
Mike Jolley 3fe3f969cc Readme/version bump 2013-04-08 21:18:26 +01:00
Mike Jolley 9977031a5d Nonces cannot be used on all pages with cache - removed them for add to cart actions + fixed caching for hiding the cart 2013-04-08 18:43:07 +01:00
Mike Jolley 57054b03d5 Orders dont' need to be public, and fix for order details when product does not exist. 2013-04-08 17:54:16 +01:00
Mike Jolley fa91ef80d4 Cache helper sets DONOTCACHEPAGE during init, rather than in each shortcode, and the W3 Issue with database cached appeared to be because the add_option had autoload 'no'. Removing autoload no was the only workaround I could find.
Now works with all caching enabled in W3 Total cache. Closes #2862.

cc @coenjacobs
2013-04-05 22:24:56 +01:00
Mike Jolley 5b679175de Versions. Closes #2854. 2013-04-05 13:17:39 +01:00
Mike Jolley 09699e5c61 Don't mess with plugins_url Closes #2859. 2013-04-04 17:39:52 +01:00
Mike Jolley 0d4666a35d Action links Closes #2842. 2013-04-04 17:31:06 +01:00
Scott McCauley 54c5bda39a #2867 - Added a check to parent theme for comments_template before loading plugin template
#2867
2013-04-03 13:55:20 -04:00
Mike Jolley 21c40fc6b9 Ensure API Request URL scheme is not relative to the current page. 2013-03-28 15:49:02 +00:00
Mike Jolley c84ea9e783 only hide pages, not other objects. Closes #2829. 2013-03-27 11:04:58 +00:00
Mike Jolley 3626a2c2e4 Version bumpage 2013-03-26 12:44:05 +00:00
Sylvain WITMEYER e2a6e26d92 Update woocommerce.php
is_admin() return a boolean
2013-03-23 22:33:19 +01:00
Mike Jolley 6e632c3348 Version bump 2013-03-18 15:26:51 +00:00
Mike Jolley 87fbb21ff2 Removed Sidebar Login Widget. Use http://wordpress.org/extend/plugins/sidebar-login/ instead. A potential security issue was found regarding logging of passwords (since GET was used instead of POST). Sidebar Login 2.5 resolves this and the widget has been removed from WC to prevent needing to maintain two (virtually identical) codebases. 2013-03-18 15:24:29 +00:00
Mike Jolley 9c2fd84ce5 Include API class - its always needed 2013-03-13 11:58:56 +00:00
Mike Jolley 84b451e214 Fix attribute base 2013-03-12 14:43:06 +00:00
Mike Jolley df3b84845b Version bump 2013-03-11 10:41:44 +00:00
Mike Jolley 874d6855ea Move to later hook #2625 2013-03-07 16:33:44 +00:00
Mike Jolley eb8c37844b Update tweaks for coen 2013-03-06 11:59:24 +00:00
Mike Jolley 36e4cd8fa1 Upgrade if DB version is lower than current. + version bump in wc file 2013-03-06 11:16:12 +00:00
Mike Jolley 38d68a29a3 Include once to prevent class exist errors with widgets. 2013-03-06 10:28:23 +00:00
Mike Jolley 77eaf1f91d Activation/install/welcome 2013-03-05 18:50:44 +00:00
Mike Jolley a5a6fab817 Readme for fixes 2013-03-04 15:32:48 +00:00
Coen Jacobs 57e65f22a7 Version bump for 2.0 2013-03-04 10:24:36 +01:00
Pascal Borreli ae7899c67b Fixed typos 2013-03-03 17:07:31 +00:00
Coen Jacobs 46c0f6827e Tagged RC3 - code freeze is in effect
Code is now frozen until Monday morning, when we will check the bugs reported in the time between and do final fixes, tweaks and documentation changes. Here comes WooCommerce 2.0!
2013-03-02 11:05:31 +01:00
Mike Jolley 1f345b7bf9 api_request_url tweak 2013-03-01 18:47:25 +00:00
Mike Jolley 1104924e1a deprecated function 2013-03-01 18:05:35 +00:00
Mike Jolley d618b306a2 Welcome page 2013-03-01 16:03:10 +00:00
Mike Jolley d403f4d9bc Split out fragment code into wc-cart-fragments Closes #2528 2013-02-26 12:15:12 +00:00
Mike Jolley 566e10eeb0 Less conditionals for JS loader 2013-02-25 10:32:13 +00:00
Coen Jacobs 9bdb243da0 Tagging RC2 2013-02-22 14:19:13 +01:00
Mike Jolley 66666f6bd8 API endpoints - some gateways don't like query strings 2013-02-13 12:38:19 +00:00
Mike Jolley 7a84ddd6c1 Tidied up settings, removed some un-needed settings, and made some settings automatic e.g. coupons disabled if no coupons exist 2013-02-10 23:02:52 +00:00
Geert De Deckere a81e915eeb API comments for v2.0 2013-02-08 16:36:34 +01:00
Mike Jolley d6a9f3e460 Perform api requests slightly later so that template functions are available. 2013-02-06 18:55:41 +00:00
Coen Jacobs 1268a01c3c Fixed errors for #2364. Good morning... 2013-02-06 11:15:58 +01:00
Coen Jacobs 8a59ab8d6e Filterable args for taxonomies. Closes #2364 2013-02-06 10:52:07 +01:00
Coen Jacobs 911e7f3f2b Hey, what's this? Oh look, it's RC1! 2013-02-04 15:43:09 +01:00
James Koster cf00520b4c step 1 of replacing Fancybox with prettyPhoto 2013-01-30 16:18:36 +00:00
Mike Jolley b2d084af7f dump 2013-01-29 13:03:29 +00:00
Mike Jolley 4c7812ebb2 Shortcode fix Closes #2299. 2013-01-29 13:01:09 +00:00
Mike Jolley b211894d3c Get cart from ajax or local storage to prevent cache 2013-01-28 10:59:24 +00:00
Geert De Deckere e65cf3c904 Added class with stock status to product 2013-01-27 09:31:38 +01:00
Coen Jacobs 764d9655e5 Hello WooCommerce 2.0 beta 3! 2013-01-24 16:26:50 +01:00
Max Rice 8d5d14c060 Use is_readable() for autoloading
instead of file_exists() as is_readable() also checks file permissions
2013-01-23 14:29:23 -05:00
Mike Jolley 9da6eb690a Revised session handler based with some code from Eric Manns wp_session class idea.
The (long term) plan will be to use that when stable and in WP core.
Until then, our wc_session_ implementation will work.

This is similar to what we had, with the exeption of not using
transients to ensure the data persists.

@coenjacobs please view this.
2013-01-15 19:51:19 +00:00
Mike Jolley 261f413405 Ratings in loops for sort by rating 2013-01-12 10:53:24 +00:00
Geert De Deckere 28b0a5ba60 Moving custom product classes to the post_class filter 2013-01-09 15:15:25 +01:00
Mike Jolley b5e10315aa Load gateways during checkout + in settings. #2164 2013-01-07 17:23:09 +00:00
Coen Jacobs 359cc724f9 2.0 beta 2 is here! 2013-01-03 16:06:26 +01:00
Mike Jolley 6821abc549 Store counts in a transient. Closes #2100. 2013-01-02 12:12:44 +00:00
Mike Jolley fc48f124cb Don't show any output for API requests. 2012-12-31 19:19:26 +00:00
Mike Jolley 5486ebb737 Shortcodes/Widgets -> classes, autoload classes to reduce memory, only load gateways when needed, change gateway admin to match shipping #1765 2012-12-31 18:25:09 +00:00
Mike Jolley b9a8f2c204 Combined some functions #1765 2012-12-31 13:03:56 +00:00
Mike Jolley d1372bde23 2nd exists #2051 2012-12-30 16:37:22 +00:00
Mike Jolley 8c9966145b Removed some unused code, removed order tracking from installer. #1765 2012-12-30 15:51:37 +00:00
Mike Jolley 96d6cc5980 More transient clearing tools 2012-12-30 15:02:24 +00:00
Mike Jolley 1d6707093c Wrong paths #2051 2012-12-30 13:56:27 +00:00
Mike Jolley 4c7ea6a016 Load admin mo, and updated GB translation. 2012-12-30 13:48:27 +00:00
Mike Jolley d993687e9e 2 filters to force/unforce any page programatically. Closes #2030. 2012-12-28 10:57:46 +00:00
Mike Jolley 51ab134142 Added thai states (Closes #2064), added files per state which get loaded only when the country is allowed, and hidden the informal setting unless needed for the lang.
Also moved languages and added an i18n folder for this kind of stuff.
2012-12-28 10:54:09 +00:00
Mike Jolley bdc61bfdce wc_product_type_ transient is unused 2012-12-21 08:44:15 +00:00
Coen Jacobs dec06d8d40 WooCommerce 2.0 beta 1 is here! 2012-12-20 16:17:31 +01:00
Mike Jolley 0b7750e55a Attribute taxonomy transiant. #1765 2012-12-19 20:42:25 +00:00
Mike Jolley 801fdc7420 We no longer use sessions. #1765. 2012-12-19 18:45:33 +00:00
Mike Jolley f663a71550 Media upload (started) 2012-12-18 12:04:33 +00:00
Coen Jacobs 9a92fb48a1 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	classes/class-wc-query.php
	classes/class-wc-tax.php
2012-12-15 13:00:34 +01:00
Coen Jacobs 7b5e74626a Remove pass by reference for objects
Done all files except for external libaries: shareyourcart, cssmin,
lessc

@mikejolley Should we update those libraries as well?
2012-12-15 12:53:32 +01:00
Warren Holmes 633def8112 Correct scope, remove use of var.
- woocommerce.php
2012-12-14 23:19:40 +02:00
James Koster f5552e0b5e retina'd frontend ajax loader 2012-12-13 15:53:36 +00:00
Coen Jacobs 5e675ab0e3 Updated readme with 1.6.6 release 2012-12-13 16:27:48 +01:00
Coen Jacobs fb91b72ee0 Check for thumbnail support on content type level 2012-12-13 13:40:24 +01:00
Mike Jolley a8fba0cf04 Tweaked installer and added new cron for scheduled sales. Closes #1971. 2012-12-12 12:52:39 +00:00
Mike Jolley 253562e980 Enqueue placeholder separately. #1972. 2012-12-12 10:33:16 +00:00
Mike Jolley c394119983 Ajax view cart. Closes #1948. 2012-12-10 13:11:05 +00:00
Mike Jolley bfcb3ec1e9 Load options in checkout class and ensure hooks are available to change the options. Closes #1950. 2012-12-10 12:34:59 +00:00
Mike Jolley 66eb090017 Image size option names. Closes #1953. 2012-12-10 11:33:26 +00:00
Mike Jolley 753fc7c39e Use core jquery ui. Closes #1929. 2012-12-06 14:56:19 +00:00
Mike Jolley bcc91f586d Use different sanitize functions for attribute names. Closes #1897. 2012-12-05 15:01:29 +00:00
Coen Jacobs 37feabd87f WooCommerce 2.0 is coming! 2012-12-03 20:19:58 +01:00
Mike Jolley 9d853e0c02 Product counts. #1789 2012-11-28 15:03:26 +00:00
Mike Jolley b1ec4b289a Nuked whitespace. Closes #1846. 2012-11-27 16:22:47 +00:00
Mike Jolley 0361a2f0cb Settings API tweaks.
Uses same names as the settings API for gateways which Closes #1848.
Allows a single level of array based IDs for options which Closes #1826.
Related to #1826 this is now used for image size settings.
2012-11-27 15:39:32 +00:00
Coen Jacobs 3f5a4fbe9e Do not use wpdb->prepare without param arg. Closes #1717
Starting WordPress 3.5, wpdb->prepare should always have a second param
to discourage improper use:
https://core.trac.wordpress.org/changeset/22429 props @spencerfinnell
2012-11-26 11:03:47 +01:00
Coen Jacobs 13f6ec9b29 Moved WC_Abstract to abstracts folder 2012-11-22 15:04:15 +01:00
Coen Jacobs 6ba6e410e5 Moved Product Factory class instance to WC global instance 2012-11-22 14:00:25 +01:00
Coen Jacobs b2a868301c Simplified version of Product Factory using an args array 2012-11-22 12:37:41 +01:00
Coen Jacobs 93cddbaa16 Abstract main product class, added simple product class 2012-11-22 11:22:18 +01:00
Mike Jolley 75ca794bba Separate classes per product type, with new get_product function and hooks to change the classes which get loaded. #1497 2012-11-21 18:07:45 +00:00
Coen Jacobs 22afc34052 Reverted changes for manual category count. Ref: #1789 2012-11-19 15:39:27 +01:00
Mike Jolley 51bf586fd7 Widget wrap and tweaks. #1768. 2012-11-15 17:46:24 +00:00
Mike Jolley ec1377dfd2 error fix 2012-11-15 17:30:38 +00:00
Brian Feister 7c7c6a4326 Hotfix for namespacing issue #1749. Turns out `.woocommerce-pge` is the global namespace, not `.woocommerce`. 2012-11-15 11:39:41 -05:00
Mike Jolley 58c5bbef55 Merge pull request #1749 from brianfeister/classname-fix
Fix common css class name / namespace pollution issue
2012-11-15 08:10:29 -08:00
Mike Jolley 8986da2ec2 This is fixed in iO6, so just show an alert when nothing matches. Closes #1737. 2012-11-14 15:38:56 +00:00
Brian Feister 6aabdef3e6 Fix common css class name / namespace pollution issue and add a $wrapper parameter to the `shortcode_wrapper()` helper function with a default of `div.woocommerce`. Line 1601 2012-11-13 18:42:10 -05:00
Brian Feister 506c2bfc12 Make syntax more concise and add option to pass FALSE to function to disable wrapping. 2012-11-13 18:32:14 -05:00
Brian Feister dedc3fd0a4 Add a $wrapper parameter to the `shortcode_wrapper()` helper function with a default of `div.woocommerce`. Line 1601 2012-11-13 18:22:53 -05:00
Mike Jolley 7a055f5296 Change class handling for country. Closes #1683. 2012-11-06 11:49:49 +00:00
Mike Jolley aef47868fa Merge branch 'Line-items-data-tweak' 2012-10-24 17:53:44 +01:00
Mike Jolley a03444e7ed Fix JS code escape 2012-10-23 18:21:11 +01:00
Coen Jacobs 9ecb20f259 [3.2.5] SQL injection #1575 2012-10-18 15:37:04 +02:00
Coen Jacobs 9769b8851f [3.2.4] Sanitization #1575 2012-10-18 12:33:52 +02:00
Mike Jolley aef75800c9 Update/install code + revised notices. 2012-10-18 10:33:06 +01:00
Mike Jolley 9ec5090356 esc_js alternative 2012-10-17 16:42:57 +01:00
Mike Jolley 98b21a4a44 Split up scripts. #1575. 2012-10-17 14:32:31 +01:00
Coen Jacobs 263139e173 [3.2.3] XSS #1575 2012-10-16 15:35:17 +02:00
Mike Jolley 8c3ad31c07 Localisation spacing. 2012-10-16 10:45:33 +01:00
Mike Jolley 596c408c27 Pagination + sorting tweaks, new active filters widget, sort both directions for price, fix for #coenfail. Closes #771. 2012-10-14 13:06:41 +01:00
Mike Jolley 20d7e9b54f admin url relative 2012-10-12 12:57:08 +01:00
Mike Jolley 0b36adaed5 Stop transient death. 2012-10-11 10:22:03 +01:00
Mike Jolley c023a64e36 readme 2012-10-10 15:37:24 +01:00
Mike Jolley 9505e5d63f Better permalink settings. Closes #1579. 2012-10-10 10:21:04 +01:00
Coen Jacobs e159952841 Setting for product post type slug
- New priority in slug generation: Shop base (if checked), custom slug
(if entered), pick default (translatable) 'product'
- Related to: #1579
2012-10-09 18:09:11 +02:00
Mike Jolley 5868b63b93 Ordering options. Closes #1166. 2012-10-09 15:57:06 +01:00
Coen Jacobs e87ea2022b Manual prod_cat counting to hide hidden products from counters
- Uses update_count_callback argument for manual counting function
- Filters on get_terms and updates counters
- Closes #1449
2012-10-09 15:16:36 +02:00
Mike Jolley ee36465b70 Mailer() tweak. Closes #1521. 2012-09-30 20:15:39 +01:00
Mike Jolley b88c6e62f7 Load sessions before customer class. Closes #1545. 2012-09-30 20:11:32 +01:00
Mike Jolley 33c3dd5573 Filters for post type definition. For #1515. 2012-09-21 17:01:22 +01:00
Mike Jolley 66cf7d8e98 More capabilities. Closes #1083. 2012-09-20 16:35:15 +01:00
Mike Jolley 1b4130bc56 new email interface + plain text versions 2012-09-17 11:36:30 +01:00
Coen Jacobs 0833e00a63 Set session methods as default for all implementing classes 2012-09-12 16:21:13 +02:00
Coen Jacobs b392011a7b Offer way to override the session class
* Added abstract class to implement
* Implementing class is default
* Filter to replace the instance of the default class
2012-09-12 15:45:47 +02:00
Mike Jolley e9f0a8612f Made paypal use wc-api for IPN 2012-09-12 13:36:34 +01:00
Mike Jolley 5019700d79 more sessions 2012-09-07 19:28:30 +01:00
Mike Jolley fdd34e5c0e session -> transient WIP 2012-09-07 18:26:13 +01:00
Ryan Berry 6f26e25c5d Prefixing jquery-plugins script enqueue
Just spent 4 hours trying to find the cause of a javascript exception,
turns out the woocommerce enqueue name was the same as mine and these
weren't being enqueued. "jquery-plugins" can't be uncommon so a prefix
should be used to save headaches.
2012-09-07 14:43:58 +08:00
Mike Jolley e19505c6ab checkout loading tweak 2012-09-03 16:45:09 +01:00
Manos Psychogyiopoulos a319c80639 Back end filters for attribute labels and variation options ( for translation plugins - filter names same as in variable.php ) 2012-08-28 13:48:02 +03:00
Coen Jacobs 28b4289be0 Version bump 1.6.5.1 2012-08-25 20:57:38 +02:00
Mike Jolley 01c00bd029 version bumpage 2012-08-25 11:11:45 +01:00
Mike Jolley b450616848 woocommerce_ajax_loader_url 2012-08-25 10:32:14 +01:00
Mike Jolley 5e78e897c7 check_jquery 2012-08-25 09:47:36 +01:00
Mike Jolley fe2c407f2f Appended version to scripts to prevent cache issues upon upgrade 2012-08-24 18:34:31 +01:00
Mike Jolley 02b88b23b9 get_allowed_country_states() function. Closes #1407. 2012-08-22 16:13:58 +01:00
Mike Jolley 07b6b6d59a More class docs 2012-08-14 23:43:54 +01:00
Mike Jolley f03eec03a8 Ajax docs 2012-08-14 23:43:54 +01:00
Mike Jolley 5b007d4918 Function docs. 2012-08-14 23:43:53 +01:00
Mike Jolley 90b61d61ef More api docs 2012-08-14 23:43:53 +01:00
Mike Jolley 806a6fb159 Lots of documentation 2012-08-14 23:43:53 +01:00
Mike Jolley 402799c0eb Fix JS enqueue. Closes #1365. 2012-08-12 13:15:27 +01:00
Mike Jolley d351240e6a Hide variations from frontend 2012-08-10 15:24:01 +01:00
Mike Jolley 6d5b9991d3 version bump 2012-08-10 14:21:10 +01:00
Mike Jolley 9be866b7a1 remove attachment rewrite 2012-08-09 11:50:15 +01:00
Mike Jolley 1217228bda Additonal hooks 2012-08-08 16:57:36 +01:00
Mike Jolley 2c9fa0ccf0 Version 2012-08-07 09:38:12 +01:00
Mike Jolley eb532c342c add rewrite rule for attachments. Closes #875. 2012-07-31 14:56:30 +01:00
Mike Jolley b552e41f60 Tweak menu names. 2012-07-26 15:33:02 +01:00
Mike Jolley 8cdc3738c2 Removed session_name. Closes #1291. 2012-07-25 19:20:21 +01:00
Mike Jolley 6d7e06b500 Better caching support + mini-cart template 2012-07-25 18:59:12 +01:00
Mike Jolley ffb34fdc83 Fix up orders when not in a submenu 2012-07-23 13:56:05 +01:00
Mike Jolley 811c1bdcbb Version 2012-07-19 19:41:03 +01:00
Mike Jolley 08ae311d43 HTTP_X_FORWARDED_PROTO 2012-07-18 18:07:39 +01:00
Mike Jolley 1be0b9f8f2 Backorder handling. Closes #835. 2012-07-17 19:11:14 +01:00
Mike Jolley 6fe7e831b2 Set session_name to avoid conflicting sessions across installs. Closes #1217. 2012-07-17 16:01:01 +01:00
Mike Jolley 30b8ddaf1d Split up frontend scripts so they can be loaded when needed. 2012-07-17 15:09:18 +01:00
James Collins 8fd4b636af 1.6.0 beta 1 version number updates
Corrects deprecated function version number, and plugin version number.
2012-07-17 12:54:42 +10:00
Mike Jolley 939d835b3e edit_users. Closes #1179. 2012-07-11 19:37:33 +01:00
Mike Jolley 1910f4a4f7 Coupon usage counts on cancell. Closes #1210. 2012-07-10 16:52:52 +01:00
Mike Jolley 96a522bc82 template_redirect 2012-06-29 16:38:00 +01:00
Mike Jolley b373a82de2 moved checkout buffer function 2012-06-28 12:19:54 +01:00
Mike Jolley c9ddba1e35 Hooks for stripe 2012-06-19 19:09:51 +01:00
Mike Jolley 99c859ca30 Small save bug with Mijireh 2012-06-14 17:25:49 +01:00
Coen Jacobs d253181f79 Code style fixes, changed space use around arguments 2012-06-14 12:08:50 +02:00
Mike Jolley 10f5a48a33 space 2012-06-14 10:20:49 +01:00
Mike Jolley 731f588b31 Readme and versions 2012-06-10 20:12:06 +01:00
Mike Jolley c6d6fd7901 ajax coupon form. Closes #1061. 2012-06-10 12:40:07 +01:00
Mike Jolley e128fc02ee Merge pull request #1129 from GeertDD/menu_names
Allow custom translations for admin menu names
2012-06-08 12:31:58 -07:00
Mike Jolley 0f905e9cd0 mijireh gateway 2012-06-08 11:46:10 +01:00
Geert De Deckere 6128a82da6 Allow custom translations for admin menu names 2012-06-07 10:06:33 +02:00
Mike Jolley 0fce6aecaa localisation issues Closes #1106. 2012-06-06 21:35:40 +01:00
Mike Jolley 809175b41c filters. Closes #1108. 2012-06-06 20:28:15 +01:00
Mike Jolley 405a1eb147 out of state rounding tweaks 2012-06-05 12:21:52 +01:00
bfred-it 713baa8ac5 Fixes error "number_format() expects parameter 1 to be double, string given" on some servers 2012-05-28 15:42:15 +03:00
Mike Jolley b7894b14ca Counts. #1084. 2012-05-28 10:19:29 +01:00
Mike Jolley 19b4d7344b clear transient 2012-05-26 16:31:58 +01:00
Mike Jolley 48c222f9d1 spaces 2012-05-24 12:20:28 +01:00
Mike Jolley 8332137cf9 Strange error where detecting the page (is_page etc) would break the canonical redirect in some instances when hooked into 'wp'. Used the later get_header hook instead. 2012-05-17 22:26:56 +01:00